From 2e45b8fa1ad7577fa733db2927fc1ca64d1f921e Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 10 Jun 2017 02:51:32 +0200 Subject: vo_opengl: implement sony s-log2 trc Apparently this is virtually identical to Panasonic's V-Log, but using the constants from S-Log1 and an extra scaling coefficient to make the S-Log1 curve less limited. Whatever floats their NIH boat, I guess. Source: https://pro.sony.com/bbsccms/assets/files/micro/dmpc/training/S-Log2_Technical_PaperV1_0.pdf --- video/csputils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video/csputils.c') diff --git a/video/csputils.c b/video/csputils.c index 0412ee28eb..a4ed9337d2 100644 --- a/video/csputils.c +++ b/video/csputils.c @@ -83,6 +83,7 @@ const struct m_opt_choice_alternatives mp_csp_trc_names[] = { {"hlg", MP_CSP_TRC_HLG}, {"v-log", MP_CSP_TRC_V_LOG}, {"s-log1", MP_CSP_TRC_S_LOG1}, + {"s-log2", MP_CSP_TRC_S_LOG2}, {0} }; @@ -478,6 +479,7 @@ float mp_trc_nom_peak(enum mp_csp_trc trc) case MP_CSP_TRC_HLG: return 12.0; case MP_CSP_TRC_V_LOG: return 46.0855; case MP_CSP_TRC_S_LOG1: return 6.52; + case MP_CSP_TRC_S_LOG2: return 9.212; } return 1.0; -- cgit v1.2.3