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

Unified Diff: ui/gfx/color_space.h

Issue 2333663003: Add color metadata info to VideoDecoderConfig. (Closed)
Patch Set: Move webm-specific structure to webm parser 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: ui/gfx/color_space.h
diff --git a/ui/gfx/color_space.h b/ui/gfx/color_space.h
index b7b93786a55309b9e54596ab68498093c01a4d19..4f417ded7f5ea7798bceac09e03b370bdc6718cb 100644
--- a/ui/gfx/color_space.h
+++ b/ui/gfx/color_space.h
@@ -70,6 +70,7 @@ class GFX_EXPORT ColorSpace {
BT2020_12 = 15,
SMPTEST2084 = 16,
SMPTEST428_1 = 17,
+ ARIB_STD_B67 = 18, // AKA hybrid-log gamma, HLG
hubbe 2016/09/15 17:25:52 Also need to add this to ToLinear/FromLinear in co
servolk 2016/09/15 20:29:04 Done. I've found some conversion formulas in Wikip
hubbe 2016/09/15 20:46:12 +1 for moving to a separate CL. The 0-1 normalizat
// Chrome-specific values start at 1000.
GAMMA24 = 1000,
@@ -108,10 +109,14 @@ class GFX_EXPORT ColorSpace {
// We use an enum instead of a bool becuase different bit depths may have
// different definitions of what "limited" means.
enum class RangeID : int8_t {
- FULL = 0,
+ UNSPECIFIED = 0,
LIMITED = 1,
+ FULL = 2,
- LAST = LIMITED
+ // Defined by TransferID/MatrixID
+ DERIVED = 3,
+
+ LAST = DERIVED
};
ColorSpace();

Powered by Google App Engine
This is Rietveld 408576698