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

Unified Diff: media/base/hdr_metadata.h

Issue 2333663003: Add color metadata info to VideoDecoderConfig. (Closed)
Patch Set: Commented the RangeID comment as suggested 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
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/hdr_metadata.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/hdr_metadata.h
diff --git a/media/base/hdr_metadata.h b/media/base/hdr_metadata.h
new file mode 100644
index 0000000000000000000000000000000000000000..9113ebc5ff692f6c9c9cb5a88f85af9aea0225d0
--- /dev/null
+++ b/media/base/hdr_metadata.h
@@ -0,0 +1,42 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_BASE_HDR_METADATA_H_
+#define MEDIA_BASE_HDR_METADATA_H_
+
+#include "media/base/media_export.h"
+#include "ui/gfx/color_space.h"
+
+namespace media {
+
+// SMPTE ST 2086 mastering metadata.
+struct MEDIA_EXPORT MasteringMetadata {
+ float primary_r_chromaticity_x = 0;
+ float primary_r_chromaticity_y = 0;
+ float primary_g_chromaticity_x = 0;
+ float primary_g_chromaticity_y = 0;
+ float primary_b_chromaticity_x = 0;
+ float primary_b_chromaticity_y = 0;
+ float white_point_chromaticity_x = 0;
+ float white_point_chromaticity_y = 0;
+ float luminance_max = 0;
+ float luminance_min = 0;
+
+ MasteringMetadata();
+ MasteringMetadata(const MasteringMetadata& rhs);
+};
+
+// HDR metadata common for HDR10 and WebM/VP9-based HDR formats.
+struct MEDIA_EXPORT HDRMetadata {
+ MasteringMetadata mastering_metadata;
+ unsigned max_cll = 0;
+ unsigned max_fall = 0;
+
+ HDRMetadata();
+ HDRMetadata(const HDRMetadata& rhs);
+};
+
+} // namespace media
+
+#endif // MEDIA_BASE_HDR_METADATA_H_
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/hdr_metadata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698