This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 50665df43b81dbdc6bc73eb645f8289bebc511c4 Author: Diego de Souza <[email protected]> AuthorDate: Fri Jul 10 18:17:46 2026 +0200 Commit: Niklas Haas <[email protected]> CommitDate: Wed Aug 26 09:52:59 2026 +0000 avfilter/vf_scale_cuda: make the Lanczos radius configurable Pass param to libswscale when generating generic Lanczos filters, allowing radii from 1 to 10. The fixed-function path remains unchanged. Signed-off-by: Diego de Souza <[email protected]> --- doc/filters.texi | 6 +++--- libavfilter/vf_scale_cuda.c | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 8425382225..47f27b8a44 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -27714,9 +27714,9 @@ of @code{auto} (the default) enables this automatically when required for correct anti-aliasing when downscaling. @item param -Algorithm-Specific parameter. - -Affects the curves of the bicubic algorithm. +Algorithm-specific parameter. For @var{bicubic}, this affects the filter +curve. For @var{lanczos}, this sets the filter radius from 1 to 10 (default 3) +when using the generic filter path; it has no effect with @option{use_filters=0}. @item force_original_aspect_ratio @item force_divisible_by diff --git a/libavfilter/vf_scale_cuda.c b/libavfilter/vf_scale_cuda.c index ca7f375760..9e47659536 100644 --- a/libavfilter/vf_scale_cuda.c +++ b/libavfilter/vf_scale_cuda.c @@ -710,7 +710,11 @@ static int cudascale_filter_init(AVFilterContext *ctx, switch (s->interp_algo) { case INTERP_ALGO_NEAREST: return 0; /* no weights needed */ case INTERP_ALGO_BILINEAR: params.scaler = SWS_SCALE_BILINEAR; break; - case INTERP_ALGO_LANCZOS: params.scaler = SWS_SCALE_LANCZOS; break; + case INTERP_ALGO_LANCZOS: + params.scaler = SWS_SCALE_LANCZOS; + if (s->param != SCALE_CUDA_PARAM_DEFAULT) + params.scaler_params[0] = s->param; + break; case INTERP_ALGO_DEFAULT: case INTERP_ALGO_BICUBIC: params.scaler = SWS_SCALE_BICUBIC; -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
