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

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

Issue 10535029: Add support for encrypted WebM files as defined in the RFC. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressing comments in the CL. Created 8 years, 5 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 (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;
15 const int kWebMIdAspectRatioType = 0x54B3; 16 const int kWebMIdAspectRatioType = 0x54B3;
16 const int kWebMIdAttachedFile = 0x61A7; 17 const int kWebMIdAttachedFile = 0x61A7;
17 const int kWebMIdAttachmentLink = 0x7446; 18 const int kWebMIdAttachmentLink = 0x7446;
18 const int kWebMIdAttachments = 0x1941A469; 19 const int kWebMIdAttachments = 0x1941A469;
19 const int kWebMIdAudio = 0xE1; 20 const int kWebMIdAudio = 0xE1;
20 const int kWebMIdBitDepth = 0x6264; 21 const int kWebMIdBitDepth = 0x6264;
21 const int kWebMIdBlock = 0xA1; 22 const int kWebMIdBlock = 0xA1;
22 const int kWebMIdBlockAddID = 0xEE; 23 const int kWebMIdBlockAddID = 0xEE;
23 const int kWebMIdBlockAdditions = 0x75A1; 24 const int kWebMIdBlockAdditions = 0x75A1;
24 const int kWebMIdBlockAdditional = 0xA5; 25 const int kWebMIdBlockAdditional = 0xA5;
(...skipping 30 matching lines...) Expand all
55 const int kWebMIdCluster = 0x1F43B675; 56 const int kWebMIdCluster = 0x1F43B675;
56 const int kWebMIdCodecDecodeAll = 0xAA; 57 const int kWebMIdCodecDecodeAll = 0xAA;
57 const int kWebMIdCodecID = 0x86; 58 const int kWebMIdCodecID = 0x86;
58 const int kWebMIdCodecName = 0x258688; 59 const int kWebMIdCodecName = 0x258688;
59 const int kWebMIdCodecPrivate = 0x63A2; 60 const int kWebMIdCodecPrivate = 0x63A2;
60 const int kWebMIdCodecState = 0xA4; 61 const int kWebMIdCodecState = 0xA4;
61 const int kWebMIdColorSpace = 0x2EB524; 62 const int kWebMIdColorSpace = 0x2EB524;
62 const int kWebMIdContentCompAlgo = 0x4254; 63 const int kWebMIdContentCompAlgo = 0x4254;
63 const int kWebMIdContentCompression = 0x5034; 64 const int kWebMIdContentCompression = 0x5034;
64 const int kWebMIdContentCompSettings = 0x4255; 65 const int kWebMIdContentCompSettings = 0x4255;
66 const int kWebMIdContentEncAESSettings = 0x47E7;
65 const int kWebMIdContentEncAlgo = 0x47E1; 67 const int kWebMIdContentEncAlgo = 0x47E1;
66 const int kWebMIdContentEncKeyID = 0x47E2; 68 const int kWebMIdContentEncKeyID = 0x47E2;
67 const int kWebMIdContentEncoding = 0x6240; 69 const int kWebMIdContentEncoding = 0x6240;
68 const int kWebMIdContentEncodingOrder = 0x5031; 70 const int kWebMIdContentEncodingOrder = 0x5031;
69 const int kWebMIdContentEncodings = 0x6D80; 71 const int kWebMIdContentEncodings = 0x6D80;
70 const int kWebMIdContentEncodingScope = 0x5032; 72 const int kWebMIdContentEncodingScope = 0x5032;
71 const int kWebMIdContentEncodingType = 0x5033; 73 const int kWebMIdContentEncodingType = 0x5033;
72 const int kWebMIdContentEncryption = 0x5035; 74 const int kWebMIdContentEncryption = 0x5035;
73 const int kWebMIdContentSigAlgo = 0x47E5; 75 const int kWebMIdContentSigAlgo = 0x47E5;
74 const int kWebMIdContentSigHashAlgo = 0x47E6; 76 const int kWebMIdContentSigHashAlgo = 0x47E6;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 const int kWebMIdTrackUID = 0x73C5; 192 const int kWebMIdTrackUID = 0x73C5;
191 const int kWebMIdVideo = 0xE0; 193 const int kWebMIdVideo = 0xE0;
192 const int kWebMIdVoid = 0xEC; 194 const int kWebMIdVoid = 0xEC;
193 const int kWebMIdWritingApp = 0x5741; 195 const int kWebMIdWritingApp = 0x5741;
194 196
195 const int64 kWebMReservedId = 0x1FFFFFFF; 197 const int64 kWebMReservedId = 0x1FFFFFFF;
196 const int64 kWebMUnknownSize = GG_LONGLONG(0x00FFFFFFFFFFFFFF); 198 const int64 kWebMUnknownSize = GG_LONGLONG(0x00FFFFFFFFFFFFFF);
197 199
198 const uint8 kWebMFlagKeyframe = 0x80; 200 const uint8 kWebMFlagKeyframe = 0x80;
199 201
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
200 } // namespace media 207 } // namespace media
201 208
202 #endif // MEDIA_WEBM_WEBM_CONSTANTS_H_ 209 #endif // MEDIA_WEBM_WEBM_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698