Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Side by Side Diff: media/filters/h264_parser.h

Issue 2746013006: use VideoColorSpace in decoder configuration (Closed)
Patch Set: oops, win compile fix reapplied Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/ffmpeg/ffmpeg_common.cc ('k') | media/filters/h264_parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file contains an implementation of an H264 Annex-B video stream parser. 5 // This file contains an implementation of an H264 Annex-B video stream parser.
6 6
7 #ifndef MEDIA_FILTERS_H264_PARSER_H_ 7 #ifndef MEDIA_FILTERS_H264_PARSER_H_
8 #define MEDIA_FILTERS_H264_PARSER_H_ 8 #define MEDIA_FILTERS_H264_PARSER_H_
9 9
10 #include <stddef.h> 10 #include <stddef.h>
11 #include <stdint.h> 11 #include <stdint.h>
12 #include <sys/types.h> 12 #include <sys/types.h>
13 13
14 #include <map> 14 #include <map>
15 #include <memory> 15 #include <memory>
16 #include <vector> 16 #include <vector>
17 17
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/optional.h" 19 #include "base/optional.h"
20 #include "media/base/media_export.h" 20 #include "media/base/media_export.h"
21 #include "media/base/ranges.h" 21 #include "media/base/ranges.h"
22 #include "media/base/video_codecs.h" 22 #include "media/base/video_codecs.h"
23 #include "media/base/video_color_space.h"
23 #include "media/filters/h264_bit_reader.h" 24 #include "media/filters/h264_bit_reader.h"
24 #include "ui/gfx/color_space.h"
25 25
26 namespace gfx { 26 namespace gfx {
27 class Rect; 27 class Rect;
28 class Size; 28 class Size;
29 } 29 }
30 30
31 namespace media { 31 namespace media {
32 32
33 struct SubsampleEntry; 33 struct SubsampleEntry;
34 34
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
182 bool low_delay_hrd_flag; 182 bool low_delay_hrd_flag;
183 183
184 int chroma_array_type; 184 int chroma_array_type;
185 185
186 // Helpers to compute frequently-used values. These methods return 186 // Helpers to compute frequently-used values. These methods return
187 // base::nullopt if they encounter integer overflow. They do not verify that 187 // base::nullopt if they encounter integer overflow. They do not verify that
188 // the results are in-spec for the given profile or level. 188 // the results are in-spec for the given profile or level.
189 base::Optional<gfx::Size> GetCodedSize() const; 189 base::Optional<gfx::Size> GetCodedSize() const;
190 base::Optional<gfx::Rect> GetVisibleRect() const; 190 base::Optional<gfx::Rect> GetVisibleRect() const;
191 gfx::ColorSpace GetColorSpace() const; 191 VideoColorSpace GetColorSpace() const;
192 }; 192 };
193 193
194 struct MEDIA_EXPORT H264PPS { 194 struct MEDIA_EXPORT H264PPS {
195 H264PPS(); 195 H264PPS();
196 196
197 int pic_parameter_set_id; 197 int pic_parameter_set_id;
198 int seq_parameter_set_id; 198 int seq_parameter_set_id;
199 bool entropy_coding_mode_flag; 199 bool entropy_coding_mode_flag;
200 bool bottom_field_pic_order_in_frame_present_flag; 200 bool bottom_field_pic_order_in_frame_present_flag;
201 int num_slice_groups_minus1; 201 int num_slice_groups_minus1;
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 // Ranges of encrypted bytes in the buffer passed to 503 // Ranges of encrypted bytes in the buffer passed to
504 // SetEncryptedStream(). 504 // SetEncryptedStream().
505 Ranges<const uint8_t*> encrypted_ranges_; 505 Ranges<const uint8_t*> encrypted_ranges_;
506 506
507 DISALLOW_COPY_AND_ASSIGN(H264Parser); 507 DISALLOW_COPY_AND_ASSIGN(H264Parser);
508 }; 508 };
509 509
510 } // namespace media 510 } // namespace media
511 511
512 #endif // MEDIA_FILTERS_H264_PARSER_H_ 512 #endif // MEDIA_FILTERS_H264_PARSER_H_
OLDNEW
« no previous file with comments | « media/ffmpeg/ffmpeg_common.cc ('k') | media/filters/h264_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698