Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: media/formats/webm/webm_constants.h

Issue 2333663003: Add color metadata info to VideoDecoderConfig. (Closed)
Patch Set: buildfix Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 11
12 namespace media { 12 namespace media {
13 13
14 // WebM element IDs. 14 // WebM element IDs.
15 // This is a subset of the IDs in the Matroska spec. 15 // This is a subset of the IDs in the Matroska spec.
16 // http://www.matroska.org/technical/specs/index.html 16 // http://www.matroska.org/technical/specs/index.html
17 const int kWebMIdAESSettingsCipherMode = 0x47E8; 17 const int kWebMIdAESSettingsCipherMode = 0x47E8;
18 const int kWebMIdAlphaMode = 0x53C0; 18 const int kWebMIdAlphaMode = 0x53C0;
19 const int kWebMIdAspectRatioType = 0x54B3; 19 const int kWebMIdAspectRatioType = 0x54B3;
20 const int kWebMIdAttachedFile = 0x61A7; 20 const int kWebMIdAttachedFile = 0x61A7;
21 const int kWebMIdAttachmentLink = 0x7446; 21 const int kWebMIdAttachmentLink = 0x7446;
22 const int kWebMIdAttachments = 0x1941A469; 22 const int kWebMIdAttachments = 0x1941A469;
23 const int kWebMIdAudio = 0xE1; 23 const int kWebMIdAudio = 0xE1;
24 const int kWebMIdBitDepth = 0x6264; 24 const int kWebMIdBitDepth = 0x6264;
25 const int kWebMIdBitsPerChannel = 0x55B2;
25 const int kWebMIdBlock = 0xA1; 26 const int kWebMIdBlock = 0xA1;
26 const int kWebMIdBlockAddID = 0xEE; 27 const int kWebMIdBlockAddID = 0xEE;
27 const int kWebMIdBlockAdditions = 0x75A1; 28 const int kWebMIdBlockAdditions = 0x75A1;
28 const int kWebMIdBlockAdditional = 0xA5; 29 const int kWebMIdBlockAdditional = 0xA5;
29 const int kWebMIdBlockDuration = 0x9B; 30 const int kWebMIdBlockDuration = 0x9B;
30 const int kWebMIdBlockGroup = 0xA0; 31 const int kWebMIdBlockGroup = 0xA0;
31 const int kWebMIdBlockMore = 0xA6; 32 const int kWebMIdBlockMore = 0xA6;
33 const int kWebMIdCbSubsamplingHorz = 0x55B5;
34 const int kWebMIdCbSubsamplingVert = 0x55B6;
32 const int kWebMIdChannels = 0x9F; 35 const int kWebMIdChannels = 0x9F;
33 const int kWebMIdChapCountry = 0x437E; 36 const int kWebMIdChapCountry = 0x437E;
34 const int kWebMIdChapLanguage = 0x437C; 37 const int kWebMIdChapLanguage = 0x437C;
35 const int kWebMIdChapProcess = 0x6944; 38 const int kWebMIdChapProcess = 0x6944;
36 const int kWebMIdChapProcessCodecID = 0x6955; 39 const int kWebMIdChapProcessCodecID = 0x6955;
37 const int kWebMIdChapProcessCommand = 0x6911; 40 const int kWebMIdChapProcessCommand = 0x6911;
38 const int kWebMIdChapProcessData = 0x6933; 41 const int kWebMIdChapProcessData = 0x6933;
39 const int kWebMIdChapProcessPrivate = 0x450D; 42 const int kWebMIdChapProcessPrivate = 0x450D;
40 const int kWebMIdChapProcessTime = 0x6922; 43 const int kWebMIdChapProcessTime = 0x6922;
41 const int kWebMIdChapString = 0x85; 44 const int kWebMIdChapString = 0x85;
42 const int kWebMIdChapterAtom = 0xB6; 45 const int kWebMIdChapterAtom = 0xB6;
43 const int kWebMIdChapterDisplay = 0x80; 46 const int kWebMIdChapterDisplay = 0x80;
44 const int kWebMIdChapterFlagEnabled = 0x4598; 47 const int kWebMIdChapterFlagEnabled = 0x4598;
45 const int kWebMIdChapterFlagHidden = 0x98; 48 const int kWebMIdChapterFlagHidden = 0x98;
46 const int kWebMIdChapterPhysicalEquiv = 0x63C3; 49 const int kWebMIdChapterPhysicalEquiv = 0x63C3;
47 const int kWebMIdChapters = 0x1043A770; 50 const int kWebMIdChapters = 0x1043A770;
48 const int kWebMIdChapterSegmentEditionUID = 0x6EBC; 51 const int kWebMIdChapterSegmentEditionUID = 0x6EBC;
49 const int kWebMIdChapterSegmentUID = 0x6E67; 52 const int kWebMIdChapterSegmentUID = 0x6E67;
50 const int kWebMIdChapterTimeEnd = 0x92; 53 const int kWebMIdChapterTimeEnd = 0x92;
51 const int kWebMIdChapterTimeStart = 0x91; 54 const int kWebMIdChapterTimeStart = 0x91;
52 const int kWebMIdChapterTrack = 0x8F; 55 const int kWebMIdChapterTrack = 0x8F;
53 const int kWebMIdChapterTrackNumber = 0x89; 56 const int kWebMIdChapterTrackNumber = 0x89;
54 const int kWebMIdChapterTranslate = 0x6924; 57 const int kWebMIdChapterTranslate = 0x6924;
55 const int kWebMIdChapterTranslateCodec = 0x69BF; 58 const int kWebMIdChapterTranslateCodec = 0x69BF;
56 const int kWebMIdChapterTranslateEditionUID = 0x69FC; 59 const int kWebMIdChapterTranslateEditionUID = 0x69FC;
57 const int kWebMIdChapterTranslateID = 0x69A5; 60 const int kWebMIdChapterTranslateID = 0x69A5;
58 const int kWebMIdChapterUID = 0x73C4; 61 const int kWebMIdChapterUID = 0x73C4;
62 const int kWebMIdChromaSitingHorz = 0x55B7;
63 const int kWebMIdChromaSitingVert = 0x55B8;
64 const int kWebMIdChromaSubsamplingHorz = 0x55B3;
65 const int kWebMIdChromaSubsamplingVert = 0x55B4;
59 const int kWebMIdCluster = 0x1F43B675; 66 const int kWebMIdCluster = 0x1F43B675;
60 const int kWebMIdCodecDecodeAll = 0xAA; 67 const int kWebMIdCodecDecodeAll = 0xAA;
61 const int kWebMIdCodecDelay = 0x56AA; 68 const int kWebMIdCodecDelay = 0x56AA;
62 const int kWebMIdCodecID = 0x86; 69 const int kWebMIdCodecID = 0x86;
63 const int kWebMIdCodecName = 0x258688; 70 const int kWebMIdCodecName = 0x258688;
64 const int kWebMIdCodecPrivate = 0x63A2; 71 const int kWebMIdCodecPrivate = 0x63A2;
65 const int kWebMIdCodecState = 0xA4; 72 const int kWebMIdCodecState = 0xA4;
66 const int kWebMIdColorSpace = 0x2EB524; 73 const int kWebMIdColorSpace = 0x2EB524;
74 const int kWebMIdColour = 0x55B0;
67 const int kWebMIdContentCompAlgo = 0x4254; 75 const int kWebMIdContentCompAlgo = 0x4254;
68 const int kWebMIdContentCompression = 0x5034; 76 const int kWebMIdContentCompression = 0x5034;
69 const int kWebMIdContentCompSettings = 0x4255; 77 const int kWebMIdContentCompSettings = 0x4255;
70 const int kWebMIdContentEncAESSettings = 0x47E7; 78 const int kWebMIdContentEncAESSettings = 0x47E7;
71 const int kWebMIdContentEncAlgo = 0x47E1; 79 const int kWebMIdContentEncAlgo = 0x47E1;
72 const int kWebMIdContentEncKeyID = 0x47E2; 80 const int kWebMIdContentEncKeyID = 0x47E2;
73 const int kWebMIdContentEncoding = 0x6240; 81 const int kWebMIdContentEncoding = 0x6240;
74 const int kWebMIdContentEncodingOrder = 0x5031; 82 const int kWebMIdContentEncodingOrder = 0x5031;
75 const int kWebMIdContentEncodings = 0x6D80; 83 const int kWebMIdContentEncodings = 0x6D80;
76 const int kWebMIdContentEncodingScope = 0x5032; 84 const int kWebMIdContentEncodingScope = 0x5032;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 const int kWebMIdFlagDefault = 0x88; 127 const int kWebMIdFlagDefault = 0x88;
120 const int kWebMIdFlagEnabled = 0xB9; 128 const int kWebMIdFlagEnabled = 0xB9;
121 const int kWebMIdFlagForced = 0x55AA; 129 const int kWebMIdFlagForced = 0x55AA;
122 const int kWebMIdFlagInterlaced = 0x9A; 130 const int kWebMIdFlagInterlaced = 0x9A;
123 const int kWebMIdFlagLacing = 0x9C; 131 const int kWebMIdFlagLacing = 0x9C;
124 const int kWebMIdFrameRate = 0x2383E3; 132 const int kWebMIdFrameRate = 0x2383E3;
125 const int kWebMIdInfo = 0x1549A966; 133 const int kWebMIdInfo = 0x1549A966;
126 const int kWebMIdJoinBlocks = 0xE9; 134 const int kWebMIdJoinBlocks = 0xE9;
127 const int kWebMIdLaceNumber = 0xCC; 135 const int kWebMIdLaceNumber = 0xCC;
128 const int kWebMIdLanguage = 0x22B59C; 136 const int kWebMIdLanguage = 0x22B59C;
137 const int kWebMIdLuminanceMax = 0x55D9;
138 const int kWebMIdLuminanceMin = 0x55DA;
139 const int kWebMIdMasteringMetadata = 0x55D0;
140 const int kWebMIdMatrixCoefficients = 0x55B1;
129 const int kWebMIdMaxBlockAdditionId = 0x55EE; 141 const int kWebMIdMaxBlockAdditionId = 0x55EE;
130 const int kWebMIdMaxCache = 0x6DF8; 142 const int kWebMIdMaxCache = 0x6DF8;
143 const int kWebMIdMaxCLL = 0x55BC;
144 const int kWebMIdMaxFALL = 0x55BD;
131 const int kWebMIdMinCache = 0x6DE7; 145 const int kWebMIdMinCache = 0x6DE7;
132 const int kWebMIdMuxingApp = 0x4D80; 146 const int kWebMIdMuxingApp = 0x4D80;
133 const int kWebMIdName = 0x536E; 147 const int kWebMIdName = 0x536E;
134 const int kWebMIdNextFilename = 0x3E83BB; 148 const int kWebMIdNextFilename = 0x3E83BB;
135 const int kWebMIdNextUID = 0x3EB923; 149 const int kWebMIdNextUID = 0x3EB923;
136 const int kWebMIdOutputSamplingFrequency = 0x78B5; 150 const int kWebMIdOutputSamplingFrequency = 0x78B5;
137 const int kWebMIdPixelCropBottom = 0x54AA; 151 const int kWebMIdPixelCropBottom = 0x54AA;
138 const int kWebMIdPixelCropLeft = 0x54CC; 152 const int kWebMIdPixelCropLeft = 0x54CC;
139 const int kWebMIdPixelCropRight = 0x54DD; 153 const int kWebMIdPixelCropRight = 0x54DD;
140 const int kWebMIdPixelCropTop = 0x54BB; 154 const int kWebMIdPixelCropTop = 0x54BB;
141 const int kWebMIdPixelHeight = 0xBA; 155 const int kWebMIdPixelHeight = 0xBA;
142 const int kWebMIdPixelWidth = 0xB0; 156 const int kWebMIdPixelWidth = 0xB0;
143 const int kWebMIdPosition = 0xA7; 157 const int kWebMIdPosition = 0xA7;
144 const int kWebMIdPrevFilename = 0x3C83AB; 158 const int kWebMIdPrevFilename = 0x3C83AB;
145 const int kWebMIdPrevSize = 0xAB; 159 const int kWebMIdPrevSize = 0xAB;
146 const int kWebMIdPrevUID = 0x3CB923; 160 const int kWebMIdPrevUID = 0x3CB923;
161 const int kWebMIdPrimaries = 0x55BB;
162 const int kWebMIdPrimaryBChromaticityX = 0x55D5;
163 const int kWebMIdPrimaryBChromaticityY = 0x55D6;
164 const int kWebMIdPrimaryGChromaticityX = 0x55D3;
165 const int kWebMIdPrimaryGChromaticityY = 0x55D4;
166 const int kWebMIdPrimaryRChromaticityX = 0x55D1;
167 const int kWebMIdPrimaryRChromaticityY = 0x55D2;
168 const int kWebMIdRange = 0x55B9;
147 const int kWebMIdReferenceBlock = 0xFB; 169 const int kWebMIdReferenceBlock = 0xFB;
148 const int kWebMIdReferencePriority = 0xFA; 170 const int kWebMIdReferencePriority = 0xFA;
149 const int kWebMIdSamplingFrequency = 0xB5; 171 const int kWebMIdSamplingFrequency = 0xB5;
150 const int kWebMIdSeek = 0x4DBB; 172 const int kWebMIdSeek = 0x4DBB;
151 const int kWebMIdSeekHead = 0x114D9B74; 173 const int kWebMIdSeekHead = 0x114D9B74;
152 const int kWebMIdSeekID = 0x53AB; 174 const int kWebMIdSeekID = 0x53AB;
153 const int kWebMIdSeekPosition = 0x53AC; 175 const int kWebMIdSeekPosition = 0x53AC;
154 const int kWebMIdSeekPreRoll = 0x56BB; 176 const int kWebMIdSeekPreRoll = 0x56BB;
155 const int kWebMIdSegment = 0x18538067; 177 const int kWebMIdSegment = 0x18538067;
156 const int kWebMIdSegmentFamily = 0x4444; 178 const int kWebMIdSegmentFamily = 0x4444;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 const int kWebMIdTrackPlaneType = 0xE6; 212 const int kWebMIdTrackPlaneType = 0xE6;
191 const int kWebMIdTrackPlaneUID = 0xE5; 213 const int kWebMIdTrackPlaneUID = 0xE5;
192 const int kWebMIdTracks = 0x1654AE6B; 214 const int kWebMIdTracks = 0x1654AE6B;
193 const int kWebMIdTrackTimecodeScale = 0x23314F; 215 const int kWebMIdTrackTimecodeScale = 0x23314F;
194 const int kWebMIdTrackTranslate = 0x6624; 216 const int kWebMIdTrackTranslate = 0x6624;
195 const int kWebMIdTrackTranslateCodec = 0x66BF; 217 const int kWebMIdTrackTranslateCodec = 0x66BF;
196 const int kWebMIdTrackTranslateEditionUID = 0x66FC; 218 const int kWebMIdTrackTranslateEditionUID = 0x66FC;
197 const int kWebMIdTrackTranslateTrackID = 0x66A5; 219 const int kWebMIdTrackTranslateTrackID = 0x66A5;
198 const int kWebMIdTrackType = 0x83; 220 const int kWebMIdTrackType = 0x83;
199 const int kWebMIdTrackUID = 0x73C5; 221 const int kWebMIdTrackUID = 0x73C5;
222 const int kWebMIdTransferCharacteristics = 0x55BA;
200 const int kWebMIdVideo = 0xE0; 223 const int kWebMIdVideo = 0xE0;
201 const int kWebMIdVoid = 0xEC; 224 const int kWebMIdVoid = 0xEC;
225 const int kWebMIdWhitePointChromaticityX = 0x55D7;
226 const int kWebMIdWhitePointChromaticityY = 0x55D8;
202 const int kWebMIdWritingApp = 0x5741; 227 const int kWebMIdWritingApp = 0x5741;
203 228
204 const int64_t kWebMReservedId = 0x1FFFFFFF; 229 const int64_t kWebMReservedId = 0x1FFFFFFF;
205 const int64_t kWebMUnknownSize = 0x00FFFFFFFFFFFFFFLL; 230 const int64_t kWebMUnknownSize = 0x00FFFFFFFFFFFFFFLL;
206 231
207 const uint8_t kWebMFlagKeyframe = 0x80; 232 const uint8_t kWebMFlagKeyframe = 0x80;
208 233
209 // Current encrypted WebM request for comments specification is here 234 // Current encrypted WebM request for comments specification is here
210 // http://wiki.webmproject.org/encryption/webm-encryption-rfc 235 // http://wiki.webmproject.org/encryption/webm-encryption-rfc
211 const uint8_t kWebMFlagEncryptedFrame = 0x1; 236 const uint8_t kWebMFlagEncryptedFrame = 0x1;
212 const int kWebMIvSize = 8; 237 const int kWebMIvSize = 8;
213 const int kWebMSignalByteSize = 1; 238 const int kWebMSignalByteSize = 1;
214 239
215 // Current specification for WebVTT embedded in WebM 240 // Current specification for WebVTT embedded in WebM
216 // http://wiki.webmproject.org/webm-metadata/temporal-metadata/webvtt-in-webm 241 // http://wiki.webmproject.org/webm-metadata/temporal-metadata/webvtt-in-webm
217 242
218 const int kWebMTrackTypeVideo = 1; 243 const int kWebMTrackTypeVideo = 1;
219 const int kWebMTrackTypeAudio = 2; 244 const int kWebMTrackTypeAudio = 2;
220 const int kWebMTrackTypeSubtitlesOrCaptions = 0x11; 245 const int kWebMTrackTypeSubtitlesOrCaptions = 0x11;
221 const int kWebMTrackTypeDescriptionsOrMetadata = 0x21; 246 const int kWebMTrackTypeDescriptionsOrMetadata = 0x21;
222 247
223 MEDIA_EXPORT extern const char kWebMCodecSubtitles[]; 248 MEDIA_EXPORT extern const char kWebMCodecSubtitles[];
224 MEDIA_EXPORT extern const char kWebMCodecCaptions[]; 249 MEDIA_EXPORT extern const char kWebMCodecCaptions[];
225 MEDIA_EXPORT extern const char kWebMCodecDescriptions[]; 250 MEDIA_EXPORT extern const char kWebMCodecDescriptions[];
226 MEDIA_EXPORT extern const char kWebMCodecMetadata[]; 251 MEDIA_EXPORT extern const char kWebMCodecMetadata[];
227 252
228 } // namespace media 253 } // namespace media
229 254
230 #endif // MEDIA_FORMATS_WEBM_WEBM_CONSTANTS_H_ 255 #endif // MEDIA_FORMATS_WEBM_WEBM_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698