| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 const EncryptionScheme& encryption_scheme() const { | 112 const EncryptionScheme& encryption_scheme() const { |
| 113 return encryption_scheme_; | 113 return encryption_scheme_; |
| 114 } | 114 } |
| 115 | 115 |
| 116 void set_color_space_info(const gfx::ColorSpace& color_space_info); | 116 void set_color_space_info(const gfx::ColorSpace& color_space_info); |
| 117 gfx::ColorSpace color_space_info() const; | 117 gfx::ColorSpace 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 |
| 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); |
| 127 |
| 122 private: | 128 private: |
| 123 VideoCodec codec_; | 129 VideoCodec codec_; |
| 124 VideoCodecProfile profile_; | 130 VideoCodecProfile profile_; |
| 125 | 131 |
| 126 VideoPixelFormat format_; | 132 VideoPixelFormat format_; |
| 127 | 133 |
| 128 // TODO(servolk): Deprecated, use color_space_info_ instead. | 134 // TODO(servolk): Deprecated, use color_space_info_ instead. |
| 129 ColorSpace color_space_; | 135 ColorSpace color_space_; |
| 130 | 136 |
| 131 // Deprecated. TODO(wolenetz): Remove. See https://crbug.com/665539. | 137 // Deprecated. TODO(wolenetz): Remove. See https://crbug.com/665539. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 142 base::Optional<HDRMetadata> hdr_metadata_; | 148 base::Optional<HDRMetadata> hdr_metadata_; |
| 143 | 149 |
| 144 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler | 150 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler |
| 145 // generated copy constructor and assignment operator. Since the extra data is | 151 // generated copy constructor and assignment operator. Since the extra data is |
| 146 // typically small, the performance impact is minimal. | 152 // typically small, the performance impact is minimal. |
| 147 }; | 153 }; |
| 148 | 154 |
| 149 } // namespace media | 155 } // namespace media |
| 150 | 156 |
| 151 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ | 157 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
| OLD | NEW |