From b16949a1c14e42c0b56873b5488a339812225bf9 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Fri, 15 Dec 2017 14:40:37 +0100 Subject: [PATCH] MacGui: add the kCVImageBufferTransferFunction_ITU_R_2100_HLG to copyColorSpace() --- macosx/HBImageUtilities.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/macosx/HBImageUtilities.m b/macosx/HBImageUtilities.m index 1c5f62174..07530d815 100644 --- a/macosx/HBImageUtilities.m +++ b/macosx/HBImageUtilities.m @@ -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; -- 2.40.0