From 73563cebf9ae6c3c8f5ca4a84f67b2e96c08f51f Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sun, 7 Nov 2021 22:30:00 +0100 Subject: 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 --- video/out/vo_gpu_next.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- cgit v1.2.3