aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-10-30 10:24:02 -0300
committerJames Almer <jamrial@gmail.com>2024-11-02 15:01:31 -0300
commit430bec86665fa6adcfa2bc4d6cb4a54f79630f9f (patch)
treeb7de5a1a8cb110ef4d9cba2996f7a7b89264d44c
parent165f1241299c4f43c15baa6baddd4e96aefed5a7 (diff)
downloadffmpeg-430bec86665fa6adcfa2bc4d6cb4a54f79630f9f.tar.gz
fate/filter-video: add more rgbtestsrc tests
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--tests/fate/filter-video.mak12
-rw-r--r--tests/ref/fate/filter-rgbtestsrc-gbrp10
-rw-r--r--tests/ref/fate/filter-rgbtestsrc-gbrp1210
-rw-r--r--tests/ref/fate/filter-rgbtestsrc-rgba10
-rw-r--r--tests/ref/fate/filter-rgbtestsrc-x2rgb10le10
5 files changed, 52 insertions, 0 deletions
diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index c956a81050..8bc9de7b05 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-gbrp12
+fate-filter-rgbtestsrc-gbrp12: CMD = framecrc -lavfi rgbtestsrc=rate=5:duration=1,format=gbrp12,scale -pix_fmt gbrp12le
+
+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-gbrp12 b/tests/ref/fate/filter-rgbtestsrc-gbrp12
new file mode 100644
index 0000000000..3a409fb2a4
--- /dev/null
+++ b/tests/ref/fate/filter-rgbtestsrc-gbrp12
@@ -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, 0x3fd1daca
+0, 1, 1, 1, 460800, 0x3fd1daca
+0, 2, 2, 1, 460800, 0x3fd1daca
+0, 3, 3, 1, 460800, 0x3fd1daca
+0, 4, 4, 1, 460800, 0x3fd1daca
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