OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_COMMON_GPU_MEDIA_H264_PARSER_H_ | 7 #ifndef CONTENT_COMMON_GPU_MEDIA_H264_PARSER_H_ |
8 #define CONTENT_COMMON_GPU_MEDIA_H264_PARSER_H_ | 8 #define CONTENT_COMMON_GPU_MEDIA_H264_PARSER_H_ |
9 | 9 |
10 #include <sys/types.h> | 10 #include <sys/types.h> |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 int slice_beta_offset_div2; | 215 int slice_beta_offset_div2; |
216 }; | 216 }; |
217 | 217 |
218 struct H264SEIRecoveryPoint { | 218 struct H264SEIRecoveryPoint { |
219 int recovery_frame_cnt; | 219 int recovery_frame_cnt; |
220 bool exact_match_flag; | 220 bool exact_match_flag; |
221 bool broken_link_flag; | 221 bool broken_link_flag; |
222 int changing_slice_group_idc; | 222 int changing_slice_group_idc; |
223 }; | 223 }; |
224 | 224 |
225 struct H264SEIMessage { | 225 struct CONTENT_EXPORT H264SEIMessage { |
226 H264SEIMessage(); | 226 H264SEIMessage(); |
227 | 227 |
228 enum Type { | 228 enum Type { |
229 kSEIRecoveryPoint = 6, | 229 kSEIRecoveryPoint = 6, |
230 }; | 230 }; |
231 | 231 |
232 int type; | 232 int type; |
233 int payload_size; | 233 int payload_size; |
234 union { | 234 union { |
235 // Placeholder; in future more supported types will contribute to more | 235 // Placeholder; in future more supported types will contribute to more |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 typedef std::map<int, H264PPS*> PPSById; | 399 typedef std::map<int, H264PPS*> PPSById; |
400 SPSById active_SPSes_; | 400 SPSById active_SPSes_; |
401 PPSById active_PPSes_; | 401 PPSById active_PPSes_; |
402 | 402 |
403 DISALLOW_COPY_AND_ASSIGN(H264Parser); | 403 DISALLOW_COPY_AND_ASSIGN(H264Parser); |
404 }; | 404 }; |
405 | 405 |
406 } // namespace content | 406 } // namespace content |
407 | 407 |
408 #endif // CONTENT_COMMON_GPU_MEDIA_H264_PARSER_H_ | 408 #endif // CONTENT_COMMON_GPU_MEDIA_H264_PARSER_H_ |
OLD | NEW |