Skip to content

Commit

Permalink
Add missing st428 constant
Browse files Browse the repository at this point in the history
  • Loading branch information
myrsloik authored and WolframRhodium committed Apr 4, 2024
1 parent f42d46c commit 9fcd39b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/VSConstants4.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions src/core/vsresize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ const std::unordered_map<std::string, zimg_transfer_characteristics_e> 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 },
};
Expand Down
3 changes: 2 additions & 1 deletion src/cython/vsconstants.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9fcd39b

Please sign in to comment.