diff options
author | Niklas Haas <git@haasn.dev> | 2021-11-07 22:30:00 +0100 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2021-11-07 22:32:00 +0100 |
commit | 73563cebf9ae6c3c8f5ca4a84f67b2e96c08f51f (patch) | |
tree | b2b35463dd92cb5a0fdd790129bd836acdba5922 /video/out | |
parent | eca1b8dc294df59160a4bfb072d3643c6953c867 (diff) | |
download | mpv-73563cebf9ae6c3c8f5ca4a84f67b2e96c08f51f.tar.bz2 mpv-73563cebf9ae6c3c8f5ca4a84f67b2e96c08f51f.tar.xz |
vo_gpu_next: add automatic translation for ewa_lanczossharp
This one hits a lot of people. Probably because the man page explicitly
recommends it.
Fixes #9408
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/vo_gpu_next.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index 64e2955046..a462cdc68a 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -993,6 +993,13 @@ static const struct pl_filter_config *map_scaler(struct priv *p, } else if ((fpreset = pl_find_filter_function_preset(cfg->kernel.name))) { par->config = (struct pl_filter_config) {0}; par->kernel = *fpreset->function; + } else if (!strcmp(cfg->kernel.name, "ewa_lanczossharp")) { + par->config = pl_filter_ewa_lanczos; + par->kernel = *par->config.kernel; + par->config.blur = 0.9812505644269356; + MP_WARN(p, "'ewa_lanczossharp' is deprecated and will be removed from " + "vo=gpu-next in the future, use --scale=ewa_lancozs " + "--scale-blur=%f to replicate it.\n", par->config.blur); } else { MP_ERR(p, "Failed mapping filter function '%s', no libplacebo analog?\n", cfg->kernel.name); |