vo_gpu_next: allow setting antiring value for cscale

This has been possible since 11771cdd82
but nobody bothered to map it to mpv until now?
This commit is contained in:
llyyr 2024-09-15 21:24:00 +05:30 committed by Kacper Michajłow
parent f1f091759a
commit 22a7a0af8a
1 changed files with 2 additions and 1 deletions

View File

@ -1951,6 +1951,8 @@ static const struct pl_filter_config *map_scaler(struct priv *p,
}
par->config.clamp = cfg->clamp;
if (cfg->antiring > 0.0)
par->config.antiring = cfg->antiring;
if (cfg->kernel.blur > 0.0)
par->config.blur = cfg->kernel.blur;
if (cfg->kernel.taper > 0.0)
@ -2129,7 +2131,6 @@ static void update_render_options(struct vo *vo)
struct priv *p = vo->priv;
pl_options pars = p->pars;
const struct gl_video_opts *opts = p->opts_cache->opts;
pars->params.antiringing_strength = opts->scaler[0].antiring;
pars->params.background_color[0] = opts->background_color.r / 255.0;
pars->params.background_color[1] = opts->background_color.g / 255.0;
pars->params.background_color[2] = opts->background_color.b / 255.0;