From dc24a437fb9ba2485bc8c5866542bd36254410d4 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Fri, 19 Jun 2020 08:03:46 +0200 Subject: 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. --- video/out/gpu/video.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video/out/gpu/video.c') 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), -- cgit v1.2.3