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

Unified Diff: media/filters/h264_parser.h

Issue 177583002: VAVDA: Switch to using max_num_reorder_frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: media/filters/h264_parser.h
diff --git a/media/filters/h264_parser.h b/media/filters/h264_parser.h
index 2f214c7f6ebab0c4428738d6d6d36443eca1c303..cd43c4265fb6e7eddac5c5898578bb7874e7d447 100644
--- a/media/filters/h264_parser.h
+++ b/media/filters/h264_parser.h
@@ -53,7 +53,7 @@ struct MEDIA_EXPORT H264SPS {
H264SPS();
int profile_idc;
- int constraint_setx_flag;
+ bool constraint_setx_flag[6];
Ami GONE FROM CHROMIUM 2014/02/25 09:45:37 This is C++ so bool is int8_t so bool[] is a prett
Pawel Osciak 2014/02/26 06:02:15 So this was actually used to store all six flags (
Ami GONE FROM CHROMIUM 2014/02/26 17:15:58 In the spec the bits are packed. Using a bool[] _
int level_idc;
int seq_parameter_set_id;
@@ -88,10 +88,15 @@ struct MEDIA_EXPORT H264SPS {
int frame_crop_right_offset;
int frame_crop_top_offset;
int frame_crop_bottom_offset;
+
bool vui_parameters_present_flag;
- int chroma_array_type;
int sar_width; // Set to 0 when not specified.
int sar_height; // Set to 0 when not specified.
+ bool bitstream_restriction_flag;
+ int max_num_reorder_frames;
+ int max_dec_frame_buffering;
+
+ int chroma_array_type;
};
struct MEDIA_EXPORT H264PPS {
@@ -344,6 +349,11 @@ class MEDIA_EXPORT H264Parser {
Result ParseSPSScalingLists(H264SPS* sps);
Result ParsePPSScalingLists(const H264SPS& sps, H264PPS* pps);
+ // Parse optional VUI parameters in SPS (see spec).
+ Result ParseVUIParameters(H264SPS* sps);
+ // Set |hrd_parameters_present| to true only if they are present.
+ Result ParseAndIgnoreHRDParameters(bool* hrd_parameters_present);
+
// Parse reference picture lists' modifications (see spec).
Result ParseRefPicListModifications(H264SliceHeader* shdr);
Result ParseRefPicListModification(int num_ref_idx_active_minus1,

Powered by Google App Engine
This is Rietveld 408576698