DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
webm_constants.h
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
3 // found in the LICENSE file.
4 
5 #ifndef MEDIA_FORMATS_WEBM_WEBM_CONSTANTS_H_
6 #define MEDIA_FORMATS_WEBM_WEBM_CONSTANTS_H_
7 
8 #include <stddef.h>
9 #include <stdint.h>
10 
11 namespace shaka {
12 namespace media {
13 
17 const int kWebMIdAESSettingsCipherMode = 0x47E8;
18 const int kWebMIdAlphaMode = 0x53C0;
19 const int kWebMIdAspectRatioType = 0x54B3;
20 const int kWebMIdAttachedFile = 0x61A7;
21 const int kWebMIdAttachmentLink = 0x7446;
22 const int kWebMIdAttachments = 0x1941A469;
23 const int kWebMIdAudio = 0xE1;
24 const int kWebMIdBitDepth = 0x6264;
25 const int kWebMIdBlock = 0xA1;
26 const int kWebMIdBlockAddID = 0xEE;
27 const int kWebMIdBlockAdditions = 0x75A1;
28 const int kWebMIdBlockAdditional = 0xA5;
29 const int kWebMIdBlockDuration = 0x9B;
30 const int kWebMIdBlockGroup = 0xA0;
31 const int kWebMIdBlockMore = 0xA6;
32 const int kWebMIdChannels = 0x9F;
33 const int kWebMIdChapCountry = 0x437E;
34 const int kWebMIdChapLanguage = 0x437C;
35 const int kWebMIdChapProcess = 0x6944;
36 const int kWebMIdChapProcessCodecID = 0x6955;
37 const int kWebMIdChapProcessCommand = 0x6911;
38 const int kWebMIdChapProcessData = 0x6933;
39 const int kWebMIdChapProcessPrivate = 0x450D;
40 const int kWebMIdChapProcessTime = 0x6922;
41 const int kWebMIdChapString = 0x85;
42 const int kWebMIdChapterAtom = 0xB6;
43 const int kWebMIdChapterDisplay = 0x80;
44 const int kWebMIdChapterFlagEnabled = 0x4598;
45 const int kWebMIdChapterFlagHidden = 0x98;
46 const int kWebMIdChapterPhysicalEquiv = 0x63C3;
47 const int kWebMIdChapters = 0x1043A770;
48 const int kWebMIdChapterSegmentEditionUID = 0x6EBC;
49 const int kWebMIdChapterSegmentUID = 0x6E67;
50 const int kWebMIdChapterTimeEnd = 0x92;
51 const int kWebMIdChapterTimeStart = 0x91;
52 const int kWebMIdChapterTrack = 0x8F;
53 const int kWebMIdChapterTrackNumber = 0x89;
54 const int kWebMIdChapterTranslate = 0x6924;
55 const int kWebMIdChapterTranslateCodec = 0x69BF;
56 const int kWebMIdChapterTranslateEditionUID = 0x69FC;
57 const int kWebMIdChapterTranslateID = 0x69A5;
58 const int kWebMIdChapterUID = 0x73C4;
59 const int kWebMIdCluster = 0x1F43B675;
60 const int kWebMIdCodecDecodeAll = 0xAA;
61 const int kWebMIdCodecDelay = 0x56AA;
62 const int kWebMIdCodecID = 0x86;
63 const int kWebMIdCodecName = 0x258688;
64 const int kWebMIdCodecPrivate = 0x63A2;
65 const int kWebMIdCodecState = 0xA4;
66 const int kWebMIdColor = 0x55B0;
67 const int kWebMIdColorMatrixCoefficients = 0x55B1;
68 const int kWebMIdColorBitsPerChannel = 0x55B2;
69 const int kWebMIdColorChromaSubsamplingHorz = 0x55B3;
70 const int kWebMIdColorChromaSubsamplingVert = 0x55B4;
71 const int kWebMIdColorCbSamplingHorz = 0x55B5;
72 const int kWebMIdColorCbSamplingVert = 0x55B6;
73 const int kWebMIdColorChromaSitingHorz = 0x55B7;
74 const int kWebMIdColorChromaSitingVert = 0x55B8;
75 const int kWebMIdColorRange = 0x55B9;
76 const int kWebMIdColorTransferCharacteristics = 0x55BA;
77 const int kWebMIdColorPrimaries = 0x55BB;
78 const int kWebMIdColorMaxCLL = 0x55BC;
79 const int kWebMIdColorMaxFALL = 0x55BD;
80 const int kWebMIdColorMasteringMetadata = 0x55D0;
81 const int kWebMIdColorSpace = 0x2EB524;
82 const int kWebMIdContentCompAlgo = 0x4254;
83 const int kWebMIdContentCompression = 0x5034;
84 const int kWebMIdContentCompSettings = 0x4255;
85 const int kWebMIdContentEncAESSettings = 0x47E7;
86 const int kWebMIdContentEncAlgo = 0x47E1;
87 const int kWebMIdContentEncKeyID = 0x47E2;
88 const int kWebMIdContentEncoding = 0x6240;
89 const int kWebMIdContentEncodingOrder = 0x5031;
90 const int kWebMIdContentEncodings = 0x6D80;
91 const int kWebMIdContentEncodingScope = 0x5032;
92 const int kWebMIdContentEncodingType = 0x5033;
93 const int kWebMIdContentEncryption = 0x5035;
94 const int kWebMIdContentSigAlgo = 0x47E5;
95 const int kWebMIdContentSigHashAlgo = 0x47E6;
96 const int kWebMIdContentSigKeyID = 0x47E4;
97 const int kWebMIdContentSignature = 0x47E3;
98 const int kWebMIdCRC32 = 0xBF;
99 const int kWebMIdCueBlockNumber = 0x5378;
100 const int kWebMIdCueClusterPosition = 0xF1;
101 const int kWebMIdCueCodecState = 0xEA;
102 const int kWebMIdCuePoint = 0xBB;
103 const int kWebMIdCueReference = 0xDB;
104 const int kWebMIdCueRefTime = 0x96;
105 const int kWebMIdCues = 0x1C53BB6B;
106 const int kWebMIdCueTime = 0xB3;
107 const int kWebMIdCueTrack = 0xF7;
108 const int kWebMIdCueTrackPositions = 0xB7;
109 const int kWebMIdDateUTC = 0x4461;
110 const int kWebMIdDefaultDuration = 0x23E383;
111 const int kWebMIdDiscardPadding = 0x75A2;
112 const int kWebMIdDisplayHeight = 0x54BA;
113 const int kWebMIdDisplayUnit = 0x54B2;
114 const int kWebMIdDisplayWidth = 0x54B0;
115 const int kWebMIdDocType = 0x4282;
116 const int kWebMIdDocTypeReadVersion = 0x4285;
117 const int kWebMIdDocTypeVersion = 0x4287;
118 const int kWebMIdDuration = 0x4489;
119 const int kWebMIdEBMLHeader = 0x1A45DFA3;
120 const int kWebMIdEBMLMaxIDLength = 0x42F2;
121 const int kWebMIdEBMLMaxSizeLength = 0x42F3;
122 const int kWebMIdEBMLReadVersion = 0x42F7;
123 const int kWebMIdEBMLVersion = 0x4286;
124 const int kWebMIdEditionEntry = 0x45B9;
125 const int kWebMIdEditionFlagDefault = 0x45DB;
126 const int kWebMIdEditionFlagHidden = 0x45BD;
127 const int kWebMIdEditionFlagOrdered = 0x45DD;
128 const int kWebMIdEditionUID = 0x45BC;
129 const int kWebMIdFileData = 0x465C;
130 const int kWebMIdFileDescription = 0x467E;
131 const int kWebMIdFileMimeType = 0x4660;
132 const int kWebMIdFileName = 0x466E;
133 const int kWebMIdFileUID = 0x46AE;
134 const int kWebMIdFlagDefault = 0x88;
135 const int kWebMIdFlagEnabled = 0xB9;
136 const int kWebMIdFlagForced = 0x55AA;
137 const int kWebMIdFlagInterlaced = 0x9A;
138 const int kWebMIdFlagLacing = 0x9C;
139 const int kWebMIdFrameRate = 0x2383E3;
140 const int kWebMIdInfo = 0x1549A966;
141 const int kWebMIdJoinBlocks = 0xE9;
142 const int kWebMIdLaceNumber = 0xCC;
143 const int kWebMIdLanguage = 0x22B59C;
144 const int kWebMIdMaxBlockAdditionId = 0x55EE;
145 const int kWebMIdMaxCache = 0x6DF8;
146 const int kWebMIdMinCache = 0x6DE7;
147 const int kWebMIdMuxingApp = 0x4D80;
148 const int kWebMIdName = 0x536E;
149 const int kWebMIdNextFilename = 0x3E83BB;
150 const int kWebMIdNextUID = 0x3EB923;
151 const int kWebMIdOutputSamplingFrequency = 0x78B5;
152 const int kWebMIdPixelCropBottom = 0x54AA;
153 const int kWebMIdPixelCropLeft = 0x54CC;
154 const int kWebMIdPixelCropRight = 0x54DD;
155 const int kWebMIdPixelCropTop = 0x54BB;
156 const int kWebMIdPixelHeight = 0xBA;
157 const int kWebMIdPixelWidth = 0xB0;
158 const int kWebMIdPosition = 0xA7;
159 const int kWebMIdPrevFilename = 0x3C83AB;
160 const int kWebMIdPrevSize = 0xAB;
161 const int kWebMIdPrevUID = 0x3CB923;
162 const int kWebMIdReferenceBlock = 0xFB;
163 const int kWebMIdReferencePriority = 0xFA;
164 const int kWebMIdSamplingFrequency = 0xB5;
165 const int kWebMIdSeek = 0x4DBB;
166 const int kWebMIdSeekHead = 0x114D9B74;
167 const int kWebMIdSeekID = 0x53AB;
168 const int kWebMIdSeekPosition = 0x53AC;
169 const int kWebMIdSeekPreRoll = 0x56BB;
170 const int kWebMIdSegment = 0x18538067;
171 const int kWebMIdSegmentFamily = 0x4444;
172 const int kWebMIdSegmentFilename = 0x7384;
173 const int kWebMIdSegmentUID = 0x73A4;
174 const int kWebMIdSilentTrackNumber = 0x58D7;
175 const int kWebMIdSilentTracks = 0x5854;
176 const int kWebMIdSimpleBlock = 0xA3;
177 const int kWebMIdSimpleTag = 0x67C8;
178 const int kWebMIdSlices = 0x8E;
179 const int kWebMIdStereoMode = 0x53B8;
180 const int kWebMIdTag = 0x7373;
181 const int kWebMIdTagAttachmentUID = 0x63C6;
182 const int kWebMIdTagBinary = 0x4485;
183 const int kWebMIdTagChapterUID = 0x63C4;
184 const int kWebMIdTagDefault = 0x4484;
185 const int kWebMIdTagEditionUID = 0x63C9;
186 const int kWebMIdTagLanguage = 0x447A;
187 const int kWebMIdTagName = 0x45A3;
188 const int kWebMIdTags = 0x1254C367;
189 const int kWebMIdTagString = 0x4487;
190 const int kWebMIdTagTrackUID = 0x63C5;
191 const int kWebMIdTargets = 0x63C0;
192 const int kWebMIdTargetType = 0x63CA;
193 const int kWebMIdTargetTypeValue = 0x68CA;
194 const int kWebMIdTimecode = 0xE7;
195 const int kWebMIdTimecodeScale = 0x2AD7B1;
196 const int kWebMIdTimeSlice = 0xE8;
197 const int kWebMIdTitle = 0x7BA9;
198 const int kWebMIdTrackCombinePlanes = 0xE3;
199 const int kWebMIdTrackEntry = 0xAE;
200 const int kWebMIdTrackJoinUID = 0xED;
201 const int kWebMIdTrackNumber = 0xD7;
202 const int kWebMIdTrackOperation = 0xE2;
203 const int kWebMIdTrackOverlay = 0x6FAB;
204 const int kWebMIdTrackPlane = 0xE4;
205 const int kWebMIdTrackPlaneType = 0xE6;
206 const int kWebMIdTrackPlaneUID = 0xE5;
207 const int kWebMIdTracks = 0x1654AE6B;
208 const int kWebMIdTrackTimecodeScale = 0x23314F;
209 const int kWebMIdTrackTranslate = 0x6624;
210 const int kWebMIdTrackTranslateCodec = 0x66BF;
211 const int kWebMIdTrackTranslateEditionUID = 0x66FC;
212 const int kWebMIdTrackTranslateTrackID = 0x66A5;
213 const int kWebMIdTrackType = 0x83;
214 const int kWebMIdTrackUID = 0x73C5;
215 const int kWebMIdVideo = 0xE0;
216 const int kWebMIdVoid = 0xEC;
217 const int kWebMIdWritingApp = 0x5741;
218 
219 const int64_t kWebMReservedId = 0x1FFFFFFF;
220 const int64_t kWebMUnknownSize = 0x00FFFFFFFFFFFFFFLL;
221 
222 const uint8_t kWebMFlagKeyframe = 0x80;
223 
226 const size_t kWebMIvSize = 8;
227 const size_t kWebMSignalByteSize = 1;
228 const uint8_t kWebMEncryptedSignal = 0x01;
229 const uint8_t kWebMPartitionedSignal = 0x02;
230 const size_t kWebMNumPartitionsSize = 1;
231 const size_t kWebMPartitionOffsetSize = sizeof(uint32_t);
232 const uint8_t kWebMMaxSubsamples = 127;
233 
236 
237 const int kWebMTrackTypeVideo = 1;
238 const int kWebMTrackTypeAudio = 2;
239 const int kWebMTrackTypeSubtitlesOrCaptions = 0x11;
240 const int kWebMTrackTypeDescriptionsOrMetadata = 0x21;
241 
242 extern const char kWebMCodecSubtitles[];
243 extern const char kWebMCodecCaptions[];
244 extern const char kWebMCodecDescriptions[];
245 extern const char kWebMCodecMetadata[];
246 
247 } // namespace media
248 } // namespace shaka
249 
250 #endif // MEDIA_FORMATS_WEBM_WEBM_CONSTANTS_H_