diff mbox series

[FFmpeg-devel,2/2] fate/filter-video: add more rgbtestsrc tests

Message ID 20241030132543.726-2-jamrial@gmail.com
State New
Headers show
Series None | expand

Commit Message

James Almer Oct. 30, 2024, 1:25 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 tests/fate/filter-video.mak                | 12 ++++++++++++
 tests/ref/fate/filter-rgbtestsrc-gbrp      | 10 ++++++++++
 tests/ref/fate/filter-rgbtestsrc-gbrp10    | 10 ++++++++++
 tests/ref/fate/filter-rgbtestsrc-rgba      | 10 ++++++++++
 tests/ref/fate/filter-rgbtestsrc-x2rgb10le | 10 ++++++++++
 5 files changed, 52 insertions(+)
 create mode 100644 tests/ref/fate/filter-rgbtestsrc-gbrp
 create mode 100644 tests/ref/fate/filter-rgbtestsrc-gbrp10
 create mode 100644 tests/ref/fate/filter-rgbtestsrc-rgba
 create mode 100644 tests/ref/fate/filter-rgbtestsrc-x2rgb10le
diff mbox series

Patch

diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index c956a81050..66a81ff761 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -100,6 +100,18 @@  fate-filter-pal100bars: CMD = framecrc -lavfi pal100bars=rate=5:duration=1 -pix_
 FATE_FILTER-$(call FILTERFRAMECRC, RGBTESTSRC) += fate-filter-rgbtestsrc
 fate-filter-rgbtestsrc: CMD = framecrc -lavfi rgbtestsrc=rate=5:duration=1 -pix_fmt rgb24
 
+FATE_FILTER-$(call FILTERFRAMECRC, RGBTESTSRC) += fate-filter-rgbtestsrc-rgba
+fate-filter-rgbtestsrc-rgba: CMD = framecrc -lavfi rgbtestsrc=rate=5:duration=1 -pix_fmt rgba
+
+FATE_FILTER-$(call FILTERFRAMECRC, RGBTESTSRC) += fate-filter-rgbtestsrc-gbrp
+fate-filter-rgbtestsrc-gbrp: CMD = framecrc -lavfi rgbtestsrc=rate=5:duration=1 -pix_fmt gbrp
+
+FATE_FILTER-$(call FILTERFRAMECRC, RGBTESTSRC SCALE) += fate-filter-rgbtestsrc-gbrp10
+fate-filter-rgbtestsrc-gbrp10: CMD = framecrc -lavfi rgbtestsrc=rate=5:duration=1,format=gbrp10 -pix_fmt gbrp10le
+
+FATE_FILTER-$(call FILTERFRAMECRC, RGBTESTSRC) += fate-filter-rgbtestsrc-x2rgb10le
+fate-filter-rgbtestsrc-x2rgb10le: CMD = framecrc -lavfi rgbtestsrc=rate=5:duration=1 -pix_fmt x2rgb10le
+
 FATE_FILTER-$(call FILTERFRAMECRC, SMPTEBARS) += fate-filter-smptebars
 fate-filter-smptebars: CMD = framecrc -lavfi smptebars=rate=5:duration=1 -pix_fmt yuv420p
 
diff --git a/tests/ref/fate/filter-rgbtestsrc-gbrp b/tests/ref/fate/filter-rgbtestsrc-gbrp
new file mode 100644
index 0000000000..0f8c0c7416
--- /dev/null
+++ b/tests/ref/fate/filter-rgbtestsrc-gbrp
@@ -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,   230400, 0x0dbc18bb
+0,          1,          1,        1,   230400, 0x0dbc18bb
+0,          2,          2,        1,   230400, 0x0dbc18bb
+0,          3,          3,        1,   230400, 0x0dbc18bb
+0,          4,          4,        1,   230400, 0x0dbc18bb
diff --git a/tests/ref/fate/filter-rgbtestsrc-gbrp10 b/tests/ref/fate/filter-rgbtestsrc-gbrp10
new file mode 100644
index 0000000000..5e12d8c9a1
--- /dev/null
+++ b/tests/ref/fate/filter-rgbtestsrc-gbrp10
@@ -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,   460800, 0xf82672bb
+0,          1,          1,        1,   460800, 0xf82672bb
+0,          2,          2,        1,   460800, 0xf82672bb
+0,          3,          3,        1,   460800, 0xf82672bb
+0,          4,          4,        1,   460800, 0xf82672bb
diff --git a/tests/ref/fate/filter-rgbtestsrc-rgba b/tests/ref/fate/filter-rgbtestsrc-rgba
new file mode 100644
index 0000000000..de1d9c7086
--- /dev/null
+++ b/tests/ref/fate/filter-rgbtestsrc-rgba
@@ -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, 0xf238fe31
+0,          1,          1,        1,   307200, 0xf238fe31
+0,          2,          2,        1,   307200, 0xf238fe31
+0,          3,          3,        1,   307200, 0xf238fe31
+0,          4,          4,        1,   307200, 0xf238fe31
diff --git a/tests/ref/fate/filter-rgbtestsrc-x2rgb10le b/tests/ref/fate/filter-rgbtestsrc-x2rgb10le
new file mode 100644
index 0000000000..fec42b3bdb
--- /dev/null
+++ b/tests/ref/fate/filter-rgbtestsrc-x2rgb10le
@@ -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, 0x88747fea
+0,          1,          1,        1,   307200, 0x88747fea
+0,          2,          2,        1,   307200, 0x88747fea
+0,          3,          3,        1,   307200, 0x88747fea
+0,          4,          4,        1,   307200, 0x88747fea