Skip to content

Commit

Permalink
vo_gpu_next: allow setting antiring value for cscale
Browse files Browse the repository at this point in the history
This has been possible since haasn/libplacebo@11771cd
but nobody bothered to map it to mpv until now?
  • Loading branch information
llyyr authored and kasper93 committed Sep 15, 2024
1 parent f1f0917 commit 22a7a0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion video/out/vo_gpu_next.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 22a7a0a

Please sign in to comment.