From 752e76ced7211228aa2ee6304e4bd08255dec6ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Tue, 24 Jan 2023 10:26:25 +0100 Subject: zimg: add ZIMG_TRANSFER_ST428 mapping --- video/zimg.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'video') 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: -- cgit v1.2.3