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

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

Issue 1624703002: Implement support for vp9 in ISO-BMFF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
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 26 matching lines...) Expand all
37 EME_CODEC_WEBM_VORBIS = 1 << 1, 37 EME_CODEC_WEBM_VORBIS = 1 << 1,
38 EME_CODEC_WEBM_AUDIO_ALL = EME_CODEC_WEBM_OPUS | EME_CODEC_WEBM_VORBIS, 38 EME_CODEC_WEBM_AUDIO_ALL = EME_CODEC_WEBM_OPUS | EME_CODEC_WEBM_VORBIS,
39 EME_CODEC_WEBM_VP8 = 1 << 2, 39 EME_CODEC_WEBM_VP8 = 1 << 2,
40 EME_CODEC_WEBM_VP9 = 1 << 3, 40 EME_CODEC_WEBM_VP9 = 1 << 3,
41 EME_CODEC_WEBM_VIDEO_ALL = (EME_CODEC_WEBM_VP8 | EME_CODEC_WEBM_VP9), 41 EME_CODEC_WEBM_VIDEO_ALL = (EME_CODEC_WEBM_VP8 | EME_CODEC_WEBM_VP9),
42 EME_CODEC_WEBM_ALL = (EME_CODEC_WEBM_AUDIO_ALL | EME_CODEC_WEBM_VIDEO_ALL), 42 EME_CODEC_WEBM_ALL = (EME_CODEC_WEBM_AUDIO_ALL | EME_CODEC_WEBM_VIDEO_ALL),
43 #if defined(USE_PROPRIETARY_CODECS) 43 #if defined(USE_PROPRIETARY_CODECS)
44 EME_CODEC_MP4_AAC = 1 << 4, 44 EME_CODEC_MP4_AAC = 1 << 4,
45 EME_CODEC_MP4_AUDIO_ALL = EME_CODEC_MP4_AAC, 45 EME_CODEC_MP4_AUDIO_ALL = EME_CODEC_MP4_AAC,
46 EME_CODEC_MP4_AVC1 = 1 << 5, 46 EME_CODEC_MP4_AVC1 = 1 << 5,
47 EME_CODEC_MP4_VIDEO_ALL = EME_CODEC_MP4_AVC1, 47 EME_CODEC_MP4_VP8 = 1 << 6,
ddorwin 2016/01/27 01:39:14 Is this actually going to be used? If not or we do
kqyang 2016/01/29 00:34:16 I don't know, but why not, it does not require a l
48 EME_CODEC_MP4_VP9 = 1 << 7,
ddorwin 2016/01/27 01:39:14 Do we need separate codec enums? I know these are
ddorwin 2016/01/27 03:17:09 Of course, we also rely on this difference here: h
ddorwin 2016/01/27 06:42:56 Specifically, we can address the Android case by a
xhwang 2016/02/01 17:59:37 Currently the mojo work is focusing mainly on the
49 EME_CODEC_MP4_VIDEO_ALL =
ddorwin 2016/01/27 01:39:14 Not all platforms that support MP4 necessarily sup
kqyang 2016/01/29 00:34:16 Aren't these _ALL values just a list of all possib
ddorwin 2016/02/24 22:44:32 Yes, those specific examples are fine, but that co
50 (EME_CODEC_MP4_AVC1 | EME_CODEC_MP4_VP8 | EME_CODEC_MP4_VP9),
48 EME_CODEC_MP4_ALL = (EME_CODEC_MP4_AUDIO_ALL | EME_CODEC_MP4_VIDEO_ALL), 51 EME_CODEC_MP4_ALL = (EME_CODEC_MP4_AUDIO_ALL | EME_CODEC_MP4_VIDEO_ALL),
49 EME_CODEC_AUDIO_ALL = (EME_CODEC_WEBM_AUDIO_ALL | EME_CODEC_MP4_AUDIO_ALL), 52 EME_CODEC_AUDIO_ALL = (EME_CODEC_WEBM_AUDIO_ALL | EME_CODEC_MP4_AUDIO_ALL),
50 EME_CODEC_VIDEO_ALL = (EME_CODEC_WEBM_VIDEO_ALL | EME_CODEC_MP4_VIDEO_ALL), 53 EME_CODEC_VIDEO_ALL = (EME_CODEC_WEBM_VIDEO_ALL | EME_CODEC_MP4_VIDEO_ALL),
51 EME_CODEC_ALL = (EME_CODEC_WEBM_ALL | EME_CODEC_MP4_ALL), 54 EME_CODEC_ALL = (EME_CODEC_WEBM_ALL | EME_CODEC_MP4_ALL),
52 #else 55 #else
53 EME_CODEC_AUDIO_ALL = EME_CODEC_WEBM_AUDIO_ALL, 56 EME_CODEC_AUDIO_ALL = EME_CODEC_WEBM_AUDIO_ALL,
54 EME_CODEC_VIDEO_ALL = EME_CODEC_WEBM_VIDEO_ALL, 57 EME_CODEC_VIDEO_ALL = EME_CODEC_WEBM_VIDEO_ALL,
55 EME_CODEC_ALL = EME_CODEC_WEBM_ALL, 58 EME_CODEC_ALL = EME_CODEC_WEBM_ALL,
56 #endif // defined(USE_PROPRIETARY_CODECS) 59 #endif // defined(USE_PROPRIETARY_CODECS)
57 }; 60 };
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // This rule only has meaning on platforms that distinguish hardware-secure 140 // This rule only has meaning on platforms that distinguish hardware-secure
138 // codecs (ie. Android). 141 // codecs (ie. Android).
139 HW_SECURE_CODECS_REQUIRED, 142 HW_SECURE_CODECS_REQUIRED,
140 // The configuration option is supported without conditions. 143 // The configuration option is supported without conditions.
141 SUPPORTED, 144 SUPPORTED,
142 }; 145 };
143 146
144 } // namespace media 147 } // namespace media
145 148
146 #endif // MEDIA_BASE_EME_CONSTANTS_H_ 149 #endif // MEDIA_BASE_EME_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698