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 #ifndef MEDIA_FORMATS_WEBM_WEBM_CONSTANTS_H_ | 5 #ifndef MEDIA_FORMATS_WEBM_WEBM_CONSTANTS_H_ |
6 #define MEDIA_FORMATS_WEBM_WEBM_CONSTANTS_H_ | 6 #define MEDIA_FORMATS_WEBM_WEBM_CONSTANTS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 const int kWebMIdWritingApp = 0x5741; | 202 const int kWebMIdWritingApp = 0x5741; |
203 | 203 |
204 const int64_t kWebMReservedId = 0x1FFFFFFF; | 204 const int64_t kWebMReservedId = 0x1FFFFFFF; |
205 const int64_t kWebMUnknownSize = 0x00FFFFFFFFFFFFFFLL; | 205 const int64_t kWebMUnknownSize = 0x00FFFFFFFFFFFFFFLL; |
206 | 206 |
207 const uint8_t kWebMFlagKeyframe = 0x80; | 207 const uint8_t kWebMFlagKeyframe = 0x80; |
208 | 208 |
209 // Current encrypted WebM request for comments specification is here | 209 // Current encrypted WebM request for comments specification is here |
210 // http://wiki.webmproject.org/encryption/webm-encryption-rfc | 210 // http://wiki.webmproject.org/encryption/webm-encryption-rfc |
211 const uint8_t kWebMFlagEncryptedFrame = 0x1; | 211 const uint8_t kWebMFlagEncryptedFrame = 0x1; |
| 212 const uint8_t kWebMFlagEncryptedFramePartitioned = 0x2; |
212 const int kWebMIvSize = 8; | 213 const int kWebMIvSize = 8; |
213 const int kWebMSignalByteSize = 1; | 214 const int kWebMSignalByteSize = 1; |
| 215 const int kWebMEncryptedFrameNumPartitionsSize = 1; |
| 216 const int kWebMEncryptedFramePartitionOffsetSize = 4; |
214 | 217 |
215 // Current specification for WebVTT embedded in WebM | 218 // Current specification for WebVTT embedded in WebM |
216 // http://wiki.webmproject.org/webm-metadata/temporal-metadata/webvtt-in-webm | 219 // http://wiki.webmproject.org/webm-metadata/temporal-metadata/webvtt-in-webm |
217 | 220 |
218 const int kWebMTrackTypeVideo = 1; | 221 const int kWebMTrackTypeVideo = 1; |
219 const int kWebMTrackTypeAudio = 2; | 222 const int kWebMTrackTypeAudio = 2; |
220 const int kWebMTrackTypeSubtitlesOrCaptions = 0x11; | 223 const int kWebMTrackTypeSubtitlesOrCaptions = 0x11; |
221 const int kWebMTrackTypeDescriptionsOrMetadata = 0x21; | 224 const int kWebMTrackTypeDescriptionsOrMetadata = 0x21; |
222 | 225 |
223 MEDIA_EXPORT extern const char kWebMCodecSubtitles[]; | 226 MEDIA_EXPORT extern const char kWebMCodecSubtitles[]; |
224 MEDIA_EXPORT extern const char kWebMCodecCaptions[]; | 227 MEDIA_EXPORT extern const char kWebMCodecCaptions[]; |
225 MEDIA_EXPORT extern const char kWebMCodecDescriptions[]; | 228 MEDIA_EXPORT extern const char kWebMCodecDescriptions[]; |
226 MEDIA_EXPORT extern const char kWebMCodecMetadata[]; | 229 MEDIA_EXPORT extern const char kWebMCodecMetadata[]; |
227 | 230 |
228 } // namespace media | 231 } // namespace media |
229 | 232 |
230 #endif // MEDIA_FORMATS_WEBM_WEBM_CONSTANTS_H_ | 233 #endif // MEDIA_FORMATS_WEBM_WEBM_CONSTANTS_H_ |
OLD | NEW |