From e3682f7f2b6f5612637e34f96ef1fad3eff573ff Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Mon, 15 Jul 2024 09:55:41 -0500 Subject: [PATCH] vo_gpu_next: support --gamma-factor There's broad agreement that this option will be undeprecated, so just factor in the multiplier for vo_gpu_next. --- video/out/vo_gpu_next.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index 67f7d5833a..6e264223a2 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -774,12 +774,13 @@ static void update_options(struct vo *vo) // Update equalizer state struct mp_csp_params cparams = MP_CSP_PARAMS_DEFAULTS; + const struct gl_video_opts *opts = p->opts_cache->opts; mp_csp_equalizer_state_get(p->video_eq, &cparams); pars->color_adjustment.brightness = cparams.brightness; pars->color_adjustment.contrast = cparams.contrast; pars->color_adjustment.hue = cparams.hue; pars->color_adjustment.saturation = cparams.saturation; - pars->color_adjustment.gamma = cparams.gamma; + pars->color_adjustment.gamma = cparams.gamma * opts->gamma; p->output_levels = cparams.levels_out; for (char **kv = p->next_opts->raw_opts; kv && kv[0]; kv += 2)