Index: content/public/common/encrypted_media_codecs.h |
diff --git a/content/public/common/encrypted_media_codecs.h b/content/public/common/encrypted_media_codecs.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..52faf7a50dc2fc18d0a3530e7177c1e272610951 |
--- /dev/null |
+++ b/content/public/common/encrypted_media_codecs.h |
@@ -0,0 +1,36 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_PUBLIC_COMMON_ENCRYPTED_MEDIA_CODECS_H_ |
+#define CONTENT_PUBLIC_COMMON_ENCRYPTED_MEDIA_CODECS_H_ |
+ |
+namespace content { |
+ |
+// Defines bitmask values used to specify supported codecs. |
+// Each value represents a codec within a specific container. |
+// The mask values are stored in a SupportedCodecs. |
+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.
|
+ NO_CODECS = 0, |
+ WEBM_VORBIS = 1 << 0, |
+ WEBM_AUDIO_CODECS = WEBM_VORBIS, |
+ WEBM_VP8 = 1 << 1, |
+ WEBM_VIDEO_CODECS = WEBM_VP8, |
+ WEBM_ALL_CODECS = (WEBM_AUDIO_CODECS | WEBM_VIDEO_CODECS), |
+#if defined(USE_PROPRIETARY_CODECS) |
+ MP4_AAC = 1 << 2, |
+ MP4_AUDIO_CODECS = MP4_AAC, |
+ MP4_AVC1 = 1 << 3, |
+ MP4_VIDEO_CODECS = MP4_AVC1, |
+ MP4_ALL_CODECS = (MP4_AUDIO_CODECS | MP4_VIDEO_CODECS), |
+ ALL_CODECS = (WEBM_ALL_CODECS | MP4_ALL_CODECS), |
+#else |
+ ALL_CODECS = WEBM_ALL_CODECS, |
+#endif // defined(USE_PROPRIETARY_CODECS) |
+}; |
+ |
+typedef uint32 SupportedCodecs; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_COMMON_ENCRYPTED_MEDIA_CODECS_H_ |