diff mbox series

[FFmpeg-devel,3/3] fate/filter-video: add tests for packed YUV in yuvtestsrc

Message ID 20241012201016.46469-3-jamrial@gmail.com
State New
Headers show
Series [FFmpeg-devel,1/3] avfilter/vsdc_testsrc: simplify yuvtest_fill_picture | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished

Commit Message

James Almer Oct. 12, 2024, 8:10 p.m. UTC
Signed-off-by: James Almer <jamrial@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

Comments

Michael Niedermayer Oct. 14, 2024, 12:54 p.m. UTC | #1
On Sat, Oct 12, 2024 at 05:10:16PM -0300, James Almer wrote:
> Signed-off-by: James Almer <jamrial@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

tested on linux x86-32/64, arm, mips, mingw32/64

thx

[...]
diff mbox series

Patch

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