| 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 namespace media { | 10 namespace media { |
| 11 | 11 |
| 12 // Defines bitmask values that specify registered initialization data types used | 12 // Defines bitmask values that specify registered initialization data types used |
| 13 // in Encrypted Media Extensions (EME). | 13 // in Encrypted Media Extensions (EME). |
| 14 // The mask values are stored in a SupportedInitDataTypes. | 14 // The mask values are stored in a SupportedInitDataTypes. |
| 15 enum EmeInitDataType { | 15 enum EmeInitDataType { |
| 16 EME_INIT_DATA_TYPE_NONE = 0, | 16 EME_INIT_DATA_TYPE_NONE = 0, |
| 17 EME_INIT_DATA_TYPE_WEBM = 1 << 0, | 17 EME_INIT_DATA_TYPE_WEBM = 1 << 0, |
| 18 #if defined(USE_PROPRIETARY_CODECS) | 18 #if defined(USE_PROPRIETARY_CODECS) |
| 19 EME_INIT_DATA_TYPE_CENC = 1 << 1, | 19 EME_INIT_DATA_TYPE_CENC = 1 << 1, |
| 20 #endif // defined(USE_PROPRIETARY_CODECS) | 20 #endif // defined(USE_PROPRIETARY_CODECS) |
| 21 EME_INIT_DATA_TYPE_KEYIDS = 1 << 2, |
| 21 }; | 22 }; |
| 22 | 23 |
| 23 // Defines bitmask values that specify codecs used in Encrypted Media Extension | 24 // Defines bitmask values that specify codecs used in Encrypted Media Extension |
| 24 // (EME). Each value represents a codec within a specific container. | 25 // (EME). Each value represents a codec within a specific container. |
| 25 // The mask values are stored in a SupportedCodecs. | 26 // The mask values are stored in a SupportedCodecs. |
| 26 enum EmeCodec { | 27 enum EmeCodec { |
| 27 // *_ALL values should only be used for masking, do not use them to specify | 28 // *_ALL values should only be used for masking, do not use them to specify |
| 28 // codec support because they may be extended to include more codecs. | 29 // codec support because they may be extended to include more codecs. |
| 29 EME_CODEC_NONE = 0, | 30 EME_CODEC_NONE = 0, |
| 30 EME_CODEC_WEBM_OPUS = 1 << 0, | 31 EME_CODEC_WEBM_OPUS = 1 << 0, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 77 |
| 77 enum EmeFeatureRequirement { | 78 enum EmeFeatureRequirement { |
| 78 EME_FEATURE_NOT_ALLOWED, | 79 EME_FEATURE_NOT_ALLOWED, |
| 79 EME_FEATURE_OPTIONAL, | 80 EME_FEATURE_OPTIONAL, |
| 80 EME_FEATURE_REQUIRED, | 81 EME_FEATURE_REQUIRED, |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 } // namespace media | 84 } // namespace media |
| 84 | 85 |
| 85 #endif // MEDIA_BASE_EME_CONSTANTS_H_ | 86 #endif // MEDIA_BASE_EME_CONSTANTS_H_ |
| OLD | NEW |