| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ | 5 #ifndef CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ |
| 6 #define CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ | 6 #define CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 kH264MultiviewHigh, | 84 kH264MultiviewHigh, |
| 85 kVP8ProfileAny, | 85 kVP8ProfileAny, |
| 86 kVP9Profile0, | 86 kVP9Profile0, |
| 87 kVP9Profile1, | 87 kVP9Profile1, |
| 88 kVP9Profile2, | 88 kVP9Profile2, |
| 89 kVP9Profile3, | 89 kVP9Profile3, |
| 90 kDolbyVisionCompatible_EL_MD, | 90 kDolbyVisionCompatible_EL_MD, |
| 91 kDolbyVisionCompatible_BL_EL_MD, | 91 kDolbyVisionCompatible_BL_EL_MD, |
| 92 kDolbyVisionNonCompatible_BL_MD, | 92 kDolbyVisionNonCompatible_BL_MD, |
| 93 kDolbyVisionNonCompatible_BL_EL_MD, | 93 kDolbyVisionNonCompatible_BL_EL_MD, |
| 94 kHEVCMain, |
| 95 kHEVCMain10, |
| 96 kHEVCMainStillPicture, |
| 94 | 97 |
| 95 kVideoProfileMin = kVideoProfileUnknown, | 98 kVideoProfileMin = kVideoProfileUnknown, |
| 96 kVideoProfileMax = kDolbyVisionNonCompatible_BL_EL_MD, | 99 kVideoProfileMax = kHEVCMainStillPicture, |
| 97 }; | 100 }; |
| 98 | 101 |
| 99 // Specification of whether and how the stream is encrypted (in whole or part). | 102 // Specification of whether and how the stream is encrypted (in whole or part). |
| 100 struct EncryptionScheme { | 103 struct EncryptionScheme { |
| 101 // Algorithm and mode that was used to encrypt the stream. | 104 // Algorithm and mode that was used to encrypt the stream. |
| 102 enum CipherMode { | 105 enum CipherMode { |
| 103 CIPHER_MODE_UNENCRYPTED, | 106 CIPHER_MODE_UNENCRYPTED, |
| 104 CIPHER_MODE_AES_CTR, | 107 CIPHER_MODE_AES_CTR, |
| 105 CIPHER_MODE_AES_CBC | 108 CIPHER_MODE_AES_CBC |
| 106 }; | 109 }; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 inline bool IsValidConfig(const VideoConfig& config) { | 260 inline bool IsValidConfig(const VideoConfig& config) { |
| 258 return config.codec >= kVideoCodecMin && | 261 return config.codec >= kVideoCodecMin && |
| 259 config.codec <= kVideoCodecMax && | 262 config.codec <= kVideoCodecMax && |
| 260 config.codec != kVideoCodecUnknown; | 263 config.codec != kVideoCodecUnknown; |
| 261 } | 264 } |
| 262 | 265 |
| 263 } // namespace media | 266 } // namespace media |
| 264 } // namespace chromecast | 267 } // namespace chromecast |
| 265 | 268 |
| 266 #endif // CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ | 269 #endif // CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ |
| OLD | NEW |