Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(896)

Unified Diff: media/base/video_decoder_config.h

Issue 2333663003: Add color metadata info to VideoDecoderConfig. (Closed)
Patch Set: buildfix Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698