summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-01-24 10:26:25 +0100
committerLeo Izen <leo.izen@gmail.com>2023-03-02 09:37:06 -0500
commit752e76ced7211228aa2ee6304e4bd08255dec6ca (patch)
tree60250a2545dc2255eb223c22371657c224cec0c7 /video
parent7ceadbb3c130b791eca1ab9a08fdc8d68d1dd72e (diff)
downloadmpv-752e76ced7211228aa2ee6304e4bd08255dec6ca.tar.bz2
mpv-752e76ced7211228aa2ee6304e4bd08255dec6ca.tar.xz
zimg: add ZIMG_TRANSFER_ST428 mapping
Diffstat (limited to 'video')
-rw-r--r--video/zimg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/zimg.c b/video/zimg.c
index ff379ed4d9..01b44c96f3 100644
--- a/video/zimg.c
+++ b/video/zimg.c
@@ -30,6 +30,7 @@
#include "video/fmt-conversion.h"
#include "video/img_format.h"
#include "zimg.h"
+#include "config.h"
static_assert(MP_IMAGE_BYTE_ALIGN >= ZIMG_ALIGN, "");
@@ -155,6 +156,9 @@ static zimg_transfer_characteristics_e mp_to_z_trc(enum mp_csp_trc trc)
case MP_CSP_TRC_GAMMA28: return ZIMG_TRANSFER_BT470_BG;
case MP_CSP_TRC_PQ: return ZIMG_TRANSFER_ST2084;
case MP_CSP_TRC_HLG: return ZIMG_TRANSFER_ARIB_B67;
+#if HAVE_ZIMG_ST428
+ case MP_CSP_TRC_ST428: return ZIMG_TRANSFER_ST428;
+#endif
case MP_CSP_TRC_GAMMA18: // ?
case MP_CSP_TRC_GAMMA20:
case MP_CSP_TRC_GAMMA24: