| Index: media/base/video_decoder_config.h
|
| diff --git a/media/base/video_decoder_config.h b/media/base/video_decoder_config.h
|
| index 50dee06534c3cab8c22ed0b208d69a8f3412e270..82a645f83c47ce0f8618ba01bfab12d0e6efd660 100644
|
| --- a/media/base/video_decoder_config.h
|
| +++ b/media/base/video_decoder_config.h
|
| @@ -11,7 +11,9 @@
|
| #include <vector>
|
|
|
| #include "base/macros.h"
|
| +#include "base/optional.h"
|
| #include "media/base/encryption_scheme.h"
|
| +#include "media/base/hdr_metadata.h"
|
| #include "media/base/media_export.h"
|
| #include "media/base/video_codecs.h"
|
| #include "media/base/video_types.h"
|
| @@ -108,6 +110,10 @@ class MEDIA_EXPORT VideoDecoderConfig {
|
| return encryption_scheme_;
|
| }
|
|
|
| + // Extended color metadata, including HDR metadata.
|
| + void SetColorMetadata(const ColorMetadata& color_metadata);
|
| + base::Optional<ColorMetadata> GetColorMetadata() const;
|
| +
|
| private:
|
| VideoCodec codec_;
|
| VideoCodecProfile profile_;
|
| @@ -123,6 +129,8 @@ class MEDIA_EXPORT VideoDecoderConfig {
|
|
|
| EncryptionScheme encryption_scheme_;
|
|
|
| + base::Optional<ColorMetadata> color_metadata_;
|
| +
|
| // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler
|
| // generated copy constructor and assignment operator. Since the extra data is
|
| // typically small, the performance impact is minimal.
|
|
|