From 27e74e1f88f4f52c43d61d6f19a63f43148850ce Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Fri, 25 Nov 2016 11:42:12 +0100 Subject: [PATCH] MacGui: use the right color profile for Bt 2020 primaries. Closes #401. --- macosx/HBCore.m | 8 ++++++++ 1 file changed, 8 insertions(+) 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: { -- 2.40.0