]> granicus.if.org Git - handbrake/commitdiff
MacGui: use the right color profile for Bt 2020 primaries.
authorDamiano Galassi <damiog@gmail.com>
Fri, 25 Nov 2016 10:42:12 +0000 (11:42 +0100)
committerBradley Sepos <bradley@bradleysepos.com>
Wed, 21 Dec 2016 06:16:47 +0000 (01:16 -0500)
Closes #401.

macosx/HBCore.m

index 64593456586b326d0952271e9a20d9aef611a425..a2e07eb84f2ad56de310e939df458c798f833fb6 100644 (file)
@@ -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:
         {