diff options
author | Niklas Haas <git@haasn.xyz> | 2017-06-10 02:05:28 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-06-18 20:54:44 +0200 |
commit | 326e02e955fbd88b5fbd489a14cf332b1e450957 (patch) | |
tree | 36356313f212dadf85890fba1e5f3a0cdcbae933 /video/csputils.c | |
parent | da7ae75e2626750bb254ac174b21fecba5eb41cd (diff) | |
download | mpv-326e02e955fbd88b5fbd489a14cf332b1e450957.tar.bz2 mpv-326e02e955fbd88b5fbd489a14cf332b1e450957.tar.xz |
vo_opengl: implement sony s-log1 trc
Source: https://pro.sony.com/bbsccms/assets/files/mkt/cinema/solutions/slog_manual.pdf
Not 100% confident in the implementation since the values from the spec
seem to be very subtly off (~1%), but it should be close enough for
practical purposes.
Diffstat (limited to 'video/csputils.c')
-rw-r--r-- | video/csputils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/csputils.c b/video/csputils.c index c97f08ea0c..0412ee28eb 100644 --- a/video/csputils.c +++ b/video/csputils.c @@ -82,6 +82,7 @@ const struct m_opt_choice_alternatives mp_csp_trc_names[] = { {"pq", MP_CSP_TRC_PQ}, {"hlg", MP_CSP_TRC_HLG}, {"v-log", MP_CSP_TRC_V_LOG}, + {"s-log1", MP_CSP_TRC_S_LOG1}, {0} }; @@ -476,6 +477,7 @@ float mp_trc_nom_peak(enum mp_csp_trc trc) case MP_CSP_TRC_PQ: return 10000.0 / MP_REF_WHITE; 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; } return 1.0; |