mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
vtenc: add support for the HLG color transfer
Fixes #4047 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7947>
This commit is contained in:
parent
7dfed55929
commit
5b5c4147d3
1 changed files with 8 additions and 0 deletions
|
@ -1378,6 +1378,14 @@ gst_vtenc_set_colorimetry (GstVTEnc * self, VTCompressionSessionRef session)
|
|||
GST_WARNING_OBJECT (self, "macOS version is too old, the SMPTE2084 "
|
||||
"transfer function is not available");
|
||||
break;
|
||||
case GST_VIDEO_TRANSFER_ARIB_STD_B67:
|
||||
if (__builtin_available (macOS 10.13, *))
|
||||
transfer = kCVImageBufferTransferFunction_ITU_R_2100_HLG;
|
||||
else
|
||||
GST_WARNING_OBJECT (self,
|
||||
"macOS version is too old, the ITU-R BT.2100-1 "
|
||||
"transfer function is not available");
|
||||
break;
|
||||
default:
|
||||
GST_WARNING_OBJECT (self, "Unsupported color transfer %u", cm.transfer);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue