OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |