From 7d89385a3a989da15b8ce50b64e7639bc8086a6d Mon Sep 17 00:00:00 2001 From: Lukas Geiger Date: Wed, 11 Mar 2026 10:59:33 +0000 Subject: [PATCH 1/3] Add missing `SWS_SPLINE` interpolation --- av/video/reformatter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/av/video/reformatter.py b/av/video/reformatter.py index a29283717..9bca136cf 100644 --- a/av/video/reformatter.py +++ b/av/video/reformatter.py @@ -18,6 +18,7 @@ class Interpolation(IntEnum): GAUSS: "Gaussian" = SWS_GAUSS SINC: "Sinc" = SWS_SINC LANCZOS: "Bicubic spline" = SWS_LANCZOS + SPLINE: "Cubic Keys spline" = SWS_SPLINE class Colorspace(IntEnum): From 21e07be5b69c968192adff0c5252012b48ea64c4 Mon Sep 17 00:00:00 2001 From: Lukas Geiger Date: Wed, 11 Mar 2026 11:02:22 +0000 Subject: [PATCH 2/3] Fix comment --- av/video/reformatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/av/video/reformatter.py b/av/video/reformatter.py index 9bca136cf..12d9d42d4 100644 --- a/av/video/reformatter.py +++ b/av/video/reformatter.py @@ -17,7 +17,7 @@ class Interpolation(IntEnum): BICUBLIN: "Luma bicubic / chroma bilinear" = SWS_BICUBLIN GAUSS: "Gaussian" = SWS_GAUSS SINC: "Sinc" = SWS_SINC - LANCZOS: "Bicubic spline" = SWS_LANCZOS + LANCZOS: "Lanczos" = SWS_LANCZOS SPLINE: "Cubic Keys spline" = SWS_SPLINE From 5034e97b3edaf8c68fb1bd309902be3519b1d117 Mon Sep 17 00:00:00 2001 From: Lukas Geiger Date: Wed, 11 Mar 2026 15:00:25 +0000 Subject: [PATCH 3/3] Apply suggestion from @lgeiger --- av/video/reformatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/av/video/reformatter.py b/av/video/reformatter.py index 12d9d42d4..440a2f594 100644 --- a/av/video/reformatter.py +++ b/av/video/reformatter.py @@ -17,7 +17,7 @@ class Interpolation(IntEnum): BICUBLIN: "Luma bicubic / chroma bilinear" = SWS_BICUBLIN GAUSS: "Gaussian" = SWS_GAUSS SINC: "Sinc" = SWS_SINC - LANCZOS: "Lanczos" = SWS_LANCZOS + LANCZOS: "3-tap sinc/sinc" = SWS_LANCZOS SPLINE: "Cubic Keys spline" = SWS_SPLINE