[FFmpeg-devel] [PATCH 3/3] fate/filter-video: add tests for packed YUV in yuvtestsrc
James Almer
jamrial at gmail.com
Sat Oct 12 23:10:16 EEST 2024
Signed-off-by: James Almer <jamrial at gmail.com>
---
tests/fate/filter-video.mak | 6 ++++++
tests/ref/fate/filter-yuvtestsrc-ayuv | 10 ++++++++++
tests/ref/fate/filter-yuvtestsrc-vuyx | 10 ++++++++++
3 files changed, 26 insertions(+)
create mode 100644 tests/ref/fate/filter-yuvtestsrc-ayuv
create mode 100644 tests/ref/fate/filter-yuvtestsrc-vuyx
diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index 5b8a294afd..0b478ef14c 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -112,6 +112,12 @@ fate-filter-yuvtestsrc-yuv444p: CMD = framecrc -lavfi yuvtestsrc=rate=5:duration
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) += fate-filter-yuvtestsrc-ayuv
+fate-filter-yuvtestsrc-ayuv: CMD = framecrc -lavfi yuvtestsrc=rate=5:duration=1 -pix_fmt ayuv
+
+FATE_FILTER-$(call FILTERFRAMECRC, YUVTESTSRC) += fate-filter-yuvtestsrc-vuyx
+fate-filter-yuvtestsrc-vuyx: CMD = framecrc -lavfi yuvtestsrc=rate=5:duration=1 -pix_fmt vuyx
+
FATE_FILTER-$(call FILTERFRAMECRC, TESTSRC FORMAT CONCAT SCALE, LAVFI_INDEV FILE_PROTOCOL) += fate-filter-lavd-scalenorm
fate-filter-lavd-scalenorm: tests/data/filtergraphs/scalenorm
fate-filter-lavd-scalenorm: CMD = framecrc -f lavfi -graph_file $(TARGET_PATH)/tests/data/filtergraphs/scalenorm -i dummy
diff --git a/tests/ref/fate/filter-yuvtestsrc-ayuv b/tests/ref/fate/filter-yuvtestsrc-ayuv
new file mode 100644
index 0000000000..91c15bebb9
--- /dev/null
+++ b/tests/ref/fate/filter-yuvtestsrc-ayuv
@@ -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, 0xd4270fd4
+0, 1, 1, 1, 307200, 0xd4270fd4
+0, 2, 2, 1, 307200, 0xd4270fd4
+0, 3, 3, 1, 307200, 0xd4270fd4
+0, 4, 4, 1, 307200, 0xd4270fd4
diff --git a/tests/ref/fate/filter-yuvtestsrc-vuyx b/tests/ref/fate/filter-yuvtestsrc-vuyx
new file mode 100644
index 0000000000..f91ef558d7
--- /dev/null
+++ b/tests/ref/fate/filter-yuvtestsrc-vuyx
@@ -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, 0x4df60fd4
+0, 1, 1, 1, 307200, 0x4df60fd4
+0, 2, 2, 1, 307200, 0x4df60fd4
+0, 3, 3, 1, 307200, 0x4df60fd4
+0, 4, 4, 1, 307200, 0x4df60fd4
--
2.46.2
More information about the ffmpeg-devel
mailing list