[FFmpeg-cvslog] tests/filter-video: add yuvtestsrc tests for yuva444p

James Almer git at videolan.org
Wed Apr 2 23:37:03 EEST 2025


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Mar 31 15:45:34 2025 -0300| [67c489131187849d39b6e8b2c078734ea110de00] | committer: James Almer

tests/filter-video: add yuvtestsrc tests for yuva444p

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=67c489131187849d39b6e8b2c078734ea110de00
---

 tests/fate/filter-video.mak                 |  6 ++++++
 tests/ref/fate/filter-yuvtestsrc-yuva444p   | 10 ++++++++++
 tests/ref/fate/filter-yuvtestsrc-yuva444p12 | 10 ++++++++++
 3 files changed, 26 insertions(+)

diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index 6a333e8b93..b77251c32d 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -121,9 +121,15 @@ fate-filter-smptehdbars: CMD = framecrc -lavfi smptehdbars=rate=5:duration=1 -pi
 FATE_FILTER-$(call FILTERFRAMECRC, YUVTESTSRC) += fate-filter-yuvtestsrc-yuv444p
 fate-filter-yuvtestsrc-yuv444p: CMD = framecrc -lavfi yuvtestsrc=rate=5:duration=1 -pix_fmt yuv444p
 
+FATE_FILTER-$(call FILTERFRAMECRC, YUVTESTSRC) += fate-filter-yuvtestsrc-yuva444p
+fate-filter-yuvtestsrc-yuva444p: CMD = framecrc -lavfi yuvtestsrc=rate=5:duration=1 -pix_fmt yuva444p
+
 FATE_FILTER-$(call FILTERFRAMECRC, YUVTESTSRC SCALE) += fate-filter-yuvtestsrc-yuv444p12
 fate-filter-yuvtestsrc-yuv444p12: CMD = framecrc -lavfi yuvtestsrc=rate=5:duration=1,format=yuv444p12,scale -pix_fmt yuv444p12le
 
+FATE_FILTER-$(call FILTERFRAMECRC, YUVTESTSRC SCALE) += fate-filter-yuvtestsrc-yuva444p12
+fate-filter-yuvtestsrc-yuva444p12: CMD = framecrc -lavfi yuvtestsrc=rate=5:duration=1,format=yuva444p12,scale -pix_fmt yuva444p12le
+
 FATE_FILTER-$(call FILTERFRAMECRC, YUVTESTSRC SCALE) += fate-filter-yuvtestsrc-nv24
 fate-filter-yuvtestsrc-nv24: CMD = framecrc -lavfi yuvtestsrc=rate=5:duration=1 -pix_fmt nv24
 
diff --git a/tests/ref/fate/filter-yuvtestsrc-yuva444p b/tests/ref/fate/filter-yuvtestsrc-yuva444p
new file mode 100644
index 0000000000..98cf13ded2
--- /dev/null
+++ b/tests/ref/fate/filter-yuvtestsrc-yuva444p
@@ -0,0 +1,10 @@
+#tb 0: 1/5
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
+0,          0,          0,        1,   307200, 0xc0e0430a
+0,          1,          1,        1,   307200, 0xc0e0430a
+0,          2,          2,        1,   307200, 0xc0e0430a
+0,          3,          3,        1,   307200, 0xc0e0430a
+0,          4,          4,        1,   307200, 0xc0e0430a
diff --git a/tests/ref/fate/filter-yuvtestsrc-yuva444p12 b/tests/ref/fate/filter-yuvtestsrc-yuva444p12
new file mode 100644
index 0000000000..7e457b0bcb
--- /dev/null
+++ b/tests/ref/fate/filter-yuvtestsrc-yuva444p12
@@ -0,0 +1,10 @@
+#tb 0: 1/5
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
+0,          0,          0,        1,   614400, 0xd33276c0
+0,          1,          1,        1,   614400, 0xd33276c0
+0,          2,          2,        1,   614400, 0xd33276c0
+0,          3,          3,        1,   614400, 0xd33276c0
+0,          4,          4,        1,   614400, 0xd33276c0



More information about the ffmpeg-cvslog mailing list