summaryrefslogtreecommitdiffstats
path: root/video/out/gpu/video.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2020-06-19 08:03:46 +0200
committerNiklas Haas <git@haasn.xyz>2020-06-19 08:09:19 +0200
commitdc24a437fb9ba2485bc8c5866542bd36254410d4 (patch)
tree35a8090178cc19bc4e302389a46b006c8cf75845 /video/out/gpu/video.c
parentae5ac7e90a96c02f66b3eb5b63ed960bfffa3fdb (diff)
downloadmpv-dc24a437fb9ba2485bc8c5866542bd36254410d4.tar.bz2
mpv-dc24a437fb9ba2485bc8c5866542bd36254410d4.tar.xz
vo_gpu: add better gamut clipping option
See https://code.videolan.org/videolan/libplacebo/-/commit/d63eeb1ecc204 Enabled by default because I think it looks better. YMMV.
Diffstat (limited to 'video/out/gpu/video.c')
-rw-r--r--video/out/gpu/video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c
index f135d0ff94..851289e281 100644
--- a/video/out/gpu/video.c
+++ b/video/out/gpu/video.c
@@ -330,6 +330,7 @@ static const struct gl_video_opts gl_video_opts_def = {
.scene_threshold_high = 10.0,
.desat = 0.75,
.desat_exp = 1.5,
+ .gamut_clipping = 1,
},
.early_flush = -1,
.hwdec_interop = "auto",
@@ -401,6 +402,7 @@ const struct m_sub_options gl_video_conf = {
{"tone-mapping-desaturate-exponent", OPT_FLOAT(tone_map.desat_exp),
M_RANGE(0.0, 20.0)},
{"gamut-warning", OPT_FLAG(tone_map.gamut_warning)},
+ {"gamut-clipping", OPT_FLAG(tone_map.gamut_clipping)},
{"opengl-pbo", OPT_FLAG(pbo)},
SCALER_OPTS("scale", SCALER_SCALE),
SCALER_OPTS("dscale", SCALER_DSCALE),