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

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

Issue 145973012: Add support for aspect ratio VUI parameters in H264Parser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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 unified diff | Download patch
« no previous file with comments | « no previous file | 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 <sys/types.h> 10 #include <sys/types.h>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 bool frame_mbs_only_flag; 82 bool frame_mbs_only_flag;
83 bool mb_adaptive_frame_field_flag; 83 bool mb_adaptive_frame_field_flag;
84 bool direct_8x8_inference_flag; 84 bool direct_8x8_inference_flag;
85 bool frame_cropping_flag; 85 bool frame_cropping_flag;
86 int frame_crop_left_offset; 86 int frame_crop_left_offset;
87 int frame_crop_right_offset; 87 int frame_crop_right_offset;
88 int frame_crop_top_offset; 88 int frame_crop_top_offset;
89 int frame_crop_bottom_offset; 89 int frame_crop_bottom_offset;
90 bool vui_parameters_present_flag; 90 bool vui_parameters_present_flag;
91 int chroma_array_type; 91 int chroma_array_type;
92 int sar_width; // Set to 0 when not specified.
93 int sar_height; // Set to 0 when not specified.
92 }; 94 };
93 95
94 struct MEDIA_EXPORT H264PPS { 96 struct MEDIA_EXPORT H264PPS {
95 H264PPS(); 97 H264PPS();
96 98
97 int pic_parameter_set_id; 99 int pic_parameter_set_id;
98 int seq_parameter_set_id; 100 int seq_parameter_set_id;
99 bool entropy_coding_mode_flag; 101 bool entropy_coding_mode_flag;
100 bool bottom_field_pic_order_in_frame_present_flag; 102 bool bottom_field_pic_order_in_frame_present_flag;
101 int num_slice_groups_minus1; 103 int num_slice_groups_minus1;
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 typedef std::map<int, H264PPS*> PPSById; 351 typedef std::map<int, H264PPS*> PPSById;
350 SPSById active_SPSes_; 352 SPSById active_SPSes_;
351 PPSById active_PPSes_; 353 PPSById active_PPSes_;
352 354
353 DISALLOW_COPY_AND_ASSIGN(H264Parser); 355 DISALLOW_COPY_AND_ASSIGN(H264Parser);
354 }; 356 };
355 357
356 } // namespace media 358 } // namespace media
357 359
358 #endif // MEDIA_FILTERS_H264_PARSER_H_ 360 #endif // MEDIA_FILTERS_H264_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | media/filters/h264_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698