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 #ifndef MEDIA_WEBM_WEBM_CONSTANTS_H_ | 5 #ifndef MEDIA_WEBM_WEBM_CONSTANTS_H_ |
6 #define MEDIA_WEBM_WEBM_CONSTANTS_H_ | 6 #define MEDIA_WEBM_WEBM_CONSTANTS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 namespace media { | 10 namespace media { |
11 | 11 |
12 // WebM element IDs. | 12 // WebM element IDs. |
13 // This is a subset of the IDs in the Matroska spec. | 13 // This is a subset of the IDs in the Matroska spec. |
14 // http://www.matroska.org/technical/specs/index.html | 14 // http://www.matroska.org/technical/specs/index.html |
15 const int kWebMIdAESSettingsCipherMode = 0x47E8; | |
16 const int kWebMIdAspectRatioType = 0x54B3; | 15 const int kWebMIdAspectRatioType = 0x54B3; |
17 const int kWebMIdAttachedFile = 0x61A7; | 16 const int kWebMIdAttachedFile = 0x61A7; |
18 const int kWebMIdAttachmentLink = 0x7446; | 17 const int kWebMIdAttachmentLink = 0x7446; |
19 const int kWebMIdAttachments = 0x1941A469; | 18 const int kWebMIdAttachments = 0x1941A469; |
20 const int kWebMIdAudio = 0xE1; | 19 const int kWebMIdAudio = 0xE1; |
21 const int kWebMIdBitDepth = 0x6264; | 20 const int kWebMIdBitDepth = 0x6264; |
22 const int kWebMIdBlock = 0xA1; | 21 const int kWebMIdBlock = 0xA1; |
23 const int kWebMIdBlockAddID = 0xEE; | 22 const int kWebMIdBlockAddID = 0xEE; |
24 const int kWebMIdBlockAdditions = 0x75A1; | 23 const int kWebMIdBlockAdditions = 0x75A1; |
25 const int kWebMIdBlockAdditional = 0xA5; | 24 const int kWebMIdBlockAdditional = 0xA5; |
(...skipping 30 matching lines...) Expand all Loading... |
56 const int kWebMIdCluster = 0x1F43B675; | 55 const int kWebMIdCluster = 0x1F43B675; |
57 const int kWebMIdCodecDecodeAll = 0xAA; | 56 const int kWebMIdCodecDecodeAll = 0xAA; |
58 const int kWebMIdCodecID = 0x86; | 57 const int kWebMIdCodecID = 0x86; |
59 const int kWebMIdCodecName = 0x258688; | 58 const int kWebMIdCodecName = 0x258688; |
60 const int kWebMIdCodecPrivate = 0x63A2; | 59 const int kWebMIdCodecPrivate = 0x63A2; |
61 const int kWebMIdCodecState = 0xA4; | 60 const int kWebMIdCodecState = 0xA4; |
62 const int kWebMIdColorSpace = 0x2EB524; | 61 const int kWebMIdColorSpace = 0x2EB524; |
63 const int kWebMIdContentCompAlgo = 0x4254; | 62 const int kWebMIdContentCompAlgo = 0x4254; |
64 const int kWebMIdContentCompression = 0x5034; | 63 const int kWebMIdContentCompression = 0x5034; |
65 const int kWebMIdContentCompSettings = 0x4255; | 64 const int kWebMIdContentCompSettings = 0x4255; |
66 const int kWebMIdContentEncAESSettings = 0x47E7; | |
67 const int kWebMIdContentEncAlgo = 0x47E1; | 65 const int kWebMIdContentEncAlgo = 0x47E1; |
68 const int kWebMIdContentEncKeyID = 0x47E2; | 66 const int kWebMIdContentEncKeyID = 0x47E2; |
69 const int kWebMIdContentEncoding = 0x6240; | 67 const int kWebMIdContentEncoding = 0x6240; |
70 const int kWebMIdContentEncodingOrder = 0x5031; | 68 const int kWebMIdContentEncodingOrder = 0x5031; |
71 const int kWebMIdContentEncodings = 0x6D80; | 69 const int kWebMIdContentEncodings = 0x6D80; |
72 const int kWebMIdContentEncodingScope = 0x5032; | 70 const int kWebMIdContentEncodingScope = 0x5032; |
73 const int kWebMIdContentEncodingType = 0x5033; | 71 const int kWebMIdContentEncodingType = 0x5033; |
74 const int kWebMIdContentEncryption = 0x5035; | 72 const int kWebMIdContentEncryption = 0x5035; |
75 const int kWebMIdContentSigAlgo = 0x47E5; | 73 const int kWebMIdContentSigAlgo = 0x47E5; |
76 const int kWebMIdContentSigHashAlgo = 0x47E6; | 74 const int kWebMIdContentSigHashAlgo = 0x47E6; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 const int kWebMIdTrackUID = 0x73C5; | 190 const int kWebMIdTrackUID = 0x73C5; |
193 const int kWebMIdVideo = 0xE0; | 191 const int kWebMIdVideo = 0xE0; |
194 const int kWebMIdVoid = 0xEC; | 192 const int kWebMIdVoid = 0xEC; |
195 const int kWebMIdWritingApp = 0x5741; | 193 const int kWebMIdWritingApp = 0x5741; |
196 | 194 |
197 const int64 kWebMReservedId = 0x1FFFFFFF; | 195 const int64 kWebMReservedId = 0x1FFFFFFF; |
198 const int64 kWebMUnknownSize = GG_LONGLONG(0x00FFFFFFFFFFFFFF); | 196 const int64 kWebMUnknownSize = GG_LONGLONG(0x00FFFFFFFFFFFFFF); |
199 | 197 |
200 const uint8 kWebMFlagKeyframe = 0x80; | 198 const uint8 kWebMFlagKeyframe = 0x80; |
201 | 199 |
202 // The size is from the WebM encrypted specification. Current encrypted WebM | |
203 // request for comments specification is here | |
204 // http://wiki.webmproject.org/encryption/webm-encryption-rfc | |
205 const int kWebMHmacSize = 12; | |
206 | |
207 } // namespace media | 200 } // namespace media |
208 | 201 |
209 #endif // MEDIA_WEBM_WEBM_CONSTANTS_H_ | 202 #endif // MEDIA_WEBM_WEBM_CONSTANTS_H_ |
OLD | NEW |