| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIDEO_DECODER_CONFIG_H_ | 5 #ifndef MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
| 6 #define MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ | 6 #define MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 return encryption_scheme_; | 113 return encryption_scheme_; |
| 114 } | 114 } |
| 115 | 115 |
| 116 void set_color_space_info(const VideoColorSpace& color_space_info); | 116 void set_color_space_info(const VideoColorSpace& color_space_info); |
| 117 VideoColorSpace color_space_info() const; | 117 VideoColorSpace color_space_info() const; |
| 118 | 118 |
| 119 void set_hdr_metadata(const HDRMetadata& hdr_metadata); | 119 void set_hdr_metadata(const HDRMetadata& hdr_metadata); |
| 120 base::Optional<HDRMetadata> hdr_metadata() const; | 120 base::Optional<HDRMetadata> hdr_metadata() const; |
| 121 | 121 |
| 122 // Sets the config to be encrypted or not encrypted manually. This can be | 122 // Sets the config to be encrypted or not encrypted manually. This can be |
| 123 // useful for decryptors that decrypts an encrypted stream to a clear stream, | 123 // useful for decryptors that decrypts an encrypted stream to a clear stream. |
| 124 // or for decoder selectors that wants to select decrypting decoders instead | |
| 125 // of clear decoders. | |
| 126 void SetIsEncrypted(bool is_encrypted); | 124 void SetIsEncrypted(bool is_encrypted); |
| 127 | 125 |
| 128 private: | 126 private: |
| 129 VideoCodec codec_; | 127 VideoCodec codec_; |
| 130 VideoCodecProfile profile_; | 128 VideoCodecProfile profile_; |
| 131 | 129 |
| 132 VideoPixelFormat format_; | 130 VideoPixelFormat format_; |
| 133 | 131 |
| 134 // TODO(servolk): Deprecated, use color_space_info_ instead. | 132 // TODO(servolk): Deprecated, use color_space_info_ instead. |
| 135 ColorSpace color_space_; | 133 ColorSpace color_space_; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 148 base::Optional<HDRMetadata> hdr_metadata_; | 146 base::Optional<HDRMetadata> hdr_metadata_; |
| 149 | 147 |
| 150 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler | 148 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler |
| 151 // generated copy constructor and assignment operator. Since the extra data is | 149 // generated copy constructor and assignment operator. Since the extra data is |
| 152 // typically small, the performance impact is minimal. | 150 // typically small, the performance impact is minimal. |
| 153 }; | 151 }; |
| 154 | 152 |
| 155 } // namespace media | 153 } // namespace media |
| 156 | 154 |
| 157 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ | 155 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
| OLD | NEW |