Commit ab0eeb03cc for ffmpeg
commit ab0eeb03cc63c3399ebcbca68b972586066e3ca9
Author: Martin Mirchev <mmirchev@comp.nus.edu.sg>
Date: Wed Oct 21 19:06:54 2026 +0800
tests/fate/filter-video: add tests for vignette backward mode
Use angle 0, so the gain is exactly 1 inside dmax, and move the center
to the top left corner so that part of the frame lies beyond dmax and
must saturate. Cover the planar (yuv444p) and packed (rgb24) paths.
Signed-off-by: Martin Mirchev <mmirchev@comp.nus.edu.sg>
diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index 4a065ec032..95254ff3fc 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -480,6 +480,9 @@ fate-filter-chromashift-wrap: CMD = framecrc -lavfi testsrc2=r=5:d=1,chromashif
FATE_FILTER-$(call FILTERFRAMECRC, TESTSRC2 FPS DECIMATE) += fate-filter-decimate
fate-filter-decimate: CMD = framecrc -lavfi testsrc2=r=24:d=10,fps=60,decimate=5,decimate=4,decimate=3 -pix_fmt yuv420p
+FATE_FILTER-$(call FILTERFRAMECRC, TESTSRC2 FORMAT VIGNETTE) += fate-filter-vignette-backward-yuv444p fate-filter-vignette-backward-rgb24
+fate-filter-vignette-backward-%: CMD = framecrc -lavfi testsrc2=s=64x64:r=1:d=1,format=$(@:fate-filter-vignette-backward-%=%),vignette=a=0:x0=0:y0=0:mode=backward -pix_fmt $(@:fate-filter-vignette-backward-%=%)
+
FATE_FILTER-$(call FILTERFRAMECRC, TESTSRC2 FPS MPDECIMATE) += fate-filter-mpdecimate
fate-filter-mpdecimate: CMD = framecrc -lavfi testsrc2=r=2:d=10,fps=3,mpdecimate -pix_fmt yuv420p
diff --git a/tests/ref/fate/filter-vignette-backward-rgb24 b/tests/ref/fate/filter-vignette-backward-rgb24
new file mode 100644
index 0000000000..26c62146a2
--- /dev/null
+++ b/tests/ref/fate/filter-vignette-backward-rgb24
@@ -0,0 +1,6 @@
+#tb 0: 1/1
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 1/1
+0, 0, 0, 1, 12288, 0x282440f2
diff --git a/tests/ref/fate/filter-vignette-backward-yuv444p b/tests/ref/fate/filter-vignette-backward-yuv444p
new file mode 100644
index 0000000000..b559a9e755
--- /dev/null
+++ b/tests/ref/fate/filter-vignette-backward-yuv444p
@@ -0,0 +1,6 @@
+#tb 0: 1/1
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 1/1
+0, 0, 0, 1, 12288, 0xf08ed17c