Chromium Code Reviews| 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(); |