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 CONTENT_PUBLIC_COMMON_ENCRYPTED_MEDIA_CODECS_H_ | |
6 #define CONTENT_PUBLIC_COMMON_ENCRYPTED_MEDIA_CODECS_H_ | |
7 | |
8 namespace content { | |
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 enum SupportedCodecMask { | |
jam
2014/04/24 16:21:06
see the convention for enums in the content api ht
xhwang
2014/04/24 17:08:21
Done.
| |
14 NO_CODECS = 0, | |
15 WEBM_VORBIS = 1 << 0, | |
16 WEBM_AUDIO_CODECS = WEBM_VORBIS, | |
17 WEBM_VP8 = 1 << 1, | |
18 WEBM_VIDEO_CODECS = WEBM_VP8, | |
19 WEBM_ALL_CODECS = (WEBM_AUDIO_CODECS | WEBM_VIDEO_CODECS), | |
20 #if defined(USE_PROPRIETARY_CODECS) | |
21 MP4_AAC = 1 << 2, | |
22 MP4_AUDIO_CODECS = MP4_AAC, | |
23 MP4_AVC1 = 1 << 3, | |
24 MP4_VIDEO_CODECS = MP4_AVC1, | |
25 MP4_ALL_CODECS = (MP4_AUDIO_CODECS | MP4_VIDEO_CODECS), | |
26 ALL_CODECS = (WEBM_ALL_CODECS | MP4_ALL_CODECS), | |
27 #else | |
28 ALL_CODECS = WEBM_ALL_CODECS, | |
29 #endif // defined(USE_PROPRIETARY_CODECS) | |
30 }; | |
31 | |
32 typedef uint32 SupportedCodecs; | |
33 | |
34 } // namespace content | |
35 | |
36 #endif // CONTENT_PUBLIC_COMMON_ENCRYPTED_MEDIA_CODECS_H_ | |
OLD | NEW |