History

vo_gpu_next: allow setting antiring value for cscale

This has been possible since https://github.com/haasn/libplacebo/commit/11771cdd82cec0d2f775553611c276092fb283cf but nobody bothered to map it to mpv until now?

llyyr committed 2 years ago

Commit 22a7a0a1 parent f1f09171 file · +2 −1Browse files

Unified · Split

video/out/vo_gpu_next.c+2−1
@@ -1951,6 +1951,8 @@ static const struct pl_filter_config *map_scaler(struct priv *p, · 1950 unmodified lines
19511951 }
19521952
19531953 par->config.clamp = cfg->clamp;
1954+ if (cfg->antiring > 0.0)
1955+ par->config.antiring = cfg->antiring;
19541956 if (cfg->kernel.blur > 0.0)
19551957 par->config.blur = cfg->kernel.blur;
19561958 if (cfg->kernel.taper > 0.0)
@@ -2129,7 +2131,6 @@ static void update_render_options(struct vo *vo) · 172 unmodified lines
21292131 struct priv *p = vo->priv;
21302132 pl_options pars = p->pars;
21312133 const struct gl_video_opts *opts = p->opts_cache->opts;
2132− pars->params.antiringing_strength = opts->scaler[0].antiring;
21332134 pars->params.background_color[0] = opts->background_color.r / 255.0;
21342135 pars->params.background_color[1] = opts->background_color.g / 255.0;
21352136 pars->params.background_color[2] = opts->background_color.b / 255.0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t