OLD | NEW |
---|---|
(Empty) | |
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_CDM_ENCRYPTED_MEDIA_CODECS_H_ | |
6 #define MEDIA_CDM_ENCRYPTED_MEDIA_CODECS_H_ | |
7 | |
8 namespace media { | |
9 | |
10 // Defines bitmask values used to specify supported codecs. | |
11 // Each value represents a codec within a specific container. | |
12 // The mask values are stored in a SupportedCodecs. | |
13 typedef uint32 SupportedCodecs; | |
ddorwin
2014/04/22 21:24:41
Move this after the enum? The comment describes th
xhwang
2014/04/23 17:29:14
Done.
| |
14 | |
15 enum SupportedCodecMask { | |
16 NO_CODECS = 0, | |
17 WEBM_VORBIS = 1 << 0, | |
18 WEBM_AUDIO = WEBM_VORBIS, | |
ddorwin
2014/04/22 21:24:41
Should we add _CODECS to the end of this? AUDIO an
xhwang
2014/04/23 17:29:14
Done.
| |
19 WEBM_VP8 = 1 << 1, | |
20 WEBM_VIDEO = WEBM_VP8, | |
21 WEBM_CODECS = (WEBM_AUDIO | WEBM_VIDEO), | |
22 #if defined(USE_PROPRIETARY_CODECS) | |
23 MP4_AAC = 1 << 2, | |
24 MP4_AUDIO = MP4_AAC, | |
25 MP4_AVC1 = 1 << 3, | |
26 MP4_VIDEO = MP4_AVC1, | |
27 MP4_CODECS = (MP4_AUDIO | MP4_VIDEO), | |
28 ALL_CODECS = (WEBM_CODECS | MP4_CODECS), | |
29 #else | |
30 ALL_CODECS = WEBM_CODECS, | |
31 #endif // defined(USE_PROPRIETARY_CODECS) | |
32 INVALID_CODECS = ~ALL_CODECS | |
ddorwin
2014/04/22 21:24:41
Do we really need this?
xhwang
2014/04/23 17:29:14
Removed now.
| |
33 }; | |
34 | |
35 } // namespace media | |
36 | |
37 #endif // MEDIA_CDM_ENCRYPTED_MEDIA_CODECS_H_ | |
OLD | NEW |