enables H265 HDR option and adds PQ transforeFunction to render HDR stream on macOS 10.13+

This commit is contained in:
liyu authored and Cameron Gutman committed 2021-11-18 23:42:44 -06:00
1 parent 43e3679297
commit 0a301dd2f9
2 files changed
+8 -2

No files matched your search

@@ -222,6 +222,12 @@ public:
kCVImageBufferTransferFunction_ITU_R_2020,
kCVAttachmentMode_ShouldPropagate);
break;
case AVCOL_TRC_SMPTE2084:
CVBufferSetAttachment(pixBuf,
kCVImageBufferTransferFunctionKey,
kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ,
kCVAttachmentMode_ShouldPropagate);
break;
default:
break;
}