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

Unified Diff: ui/gfx/color_space.cc

Issue 2747083006: Fix HDR LUTs (Closed)
Patch Set: Created 3 years, 9 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 | « ui/gfx/color_space.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_space.cc
diff --git a/ui/gfx/color_space.cc b/ui/gfx/color_space.cc
index d32ddc30060481fdbf3484f5d2e56b2f6f205460..b90b8c9adb32f561a4d59ab041c28a1a041e901d 100644
--- a/ui/gfx/color_space.cc
+++ b/ui/gfx/color_space.cc
@@ -283,6 +283,13 @@ bool ColorSpace::IsHDR() const {
transfer_ == TransferID::IEC61966_2_1_HDR;
}
+bool ColorSpace::FullRangeEncodedValues() const {
+ return transfer_ == TransferID::LINEAR_HDR ||
+ transfer_ == TransferID::IEC61966_2_1_HDR ||
+ transfer_ == TransferID::BT1361_ECG ||
+ transfer_ == TransferID::IEC61966_2_4;
+}
+
bool ColorSpace::operator!=(const ColorSpace& other) const {
return !(*this == other);
}
« no previous file with comments | « ui/gfx/color_space.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698