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

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

Issue 1909313002: Support HEVC through EME (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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_systems.cc » ('j') | media/test/data/README » ('J')
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 #include "media/media_features.h"
11
10 namespace media { 12 namespace media {
11 13
12 // Defines values that specify registered Initialization Data Types used 14 // Defines values that specify registered Initialization Data Types used
13 // in Encrypted Media Extensions (EME). 15 // in Encrypted Media Extensions (EME).
14 // http://w3c.github.io/encrypted-media/initdata-format-registry.html#registry 16 // http://w3c.github.io/encrypted-media/initdata-format-registry.html#registry
15 enum class EmeInitDataType { 17 enum class EmeInitDataType {
16 UNKNOWN, 18 UNKNOWN,
17 WEBM, 19 WEBM,
18 CENC, 20 CENC,
19 KEYIDS 21 KEYIDS
(...skipping 11 matching lines...) Expand all
31 EME_CODEC_WEBM_AUDIO_ALL = EME_CODEC_WEBM_OPUS | EME_CODEC_WEBM_VORBIS, 33 EME_CODEC_WEBM_AUDIO_ALL = EME_CODEC_WEBM_OPUS | EME_CODEC_WEBM_VORBIS,
32 EME_CODEC_WEBM_VP8 = 1 << 2, 34 EME_CODEC_WEBM_VP8 = 1 << 2,
33 EME_CODEC_WEBM_VP9 = 1 << 3, 35 EME_CODEC_WEBM_VP9 = 1 << 3,
34 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),
35 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),
36 #if defined(USE_PROPRIETARY_CODECS) 38 #if defined(USE_PROPRIETARY_CODECS)
37 EME_CODEC_MP4_AAC = 1 << 4, 39 EME_CODEC_MP4_AAC = 1 << 4,
38 EME_CODEC_MP4_AUDIO_ALL = EME_CODEC_MP4_AAC, 40 EME_CODEC_MP4_AUDIO_ALL = EME_CODEC_MP4_AAC,
39 EME_CODEC_MP4_AVC1 = 1 << 5, 41 EME_CODEC_MP4_AVC1 = 1 << 5,
40 EME_CODEC_MP4_VP9 = 1 << 6, 42 EME_CODEC_MP4_VP9 = 1 << 6,
43 #if !BUILDFLAG(ENABLE_HEVC_DEMUXING)
ddorwin 2016/05/18 19:51:13 You might need to update cdm_message_filter_androi
servolk 2016/05/19 00:43:43 Done.
41 EME_CODEC_MP4_VIDEO_ALL = (EME_CODEC_MP4_AVC1 | EME_CODEC_MP4_VP9), 44 EME_CODEC_MP4_VIDEO_ALL = (EME_CODEC_MP4_AVC1 | EME_CODEC_MP4_VP9),
45 #else
46 EME_CODEC_MP4_HEVC = 1 << 7,
ddorwin 2016/05/18 19:51:13 This CL alone does not enable this anywhere.
servolk 2016/05/19 00:43:43 Done.
47 EME_CODEC_MP4_VIDEO_ALL =
48 (EME_CODEC_MP4_AVC1 | EME_CODEC_MP4_VP9 | EME_CODEC_MP4_HEVC),
49 #endif
42 EME_CODEC_MP4_ALL = (EME_CODEC_MP4_AUDIO_ALL | EME_CODEC_MP4_VIDEO_ALL), 50 EME_CODEC_MP4_ALL = (EME_CODEC_MP4_AUDIO_ALL | EME_CODEC_MP4_VIDEO_ALL),
43 EME_CODEC_AUDIO_ALL = (EME_CODEC_WEBM_AUDIO_ALL | EME_CODEC_MP4_AUDIO_ALL), 51 EME_CODEC_AUDIO_ALL = (EME_CODEC_WEBM_AUDIO_ALL | EME_CODEC_MP4_AUDIO_ALL),
44 EME_CODEC_VIDEO_ALL = (EME_CODEC_WEBM_VIDEO_ALL | EME_CODEC_MP4_VIDEO_ALL), 52 EME_CODEC_VIDEO_ALL = (EME_CODEC_WEBM_VIDEO_ALL | EME_CODEC_MP4_VIDEO_ALL),
45 EME_CODEC_ALL = (EME_CODEC_WEBM_ALL | EME_CODEC_MP4_ALL), 53 EME_CODEC_ALL = (EME_CODEC_WEBM_ALL | EME_CODEC_MP4_ALL),
46 #else 54 #else
47 EME_CODEC_AUDIO_ALL = EME_CODEC_WEBM_AUDIO_ALL, 55 EME_CODEC_AUDIO_ALL = EME_CODEC_WEBM_AUDIO_ALL,
48 EME_CODEC_VIDEO_ALL = EME_CODEC_WEBM_VIDEO_ALL, 56 EME_CODEC_VIDEO_ALL = EME_CODEC_WEBM_VIDEO_ALL,
49 EME_CODEC_ALL = EME_CODEC_WEBM_ALL, 57 EME_CODEC_ALL = EME_CODEC_WEBM_ALL,
50 #endif // defined(USE_PROPRIETARY_CODECS) 58 #endif // defined(USE_PROPRIETARY_CODECS)
51 }; 59 };
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // This rule only has meaning on platforms that distinguish hardware-secure 139 // This rule only has meaning on platforms that distinguish hardware-secure
132 // codecs (ie. Android). 140 // codecs (ie. Android).
133 HW_SECURE_CODECS_REQUIRED, 141 HW_SECURE_CODECS_REQUIRED,
134 // The configuration option is supported without conditions. 142 // The configuration option is supported without conditions.
135 SUPPORTED, 143 SUPPORTED,
136 }; 144 };
137 145
138 } // namespace media 146 } // namespace media
139 147
140 #endif // MEDIA_BASE_EME_CONSTANTS_H_ 148 #endif // MEDIA_BASE_EME_CONSTANTS_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/key_systems.cc » ('j') | media/test/data/README » ('J')

Powered by Google App Engine
This is Rietveld 408576698