5 #ifndef PACKAGER_MEDIA_FORMATS_WEBM_WEBM_CONSTANTS_H_
6 #define PACKAGER_MEDIA_FORMATS_WEBM_WEBM_CONSTANTS_H_
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 kWebMIdProjection = 0x7670;
163 const int kWebMIdProjectionType = 0x7671;
164 const int kWebMIdReferenceBlock = 0xFB;
165 const int kWebMIdReferencePriority = 0xFA;
166 const int kWebMIdSamplingFrequency = 0xB5;
167 const int kWebMIdSeek = 0x4DBB;
168 const int kWebMIdSeekHead = 0x114D9B74;
169 const int kWebMIdSeekID = 0x53AB;
170 const int kWebMIdSeekPosition = 0x53AC;
171 const int kWebMIdSeekPreRoll = 0x56BB;
172 const int kWebMIdSegment = 0x18538067;
173 const int kWebMIdSegmentFamily = 0x4444;
174 const int kWebMIdSegmentFilename = 0x7384;
175 const int kWebMIdSegmentUID = 0x73A4;
176 const int kWebMIdSilentTrackNumber = 0x58D7;
177 const int kWebMIdSilentTracks = 0x5854;
178 const int kWebMIdSimpleBlock = 0xA3;
179 const int kWebMIdSimpleTag = 0x67C8;
180 const int kWebMIdSlices = 0x8E;
181 const int kWebMIdStereoMode = 0x53B8;
182 const int kWebMIdTag = 0x7373;
183 const int kWebMIdTagAttachmentUID = 0x63C6;
184 const int kWebMIdTagBinary = 0x4485;
185 const int kWebMIdTagChapterUID = 0x63C4;
186 const int kWebMIdTagDefault = 0x4484;
187 const int kWebMIdTagEditionUID = 0x63C9;
188 const int kWebMIdTagLanguage = 0x447A;
189 const int kWebMIdTagName = 0x45A3;
190 const int kWebMIdTags = 0x1254C367;
191 const int kWebMIdTagString = 0x4487;
192 const int kWebMIdTagTrackUID = 0x63C5;
193 const int kWebMIdTargets = 0x63C0;
194 const int kWebMIdTargetType = 0x63CA;
195 const int kWebMIdTargetTypeValue = 0x68CA;
196 const int kWebMIdTimecode = 0xE7;
197 const int kWebMIdTimecodeScale = 0x2AD7B1;
198 const int kWebMIdTimeSlice = 0xE8;
199 const int kWebMIdTitle = 0x7BA9;
200 const int kWebMIdTrackCombinePlanes = 0xE3;
201 const int kWebMIdTrackEntry = 0xAE;
202 const int kWebMIdTrackJoinUID = 0xED;
203 const int kWebMIdTrackNumber = 0xD7;
204 const int kWebMIdTrackOperation = 0xE2;
205 const int kWebMIdTrackOverlay = 0x6FAB;
206 const int kWebMIdTrackPlane = 0xE4;
207 const int kWebMIdTrackPlaneType = 0xE6;
208 const int kWebMIdTrackPlaneUID = 0xE5;
209 const int kWebMIdTracks = 0x1654AE6B;
210 const int kWebMIdTrackTimecodeScale = 0x23314F;
211 const int kWebMIdTrackTranslate = 0x6624;
212 const int kWebMIdTrackTranslateCodec = 0x66BF;
213 const int kWebMIdTrackTranslateEditionUID = 0x66FC;
214 const int kWebMIdTrackTranslateTrackID = 0x66A5;
215 const int kWebMIdTrackType = 0x83;
216 const int kWebMIdTrackUID = 0x73C5;
217 const int kWebMIdVideo = 0xE0;
218 const int kWebMIdVoid = 0xEC;
219 const int kWebMIdWritingApp = 0x5741;
221 const int64_t kWebMReservedId = 0x1FFFFFFF;
222 const int64_t kWebMUnknownSize = 0x00FFFFFFFFFFFFFFLL;
224 const uint8_t kWebMFlagKeyframe = 0x80;
228 const size_t kWebMIvSize = 8;
229 const size_t kWebMSignalByteSize = 1;
230 const uint8_t kWebMEncryptedSignal = 0x01;
231 const uint8_t kWebMPartitionedSignal = 0x02;
232 const size_t kWebMNumPartitionsSize = 1;
233 const size_t kWebMPartitionOffsetSize =
sizeof(uint32_t);
234 const uint8_t kWebMMaxSubsamples = 127;
239 const int kWebMTrackTypeVideo = 1;
240 const int kWebMTrackTypeAudio = 2;
241 const int kWebMTrackTypeSubtitlesOrCaptions = 0x11;
242 const int kWebMTrackTypeDescriptionsOrMetadata = 0x21;
244 extern const char kWebMCodecSubtitles[];
245 extern const char kWebMCodecCaptions[];
246 extern const char kWebMCodecDescriptions[];
247 extern const char kWebMCodecMetadata[];
252 #endif // PACKAGER_MEDIA_FORMATS_WEBM_WEBM_CONSTANTS_H_