From 9fcd39b2c124fb94860e10e88d762337e3056311 Mon Sep 17 00:00:00 2001 From: Fredrik Mellbin Date: Tue, 12 Dec 2023 23:14:35 +0100 Subject: [PATCH] Add missing st428 constant --- include/VSConstants4.h | 1 + src/core/vsresize.cpp | 1 + src/cython/vsconstants.pxd | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/VSConstants4.h b/include/VSConstants4.h index b27317d93..b8ab824be 100644 --- a/include/VSConstants4.h +++ b/include/VSConstants4.h @@ -72,6 +72,7 @@ typedef enum VSTransferCharacteristics { VSC_TRANSFER_BT2020_10 = 14, /* Equivalent to 1. */ VSC_TRANSFER_BT2020_12 = 15, /* Equivalent to 1. */ VSC_TRANSFER_ST2084 = 16, + VSC_TRANSFER_ST428 = 17, VSC_TRANSFER_ARIB_B67 = 18 } VSTransferCharacteristics; diff --git a/src/core/vsresize.cpp b/src/core/vsresize.cpp index eeb2c3315..2330ca7f4 100644 --- a/src/core/vsresize.cpp +++ b/src/core/vsresize.cpp @@ -108,6 +108,7 @@ const std::unordered_map g_transfe { "log316", ZIMG_TRANSFER_LOG_316 }, { "st2084", ZIMG_TRANSFER_ST2084 }, { "std-b67", ZIMG_TRANSFER_ARIB_B67 }, + { "st428", ZIMG_TRANSFER_ST428 }, { "srgb", ZIMG_TRANSFER_IEC_61966_2_1 }, { "xvycc", ZIMG_TRANSFER_IEC_61966_2_4 }, }; diff --git a/src/cython/vsconstants.pxd b/src/cython/vsconstants.pxd index 211508ced..b0c3d1be6 100644 --- a/src/cython/vsconstants.pxd +++ b/src/cython/vsconstants.pxd @@ -67,7 +67,8 @@ cdef extern from "include/VSConstants4.h" nogil: TRANSFER_BT2020_12 "VSC_TRANSFER_BT2020_12" TRANSFER_ST2084 "VSC_TRANSFER_ST2084" TRANSFER_ARIB_B67 "VSC_TRANSFER_ARIB_B67" - + TRANSFER_ST428 "VSC_TRANSFER_ST428" + cpdef enum ColorPrimaries "VSColorPrimaries": PRIMARIES_BT709 "VSC_PRIMARIES_BT709" PRIMARIES_UNSPECIFIED "VSC_PRIMARIES_UNSPECIFIED"