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

Unified Diff: ui/gfx/color_transform.cc

Issue 2355633002: Add simplistic HLG->SDR conversion. (Closed)
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_transform.cc
diff --git a/ui/gfx/color_transform.cc b/ui/gfx/color_transform.cc
index 6db577ab5c64da8deb16771f32977b3b76aea95a..37818466d702e0214dbaf47e850f229e5d7d760f 100644
--- a/ui/gfx/color_transform.cc
+++ b/ui/gfx/color_transform.cc
@@ -574,6 +574,13 @@ class ColorSpaceToColorSpaceTransform : public ColorTransform {
from_.transfer_ = ColorSpace::TransferID::SMPTEST2084_NON_HDR;
break;
+ case ColorSpace::TransferID::ARIB_STD_B67:
+ // Interpreting HLG using a gamma 2.4 works reasonably well for SDR
+ // displays. Once we have HDR output capabilies, we'll need to
+ // change this.
+ from_.transfer_ = ColorSpace::TransferID::GAMMA24;
+ break;
+
default: // Do nothing
break;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698