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
3 // found in the LICENSE file.
5 #ifndef MEDIA_WEBM_WEBM_CONSTANTS_H_
6 #define MEDIA_WEBM_WEBM_CONSTANTS_H_
8 #include "base/basictypes.h"
13 // This is a subset of the IDs in the Matroska spec.
14 // http://www.matroska.org/technical/specs/index.html
15 const int kWebMIdAESSettingsCipherMode
= 0x47E8;
16 const int kWebMIdAspectRatioType
= 0x54B3;
17 const int kWebMIdAttachedFile
= 0x61A7;
18 const int kWebMIdAttachmentLink
= 0x7446;
19 const int kWebMIdAttachments
= 0x1941A469;
20 const int kWebMIdAudio
= 0xE1;
21 const int kWebMIdBitDepth
= 0x6264;
22 const int kWebMIdBlock
= 0xA1;
23 const int kWebMIdBlockAddID
= 0xEE;
24 const int kWebMIdBlockAdditions
= 0x75A1;
25 const int kWebMIdBlockAdditional
= 0xA5;
26 const int kWebMIdBlockDuration
= 0x9B;
27 const int kWebMIdBlockGroup
= 0xA0;
28 const int kWebMIdBlockMore
= 0xA6;
29 const int kWebMIdChannels
= 0x9F;
30 const int kWebMIdChapCountry
= 0x437E;
31 const int kWebMIdChapLanguage
= 0x437C;
32 const int kWebMIdChapProcess
= 0x6944;
33 const int kWebMIdChapProcessCodecID
= 0x6955;
34 const int kWebMIdChapProcessCommand
= 0x6911;
35 const int kWebMIdChapProcessData
= 0x6933;
36 const int kWebMIdChapProcessPrivate
= 0x450D;
37 const int kWebMIdChapProcessTime
= 0x6922;
38 const int kWebMIdChapString
= 0x85;
39 const int kWebMIdChapterAtom
= 0xB6;
40 const int kWebMIdChapterDisplay
= 0x80;
41 const int kWebMIdChapterFlagEnabled
= 0x4598;
42 const int kWebMIdChapterFlagHidden
= 0x98;
43 const int kWebMIdChapterPhysicalEquiv
= 0x63C3;
44 const int kWebMIdChapters
= 0x1043A770;
45 const int kWebMIdChapterSegmentEditionUID
= 0x6EBC;
46 const int kWebMIdChapterSegmentUID
= 0x6E67;
47 const int kWebMIdChapterTimeEnd
= 0x92;
48 const int kWebMIdChapterTimeStart
= 0x91;
49 const int kWebMIdChapterTrack
= 0x8F;
50 const int kWebMIdChapterTrackNumber
= 0x89;
51 const int kWebMIdChapterTranslate
= 0x6924;
52 const int kWebMIdChapterTranslateCodec
= 0x69BF;
53 const int kWebMIdChapterTranslateEditionUID
= 0x69FC;
54 const int kWebMIdChapterTranslateID
= 0x69A5;
55 const int kWebMIdChapterUID
= 0x73C4;
56 const int kWebMIdCluster
= 0x1F43B675;
57 const int kWebMIdCodecDecodeAll
= 0xAA;
58 const int kWebMIdCodecID
= 0x86;
59 const int kWebMIdCodecName
= 0x258688;
60 const int kWebMIdCodecPrivate
= 0x63A2;
61 const int kWebMIdCodecState
= 0xA4;
62 const int kWebMIdColorSpace
= 0x2EB524;
63 const int kWebMIdContentCompAlgo
= 0x4254;
64 const int kWebMIdContentCompression
= 0x5034;
65 const int kWebMIdContentCompSettings
= 0x4255;
66 const int kWebMIdContentEncAESSettings
= 0x47E7;
67 const int kWebMIdContentEncAlgo
= 0x47E1;
68 const int kWebMIdContentEncKeyID
= 0x47E2;
69 const int kWebMIdContentEncoding
= 0x6240;
70 const int kWebMIdContentEncodingOrder
= 0x5031;
71 const int kWebMIdContentEncodings
= 0x6D80;
72 const int kWebMIdContentEncodingScope
= 0x5032;
73 const int kWebMIdContentEncodingType
= 0x5033;
74 const int kWebMIdContentEncryption
= 0x5035;
75 const int kWebMIdContentSigAlgo
= 0x47E5;
76 const int kWebMIdContentSigHashAlgo
= 0x47E6;
77 const int kWebMIdContentSigKeyID
= 0x47E4;
78 const int kWebMIdContentSignature
= 0x47E3;
79 const int kWebMIdCRC32
= 0xBF;
80 const int kWebMIdCueBlockNumber
= 0x5378;
81 const int kWebMIdCueClusterPosition
= 0xF1;
82 const int kWebMIdCueCodecState
= 0xEA;
83 const int kWebMIdCuePoint
= 0xBB;
84 const int kWebMIdCueReference
= 0xDB;
85 const int kWebMIdCueRefTime
= 0x96;
86 const int kWebMIdCues
= 0x1C53BB6B;
87 const int kWebMIdCueTime
= 0xB3;
88 const int kWebMIdCueTrack
= 0xF7;
89 const int kWebMIdCueTrackPositions
= 0xB7;
90 const int kWebMIdDateUTC
= 0x4461;
91 const int kWebMIdDefaultDuration
= 0x23E383;
92 const int kWebMIdDisplayHeight
= 0x54BA;
93 const int kWebMIdDisplayUnit
= 0x54B2;
94 const int kWebMIdDisplayWidth
= 0x54B0;
95 const int kWebMIdDocType
= 0x4282;
96 const int kWebMIdDocTypeReadVersion
= 0x4285;
97 const int kWebMIdDocTypeVersion
= 0x4287;
98 const int kWebMIdDuration
= 0x4489;
99 const int kWebMIdEBMLHeader
= 0x1A45DFA3;
100 const int kWebMIdEBMLMaxIDLength
= 0x42F2;
101 const int kWebMIdEBMLMaxSizeLength
= 0x42F3;
102 const int kWebMIdEBMLReadVersion
= 0x42F7;
103 const int kWebMIdEBMLVersion
= 0x4286;
104 const int kWebMIdEditionEntry
= 0x45B9;
105 const int kWebMIdEditionFlagDefault
= 0x45DB;
106 const int kWebMIdEditionFlagHidden
= 0x45BD;
107 const int kWebMIdEditionFlagOrdered
= 0x45DD;
108 const int kWebMIdEditionUID
= 0x45BC;
109 const int kWebMIdFileData
= 0x465C;
110 const int kWebMIdFileDescription
= 0x467E;
111 const int kWebMIdFileMimeType
= 0x4660;
112 const int kWebMIdFileName
= 0x466E;
113 const int kWebMIdFileUID
= 0x46AE;
114 const int kWebMIdFlagDefault
= 0x88;
115 const int kWebMIdFlagEnabled
= 0xB9;
116 const int kWebMIdFlagForced
= 0x55AA;
117 const int kWebMIdFlagInterlaced
= 0x9A;
118 const int kWebMIdFlagLacing
= 0x9C;
119 const int kWebMIdInfo
= 0x1549A966;
120 const int kWebMIdJoinBlocks
= 0xE9;
121 const int kWebMIdLaceNumber
= 0xCC;
122 const int kWebMIdLanguage
= 0x22B59C;
123 const int kWebMIdMaxBlockAdditionId
= 0x55EE;
124 const int kWebMIdMaxCache
= 0x6DF8;
125 const int kWebMIdMinCache
= 0x6DE7;
126 const int kWebMIdMuxingApp
= 0x4D80;
127 const int kWebMIdName
= 0x536E;
128 const int kWebMIdNextFilename
= 0x3E83BB;
129 const int kWebMIdNextUID
= 0x3EB923;
130 const int kWebMIdOutputSamplingFrequency
= 0x78B5;
131 const int kWebMIdPixelCropBottom
= 0x54AA;
132 const int kWebMIdPixelCropLeft
= 0x54CC;
133 const int kWebMIdPixelCropRight
= 0x54DD;
134 const int kWebMIdPixelCropTop
= 0x54BB;
135 const int kWebMIdPixelHeight
= 0xBA;
136 const int kWebMIdPixelWidth
= 0xB0;
137 const int kWebMIdPosition
= 0xA7;
138 const int kWebMIdPrevFilename
= 0x3C83AB;
139 const int kWebMIdPrevSize
= 0xAB;
140 const int kWebMIdPrevUID
= 0x3CB923;
141 const int kWebMIdReferenceBlock
= 0xFB;
142 const int kWebMIdReferencePriority
= 0xFA;
143 const int kWebMIdSamplingFrequency
= 0xB5;
144 const int kWebMIdSeek
= 0x4DBB;
145 const int kWebMIdSeekHead
= 0x114D9B74;
146 const int kWebMIdSeekID
= 0x53AB;
147 const int kWebMIdSeekPosition
= 0x53AC;
148 const int kWebMIdSegment
= 0x18538067;
149 const int kWebMIdSegmentFamily
= 0x4444;
150 const int kWebMIdSegmentFilename
= 0x7384;
151 const int kWebMIdSegmentUID
= 0x73A4;
152 const int kWebMIdSilentTrackNumber
= 0x58D7;
153 const int kWebMIdSilentTracks
= 0x5854;
154 const int kWebMIdSimpleBlock
= 0xA3;
155 const int kWebMIdSimpleTag
= 0x67C8;
156 const int kWebMIdSlices
= 0x8E;
157 const int kWebMIdStereoMode
= 0x53B8;
158 const int kWebMIdTag
= 0x7373;
159 const int kWebMIdTagAttachmentUID
= 0x63C6;
160 const int kWebMIdTagBinary
= 0x4485;
161 const int kWebMIdTagChapterUID
= 0x63C4;
162 const int kWebMIdTagDefault
= 0x4484;
163 const int kWebMIdTagEditionUID
= 0x63C9;
164 const int kWebMIdTagLanguage
= 0x447A;
165 const int kWebMIdTagName
= 0x45A3;
166 const int kWebMIdTags
= 0x1254C367;
167 const int kWebMIdTagString
= 0x4487;
168 const int kWebMIdTagTrackUID
= 0x63C5;
169 const int kWebMIdTargets
= 0x63C0;
170 const int kWebMIdTargetType
= 0x63CA;
171 const int kWebMIdTargetTypeValue
= 0x68CA;
172 const int kWebMIdTimecode
= 0xE7;
173 const int kWebMIdTimecodeScale
= 0x2AD7B1;
174 const int kWebMIdTimeSlice
= 0xE8;
175 const int kWebMIdTitle
= 0x7BA9;
176 const int kWebMIdTrackCombinePlanes
= 0xE3;
177 const int kWebMIdTrackEntry
= 0xAE;
178 const int kWebMIdTrackJoinUID
= 0xED;
179 const int kWebMIdTrackNumber
= 0xD7;
180 const int kWebMIdTrackOperation
= 0xE2;
181 const int kWebMIdTrackOverlay
= 0x6FAB;
182 const int kWebMIdTrackPlane
= 0xE4;
183 const int kWebMIdTrackPlaneType
= 0xE6;
184 const int kWebMIdTrackPlaneUID
= 0xE5;
185 const int kWebMIdTracks
= 0x1654AE6B;
186 const int kWebMIdTrackTimecodeScale
= 0x23314F;
187 const int kWebMIdTrackTranslate
= 0x6624;
188 const int kWebMIdTrackTranslateCodec
= 0x66BF;
189 const int kWebMIdTrackTranslateEditionUID
= 0x66FC;
190 const int kWebMIdTrackTranslateTrackID
= 0x66A5;
191 const int kWebMIdTrackType
= 0x83;
192 const int kWebMIdTrackUID
= 0x73C5;
193 const int kWebMIdVideo
= 0xE0;
194 const int kWebMIdVoid
= 0xEC;
195 const int kWebMIdWritingApp
= 0x5741;
197 const int64 kWebMReservedId
= 0x1FFFFFFF;
198 const int64 kWebMUnknownSize
= GG_LONGLONG(0x00FFFFFFFFFFFFFF);
200 const uint8 kWebMFlagKeyframe
= 0x80;
202 // Current encrypted WebM request for comments specification is here
203 // http://wiki.webmproject.org/encryption/webm-encryption-rfc
204 const uint8 kWebMFlagEncryptedFrame
= 0x1;
205 const int kWebMIvSize
= 8;
206 const int kWebMSignalByteSize
= 1;
210 #endif // MEDIA_WEBM_WEBM_CONSTANTS_H_