| OLD | NEW |
| 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" | 10 #include "media/media_features.h" |
| 11 | 11 |
| 12 namespace media { | 12 namespace media { |
| 13 | 13 |
| 14 // Defines values that specify registered Initialization Data Types used | 14 // Defines values that specify registered Initialization Data Types used |
| 15 // in Encrypted Media Extensions (EME). | 15 // in Encrypted Media Extensions (EME). |
| 16 // http://w3c.github.io/encrypted-media/initdata-format-registry.html#registry | 16 // http://w3c.github.io/encrypted-media/initdata-format-registry.html#registry |
| 17 enum class EmeInitDataType { | 17 enum class EmeInitDataType { UNKNOWN, WEBM, CENC, KEYIDS, MAX = KEYIDS }; |
| 18 UNKNOWN, | |
| 19 WEBM, | |
| 20 CENC, | |
| 21 KEYIDS | |
| 22 }; | |
| 23 | 18 |
| 24 // Defines bitmask values that specify codecs used in Encrypted Media Extension | 19 // Defines bitmask values that specify codecs used in Encrypted Media Extension |
| 25 // (EME). Each value represents a codec within a specific container. | 20 // (EME). Each value represents a codec within a specific container. |
| 26 // The mask values are stored in a SupportedCodecs. | 21 // The mask values are stored in a SupportedCodecs. |
| 27 enum EmeCodec { | 22 enum EmeCodec { |
| 28 // *_ALL values should only be used for masking, do not use them to specify | 23 // *_ALL values should only be used for masking, do not use them to specify |
| 29 // codec support because they may be extended to include more codecs. | 24 // codec support because they may be extended to include more codecs. |
| 30 EME_CODEC_NONE = 0, | 25 EME_CODEC_NONE = 0, |
| 31 EME_CODEC_WEBM_OPUS = 1 << 0, | 26 EME_CODEC_WEBM_OPUS = 1 << 0, |
| 32 EME_CODEC_WEBM_VORBIS = 1 << 1, | 27 EME_CODEC_WEBM_VORBIS = 1 << 1, |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // This rule only has meaning on platforms that distinguish hardware-secure | 121 // This rule only has meaning on platforms that distinguish hardware-secure |
| 127 // codecs (ie. Android). | 122 // codecs (ie. Android). |
| 128 HW_SECURE_CODECS_REQUIRED, | 123 HW_SECURE_CODECS_REQUIRED, |
| 129 // The configuration option is supported without conditions. | 124 // The configuration option is supported without conditions. |
| 130 SUPPORTED, | 125 SUPPORTED, |
| 131 }; | 126 }; |
| 132 | 127 |
| 133 } // namespace media | 128 } // namespace media |
| 134 | 129 |
| 135 #endif // MEDIA_BASE_EME_CONSTANTS_H_ | 130 #endif // MEDIA_BASE_EME_CONSTANTS_H_ |
| OLD | NEW |