diff options
author | Niklas Haas <git@haasn.xyz> | 2017-06-10 02:51:32 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-06-18 20:54:44 +0200 |
commit | 2e45b8fa1ad7577fa733db2927fc1ca64d1f921e (patch) | |
tree | fa74b9e55a8fb45ec1fec1b36b2a66d33947d8ab /video/csputils.c | |
parent | 326e02e955fbd88b5fbd489a14cf332b1e450957 (diff) | |
download | mpv-2e45b8fa1ad7577fa733db2927fc1ca64d1f921e.tar.bz2 mpv-2e45b8fa1ad7577fa733db2927fc1ca64d1f921e.tar.xz |
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
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 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; |