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

Side by Side Diff: media/base/eme_constants.h

Issue 1022823008: Refactor IsSupportedKeySystemWithMediaMimeType(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor_key_systems
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | media/base/key_system_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_BASE_EME_CONSTANTS_H_ 5 #ifndef MEDIA_BASE_EME_CONSTANTS_H_
6 #define MEDIA_BASE_EME_CONSTANTS_H_ 6 #define MEDIA_BASE_EME_CONSTANTS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 namespace media { 10 namespace media {
(...skipping 23 matching lines...) Expand all
34 EME_CODEC_WEBM_VP8 = 1 << 2, 34 EME_CODEC_WEBM_VP8 = 1 << 2,
35 EME_CODEC_WEBM_VP9 = 1 << 3, 35 EME_CODEC_WEBM_VP9 = 1 << 3,
36 EME_CODEC_WEBM_VIDEO_ALL = (EME_CODEC_WEBM_VP8 | EME_CODEC_WEBM_VP9), 36 EME_CODEC_WEBM_VIDEO_ALL = (EME_CODEC_WEBM_VP8 | EME_CODEC_WEBM_VP9),
37 EME_CODEC_WEBM_ALL = (EME_CODEC_WEBM_AUDIO_ALL | EME_CODEC_WEBM_VIDEO_ALL), 37 EME_CODEC_WEBM_ALL = (EME_CODEC_WEBM_AUDIO_ALL | EME_CODEC_WEBM_VIDEO_ALL),
38 #if defined(USE_PROPRIETARY_CODECS) 38 #if defined(USE_PROPRIETARY_CODECS)
39 EME_CODEC_MP4_AAC = 1 << 4, 39 EME_CODEC_MP4_AAC = 1 << 4,
40 EME_CODEC_MP4_AUDIO_ALL = EME_CODEC_MP4_AAC, 40 EME_CODEC_MP4_AUDIO_ALL = EME_CODEC_MP4_AAC,
41 EME_CODEC_MP4_AVC1 = 1 << 5, 41 EME_CODEC_MP4_AVC1 = 1 << 5,
42 EME_CODEC_MP4_VIDEO_ALL = EME_CODEC_MP4_AVC1, 42 EME_CODEC_MP4_VIDEO_ALL = EME_CODEC_MP4_AVC1,
43 EME_CODEC_MP4_ALL = (EME_CODEC_MP4_AUDIO_ALL | EME_CODEC_MP4_VIDEO_ALL), 43 EME_CODEC_MP4_ALL = (EME_CODEC_MP4_AUDIO_ALL | EME_CODEC_MP4_VIDEO_ALL),
44 EME_CODEC_AUDIO_ALL = (EME_CODEC_WEBM_AUDIO_ALL | EME_CODEC_MP4_AUDIO_ALL),
45 EME_CODEC_VIDEO_ALL = (EME_CODEC_WEBM_VIDEO_ALL | EME_CODEC_WEBM_VIDEO_ALL),
44 EME_CODEC_ALL = (EME_CODEC_WEBM_ALL | EME_CODEC_MP4_ALL), 46 EME_CODEC_ALL = (EME_CODEC_WEBM_ALL | EME_CODEC_MP4_ALL),
45 #else 47 #else
48 EME_CODEC_AUDIO_ALL = EME_CODEC_WEBM_AUDIO_ALL,
49 EME_CODEC_VIDEO_ALL = EME_CODEC_WEBM_VIDEO_ALL,
46 EME_CODEC_ALL = EME_CODEC_WEBM_ALL, 50 EME_CODEC_ALL = EME_CODEC_WEBM_ALL,
47 #endif // defined(USE_PROPRIETARY_CODECS) 51 #endif // defined(USE_PROPRIETARY_CODECS)
48 }; 52 };
49 53
50 typedef uint32_t SupportedInitDataTypes; 54 typedef uint32_t SupportedInitDataTypes;
51 typedef uint32_t SupportedCodecs; 55 typedef uint32_t SupportedCodecs;
52 56
53 enum EmeSessionTypeSupport { 57 enum EmeSessionTypeSupport {
54 // Invalid default value. 58 // Invalid default value.
55 EME_SESSION_TYPE_INVALID, 59 EME_SESSION_TYPE_INVALID,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // The configuration option is supported, but the user experience may be 124 // The configuration option is supported, but the user experience may be
121 // improved if a distinctive identifier is available. 125 // improved if a distinctive identifier is available.
122 IDENTIFIER_RECOMMENDED, 126 IDENTIFIER_RECOMMENDED,
123 // The configuration option is supported without conditions. 127 // The configuration option is supported without conditions.
124 SUPPORTED, 128 SUPPORTED,
125 }; 129 };
126 130
127 } // namespace media 131 } // namespace media
128 132
129 #endif // MEDIA_BASE_EME_CONSTANTS_H_ 133 #endif // MEDIA_BASE_EME_CONSTANTS_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/key_system_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698