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

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,
48 EME_CODEC_MP4_VP9 = 1 << 7,
49 EME_CODEC_MP4_VIDEO_ALL =
50 (EME_CODEC_MP4_AVC1 | EME_CODEC_MP4_VP8 | EME_CODEC_MP4_VP9),
51 #else
52 EME_CODEC_MP4_AUDIO_ALL = EME_CODEC_NONE,
53 EME_CODEC_MP4_VP8 = 1 << 6,
sandersd (OOO until July 31) 2016/01/26 21:21:20 Similarly, it doesn't make sense to declare these
kqyang 2016/01/27 00:17:42 Done.
54 EME_CODEC_MP4_VP9 = 1 << 7,
55 EME_CODEC_MP4_VIDEO_ALL = (EME_CODEC_MP4_VP8 | EME_CODEC_MP4_VP9),
56 #endif // defined(USE_PROPRIETARY_CODECS)
48 EME_CODEC_MP4_ALL = (EME_CODEC_MP4_AUDIO_ALL | EME_CODEC_MP4_VIDEO_ALL), 57 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), 58 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), 59 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), 60 EME_CODEC_ALL = (EME_CODEC_WEBM_ALL | EME_CODEC_MP4_ALL),
52 #else
53 EME_CODEC_AUDIO_ALL = EME_CODEC_WEBM_AUDIO_ALL,
54 EME_CODEC_VIDEO_ALL = EME_CODEC_WEBM_VIDEO_ALL,
55 EME_CODEC_ALL = EME_CODEC_WEBM_ALL,
56 #endif // defined(USE_PROPRIETARY_CODECS)
57 }; 61 };
58 62
59 typedef uint32_t SupportedCodecs; 63 typedef uint32_t SupportedCodecs;
60 64
61 enum class EmeSessionTypeSupport { 65 enum class EmeSessionTypeSupport {
62 // Invalid default value. 66 // Invalid default value.
63 INVALID, 67 INVALID,
64 // The session type is not supported. 68 // The session type is not supported.
65 NOT_SUPPORTED, 69 NOT_SUPPORTED,
66 // The session type is supported if a distinctive identifier is available. 70 // The session type is supported if a distinctive identifier is available.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // This rule only has meaning on platforms that distinguish hardware-secure 141 // This rule only has meaning on platforms that distinguish hardware-secure
138 // codecs (ie. Android). 142 // codecs (ie. Android).
139 HW_SECURE_CODECS_REQUIRED, 143 HW_SECURE_CODECS_REQUIRED,
140 // The configuration option is supported without conditions. 144 // The configuration option is supported without conditions.
141 SUPPORTED, 145 SUPPORTED,
142 }; 146 };
143 147
144 } // namespace media 148 } // namespace media
145 149
146 #endif // MEDIA_BASE_EME_CONSTANTS_H_ 150 #endif // MEDIA_BASE_EME_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698