[FFmpeg-devel] [PATCH] fate: add tests for vectorscope filter

Paul B Mahol onemda at gmail.com
Mon Aug 24 21:04:48 CEST 2015


Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 tests/fate/filter-video.mak              | 15 +++++++++++++++
 tests/ref/fate/filter-vectorscope_color  |  4 ++++
 tests/ref/fate/filter-vectorscope_color2 |  4 ++++
 tests/ref/fate/filter-vectorscope_color3 |  4 ++++
 tests/ref/fate/filter-vectorscope_gray   |  4 ++++
 tests/ref/fate/filter-vectorscope_xy     |  4 ++++
 6 files changed, 35 insertions(+)
 create mode 100644 tests/ref/fate/filter-vectorscope_color
 create mode 100644 tests/ref/fate/filter-vectorscope_color2
 create mode 100644 tests/ref/fate/filter-vectorscope_color3
 create mode 100644 tests/ref/fate/filter-vectorscope_gray
 create mode 100644 tests/ref/fate/filter-vectorscope_xy

diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index 8aa4198..3be299d 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -123,6 +123,21 @@ fate-filter-waveform_envelope: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf waveform
 FATE_FILTER_VSYNTH-$(CONFIG_WAVEFORM_FILTER) += fate-filter-waveform_uv
 fate-filter-waveform_uv: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf waveform=c=6 -flags +bitexact -sws_flags +accurate_rnd+bitexact
 
+FATE_FILTER_VSYNTH-$(CONFIG_VECTORSCOPE_FILTER) += fate-filter-vectorscope_gray
+fate-filter-vectorscope_gray: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf vectorscope=gray -flags +bitexact -sws_flags +accurate_rnd+bitexact -vframes 3
+
+FATE_FILTER_VSYNTH-$(CONFIG_VECTORSCOPE_FILTER) += fate-filter-vectorscope_color
+fate-filter-vectorscope_color: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf vectorscope=color -flags +bitexact -sws_flags +accurate_rnd+bitexact -vframes 3
+
+FATE_FILTER_VSYNTH-$(CONFIG_VECTORSCOPE_FILTER) += fate-filter-vectorscope_color2
+fate-filter-vectorscope_color2: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf vectorscope=color2 -flags +bitexact -sws_flags +accurate_rnd+bitexact -vframes 3
+
+FATE_FILTER_VSYNTH-$(CONFIG_VECTORSCOPE_FILTER) += fate-filter-vectorscope_color3
+fate-filter-vectorscope_color3: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf vectorscope=color3 -flags +bitexact -sws_flags +accurate_rnd+bitexact -vframes 3
+
+FATE_FILTER_VSYNTH-$(CONFIG_VECTORSCOPE_FILTER) += fate-filter-vectorscope_xy
+fate-filter-vectorscope_xy: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf vectorscope=x=0:y=1 -flags +bitexact -sws_flags +accurate_rnd+bitexact -vframes 3
+
 FATE_FILTER_VSYNTH-$(CONFIG_MERGEPLANES_FILTER) += fate-filter-mergeplanes
 fate-filter-mergeplanes: tests/data/filtergraphs/mergeplanes
 fate-filter-mergeplanes: CMD = framecrc -c:v pgmyuv -i $(SRC) -c:v pgmyuv -i $(SRC) -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/mergeplanes
diff --git a/tests/ref/fate/filter-vectorscope_color b/tests/ref/fate/filter-vectorscope_color
new file mode 100644
index 0000000..40165b6
--- /dev/null
+++ b/tests/ref/fate/filter-vectorscope_color
@@ -0,0 +1,4 @@
+#tb 0: 1/25
+0,          0,          0,        1,   196608, 0x9d705c63
+0,          1,          1,        1,   196608, 0x9fbf6f2c
+0,          2,          2,        1,   196608, 0x257b7290
diff --git a/tests/ref/fate/filter-vectorscope_color2 b/tests/ref/fate/filter-vectorscope_color2
new file mode 100644
index 0000000..be69443
--- /dev/null
+++ b/tests/ref/fate/filter-vectorscope_color2
@@ -0,0 +1,4 @@
+#tb 0: 1/25
+0,          0,          0,        1,   196608, 0x9bfcfae5
+0,          1,          1,        1,   196608, 0x1ac6fcbf
+0,          2,          2,        1,   196608, 0x31cb1088
diff --git a/tests/ref/fate/filter-vectorscope_color3 b/tests/ref/fate/filter-vectorscope_color3
new file mode 100644
index 0000000..f297efd
--- /dev/null
+++ b/tests/ref/fate/filter-vectorscope_color3
@@ -0,0 +1,4 @@
+#tb 0: 1/25
+0,          0,          0,        1,   196608, 0x6e698770
+0,          1,          1,        1,   196608, 0x374d74a7
+0,          2,          2,        1,   196608, 0x3d817143
diff --git a/tests/ref/fate/filter-vectorscope_gray b/tests/ref/fate/filter-vectorscope_gray
new file mode 100644
index 0000000..ed41cc0
--- /dev/null
+++ b/tests/ref/fate/filter-vectorscope_gray
@@ -0,0 +1,4 @@
+#tb 0: 1/25
+0,          0,          0,        1,   196608, 0x8e4171e2
+0,          1,          1,        1,   196608, 0xf3d371e2
+0,          2,          2,        1,   196608, 0xb9cb71e2
diff --git a/tests/ref/fate/filter-vectorscope_xy b/tests/ref/fate/filter-vectorscope_xy
new file mode 100644
index 0000000..6a4b8f8
--- /dev/null
+++ b/tests/ref/fate/filter-vectorscope_xy
@@ -0,0 +1,4 @@
+#tb 0: 1/25
+0,          0,          0,        1,   196608, 0xa0939af1
+0,          1,          1,        1,   196608, 0x43699af1
+0,          2,          2,        1,   196608, 0x69a19af1
-- 
1.7.11.2



More information about the ffmpeg-devel mailing list