Chromium Code Reviews| 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 <stddef.h> | 10 #include <stddef.h> |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 149 int sar_width; // Set to 0 when not specified. | 149 int sar_width; // Set to 0 when not specified. |
| 150 int sar_height; // Set to 0 when not specified. | 150 int sar_height; // Set to 0 when not specified. |
| 151 bool bitstream_restriction_flag; | 151 bool bitstream_restriction_flag; |
| 152 int max_num_reorder_frames; | 152 int max_num_reorder_frames; |
| 153 int max_dec_frame_buffering; | 153 int max_dec_frame_buffering; |
| 154 bool timing_info_present_flag; | 154 bool timing_info_present_flag; |
| 155 int num_units_in_tick; | 155 int num_units_in_tick; |
| 156 int time_scale; | 156 int time_scale; |
| 157 bool fixed_frame_rate_flag; | 157 bool fixed_frame_rate_flag; |
| 158 | 158 |
| 159 bool full_range; | |
|
sandersd (OOO until July 31)
2016/09/16 00:55:20
Please name these the same as the spec does.
hubbe
2016/09/16 18:03:30
Done.
| |
| 160 int primary_idc; | |
| 161 int transfer_idc; | |
| 162 int matrix_idc; | |
| 163 | |
| 159 // TODO(posciak): actually parse these instead of ParseAndIgnoreHRDParameters. | 164 // TODO(posciak): actually parse these instead of ParseAndIgnoreHRDParameters. |
| 160 bool nal_hrd_parameters_present_flag; | 165 bool nal_hrd_parameters_present_flag; |
| 161 int cpb_cnt_minus1; | 166 int cpb_cnt_minus1; |
| 162 int bit_rate_scale; | 167 int bit_rate_scale; |
| 163 int cpb_size_scale; | 168 int cpb_size_scale; |
| 164 int bit_rate_value_minus1[32]; | 169 int bit_rate_value_minus1[32]; |
| 165 int cpb_size_value_minus1[32]; | 170 int cpb_size_value_minus1[32]; |
| 166 bool cbr_flag[32]; | 171 bool cbr_flag[32]; |
| 167 int initial_cpb_removal_delay_length_minus_1; | 172 int initial_cpb_removal_delay_length_minus_1; |
| 168 int cpb_removal_delay_length_minus1; | 173 int cpb_removal_delay_length_minus1; |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 494 // Ranges of encrypted bytes in the buffer passed to | 499 // Ranges of encrypted bytes in the buffer passed to |
| 495 // SetEncryptedStream(). | 500 // SetEncryptedStream(). |
| 496 Ranges<const uint8_t*> encrypted_ranges_; | 501 Ranges<const uint8_t*> encrypted_ranges_; |
| 497 | 502 |
| 498 DISALLOW_COPY_AND_ASSIGN(H264Parser); | 503 DISALLOW_COPY_AND_ASSIGN(H264Parser); |
| 499 }; | 504 }; |
| 500 | 505 |
| 501 } // namespace media | 506 } // namespace media |
| 502 | 507 |
| 503 #endif // MEDIA_FILTERS_H264_PARSER_H_ | 508 #endif // MEDIA_FILTERS_H264_PARSER_H_ |
| OLD | NEW |