summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-11-25 11:42:12 +0100
committerBradley Sepos <[email protected]>2016-12-21 01:16:47 -0500
commit27e74e1f88f4f52c43d61d6f19a63f43148850ce (patch)
tree795961f72ded7032b766489f51aa71d20f0b46e8 /macosx
parenta920bf446a6fe5eba43656ed3807e25ee4691a4e (diff)
MacGui: use the right color profile for Bt 2020 primaries.
Closes #401.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBCore.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/macosx/HBCore.m b/macosx/HBCore.m
index 645934565..a2e07eb84 100644
--- a/macosx/HBCore.m
+++ b/macosx/HBCore.m
@@ -351,6 +351,14 @@ static void hb_error_handler(const char *errmsg)
0.1916769, 0.0865638, 0.9583847};
return CGColorSpaceCreateCalibratedRGB(whitePoint, blackPoint, gamma, matrix);
}
+ case HB_COLR_PRI_BT2020:
+ {
+ // Rec. 2020
+ const CGFloat matrix[] = {0.6369580, 0.2627002, 0.0000000,
+ 0.1446169, 0.6779981, 0.0280727,
+ 0.1688810, 0.0593017, 1.0609851};
+ return CGColorSpaceCreateCalibratedRGB(whitePoint, blackPoint, gamma, matrix);
+ }
case HB_COLR_PRI_BT709:
default:
{