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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 kH264ScalingList8x8Length = 64, | 66 kH264ScalingList8x8Length = 64, |
67 }; | 67 }; |
68 | 68 |
69 struct MEDIA_EXPORT H264SPS { | 69 struct MEDIA_EXPORT H264SPS { |
70 H264SPS(); | 70 H264SPS(); |
71 | 71 |
72 enum H264ProfileIDC { | 72 enum H264ProfileIDC { |
73 kProfileIDCBaseline = 66, | 73 kProfileIDCBaseline = 66, |
74 kProfileIDCConstrainedBaseline = kProfileIDCBaseline, | 74 kProfileIDCConstrainedBaseline = kProfileIDCBaseline, |
75 kProfileIDCMain = 77, | 75 kProfileIDCMain = 77, |
| 76 kProfileIDScalableBaseline = 83, |
| 77 kProfileIDScalableHigh = 86, |
76 kProfileIDCHigh = 100, | 78 kProfileIDCHigh = 100, |
| 79 kProfileIDHigh10 = 110, |
| 80 kProfileIDSMultiviewHigh = 118, |
| 81 kProfileIDHigh422 = 122, |
| 82 kProfileIDStereoHigh = 128, |
| 83 kProfileIDHigh444Predictive = 244, |
77 }; | 84 }; |
78 | 85 |
79 enum AspectRatioIdc { | 86 enum AspectRatioIdc { |
80 kExtendedSar = 255, | 87 kExtendedSar = 255, |
81 }; | 88 }; |
82 | 89 |
83 enum { | 90 enum { |
84 // Constants for HRD parameters (spec ch. E.2.2). | 91 // Constants for HRD parameters (spec ch. E.2.2). |
85 kBitRateScaleConstantTerm = 6, // Equation E-37. | 92 kBitRateScaleConstantTerm = 6, // Equation E-37. |
86 kCPBSizeScaleConstantTerm = 4, // Equation E-38. | 93 kCPBSizeScaleConstantTerm = 4, // Equation E-38. |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 // Ranges of encrypted bytes in the buffer passed to | 478 // Ranges of encrypted bytes in the buffer passed to |
472 // SetEncryptedStream(). | 479 // SetEncryptedStream(). |
473 Ranges<const uint8_t*> encrypted_ranges_; | 480 Ranges<const uint8_t*> encrypted_ranges_; |
474 | 481 |
475 DISALLOW_COPY_AND_ASSIGN(H264Parser); | 482 DISALLOW_COPY_AND_ASSIGN(H264Parser); |
476 }; | 483 }; |
477 | 484 |
478 } // namespace media | 485 } // namespace media |
479 | 486 |
480 #endif // MEDIA_FILTERS_H264_PARSER_H_ | 487 #endif // MEDIA_FILTERS_H264_PARSER_H_ |
OLD | NEW |