From a1a4fb5084027ed1723fb0ea494dd46e95b77977 Mon Sep 17 00:00:00 2001 From: sekrit-twc Date: Sun, 9 May 2021 08:18:22 -0700 Subject: [PATCH] colorspace: use correct EOTF for SMPTE-240M See #81 --- src/zimg/colorspace/gamma.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zimg/colorspace/gamma.cpp b/src/zimg/colorspace/gamma.cpp index b6ed8012..4766621c 100644 --- a/src/zimg/colorspace/gamma.cpp +++ b/src/zimg/colorspace/gamma.cpp @@ -316,8 +316,8 @@ TransferFunction select_transfer_function(TransferCharacteristics transfer, doub func.to_gamma = rec_470bg_inverse_oetf; break; case TransferCharacteristics::SMPTE_240M: - func.to_linear = scene_referred ? smpte_240m_inverse_oetf : rec_1886_eotf; - func.to_gamma = scene_referred ? smpte_240m_oetf : rec_1886_inverse_eotf; + func.to_linear = smpte_240m_inverse_oetf; + func.to_gamma = smpte_240m_oetf; break; case TransferCharacteristics::XVYCC: func.to_linear = scene_referred ? xvycc_inverse_oetf : xvycc_eotf;