Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
|
xhwang
2014/04/21 23:12:19
This is need by:
chrome/common/encrypted_media_me
| |
| 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; | |
| 14 | |
| 15 enum SupportedCodecMask { | |
| 16 NO_CODECS = 0, | |
| 17 WEBM_VORBIS = 1 << 0, | |
| 18 WEBM_AUDIO = WEBM_VORBIS, | |
| 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 | |
| 33 }; | |
| 34 | |
| 35 } // namespace media | |
| 36 | |
| 37 #endif // MEDIA_CDM_ENCRYPTED_MEDIA_CODECS_H_ | |
| OLD | NEW |