]> granicus.if.org Git - handbrake/commitdiff
MacGui: add the kCVImageBufferTransferFunction_ITU_R_2100_HLG to copyColorSpace()
authorDamiano Galassi <damiog@gmail.com>
Fri, 15 Dec 2017 13:40:37 +0000 (14:40 +0100)
committerDamiano Galassi <damiog@gmail.com>
Fri, 15 Dec 2017 13:40:37 +0000 (14:40 +0100)
macosx/HBImageUtilities.m

index 1c5f621743127228a3b41fdbd1f939c519add6c9..07530d815e7b2461e992d71ee6bd53505c408a59 100644 (file)
@@ -147,6 +147,10 @@ CGColorSpaceRef copyColorSpace(int primaries, int transfer, int matrix)
             transferKey = CFSTR("SMPTE_ST_2084_PQ"); //kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ;
             break;
 
+        case HB_COLR_TRA_ARIB_STD_B67:
+            transferKey = CFSTR("ITU_R_2100_HLG"); //kCVImageBufferTransferFunction_ITU_R_2100_HLG;
+            break;
+
         case HB_COLR_TRA_BT709:
         default:
             transferKey = kCVImageBufferTransferFunction_ITU_R_709_2;