Skip to content

Commit

Permalink
MacGui: use the right color profile for Bt 2020 primaries.
Browse files Browse the repository at this point in the history
  • Loading branch information
galad87 authored and bradleysepos committed Dec 21, 2016
1 parent a920bf4 commit 27e74e1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions macosx/HBCore.m
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,14 @@ - (CGColorSpaceRef)copyColorSpaceWithColorPrimaries:(int)colorPrimaries
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:
{
Expand Down

0 comments on commit 27e74e1

Please sign in to comment.