summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTobias Rapp <t.rapp@noa-archive.com>2018-05-08 11:43:50 +0200
committerTobias Rapp <t.rapp@noa-archive.com>2018-05-18 15:39:54 +0200
commiteb28b5ec8a21d1ac0d3752f81a187e20eb012016 (patch)
treea3f68ccfe7fb0fc793ac2990e5e2831eb11d3d3d /tests
parente9dd5b4f5eed46c576020b40ebaa87cdac2c633e (diff)
avfilter/vsrc_testsrc: add pal75bars and pal100bars video filter sources
Generates color bar test patterns based on EBU PAL recommendations. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/fate/filter-video.mak6
-rw-r--r--tests/ref/fate/filter-pal100bars10
-rw-r--r--tests/ref/fate/filter-pal75bars10
3 files changed, 26 insertions, 0 deletions
diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index f2ab2636e7..edd51e1515 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -89,6 +89,12 @@ fate-filter-allrgb: CMD = framecrc -lavfi allrgb=rate=5:duration=1 -pix_fmt rgb2
FATE_FILTER-$(call ALLYES, LAVFI_INDEV ALLYUV_FILTER) += fate-filter-allyuv
fate-filter-allyuv: CMD = framecrc -lavfi allyuv=rate=5:duration=1 -pix_fmt yuv444p
+FATE_FILTER-$(call ALLYES, LAVFI_INDEV PAL75BARS_FILTER) += fate-filter-pal75bars
+fate-filter-pal75bars: CMD = framecrc -lavfi pal75bars=rate=5:duration=1 -pix_fmt yuv420p
+
+FATE_FILTER-$(call ALLYES, LAVFI_INDEV PAL100BARS_FILTER) += fate-filter-pal100bars
+fate-filter-pal100bars: CMD = framecrc -lavfi pal100bars=rate=5:duration=1 -pix_fmt yuv420p
+
FATE_FILTER-$(call ALLYES, LAVFI_INDEV RGBTESTSRC_FILTER) += fate-filter-rgbtestsrc
fate-filter-rgbtestsrc: CMD = framecrc -lavfi rgbtestsrc=rate=5:duration=1 -pix_fmt rgb24
diff --git a/tests/ref/fate/filter-pal100bars b/tests/ref/fate/filter-pal100bars
new file mode 100644
index 0000000000..0ee8d22d3b
--- /dev/null
+++ b/tests/ref/fate/filter-pal100bars
@@ -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, 115200, 0x97a31f02
+0, 1, 1, 1, 115200, 0x97a31f02
+0, 2, 2, 1, 115200, 0x97a31f02
+0, 3, 3, 1, 115200, 0x97a31f02
+0, 4, 4, 1, 115200, 0x97a31f02
diff --git a/tests/ref/fate/filter-pal75bars b/tests/ref/fate/filter-pal75bars
new file mode 100644
index 0000000000..a2d2e17108
--- /dev/null
+++ b/tests/ref/fate/filter-pal75bars
@@ -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, 115200, 0xa131179a
+0, 1, 1, 1, 115200, 0xa131179a
+0, 2, 2, 1, 115200, 0xa131179a
+0, 3, 3, 1, 115200, 0xa131179a
+0, 4, 4, 1, 115200, 0xa131179a