[FFmpeg-devel] [PATCH] fate: add decimate test.

Nicolas George george at nsup.org
Sun Oct 25 20:36:10 CET 2015


The ppsrc test is currently disabled, but is included
to ease adding it when the bug is fixed.

Signed-off-by: Nicolas George <george at nsup.org>
---
 tests/fate/filter-video.mak           |  8 ++++++++
 tests/filtergraphs/decimate-ppsrc     |  3 +++
 tests/ref/fate/filter-decimate-ppsrc  |  0
 tests/ref/fate/filter-decimate-simple | 18 ++++++++++++++++++
 4 files changed, 29 insertions(+)
 create mode 100644 tests/filtergraphs/decimate-ppsrc
 create mode 100644 tests/ref/fate/filter-decimate-ppsrc
 create mode 100644 tests/ref/fate/filter-decimate-simple


Note: decimate is one of the last two filters that have a loop in
request_frame, I would like a FATE test to be sure I do not break it while
reworking it.


diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index 85aa765..9f6aa66 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -329,6 +329,14 @@ FATE_FILTER-$(call ALLYES, TESTSRC_FILTER SINE_FILTER CONCAT_FILTER) += fate-fil
 fate-filter-concat: tests/data/filtergraphs/concat
 fate-filter-concat: CMD = framecrc -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/concat
 
+FATE_FILTER-$(call ALLYES, TESTSRC2_FILTER DECIMATE_FILTER) += fate-filter-decimate-simple
+fate-filter-decimate-simple: CMD = framecrc -lavfi testsrc2=r=1:d=22,decimate=cycle=4 -r 1 -pix_fmt yuv420p
+
+# Currently broken, see trac ticket #4964
+#FATE_FILTER-$(call ALLYES, TESTSRC2_FILTER DECIMATE_FILTER) += fate-filter-decimate-ppsrc
+fate-filter-decimate-ppsrc: tests/data/filtergraphs/decimate-ppsrc
+fate-filter-decimate-ppsrc: CMD = framecrc -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/decimate-ppsrc -r 1 -pix_fmt yuv420p
+
 FATE_FILTER_VSYNTH-$(call ALLYES, FORMAT_FILTER SPLIT_FILTER ALPHAEXTRACT_FILTER ALPHAMERGE_FILTER) += fate-filter-alphaextract_alphamerge_rgb
 fate-filter-alphaextract_alphamerge_rgb: tests/data/filtergraphs/alphamerge_alphaextract_rgb
 fate-filter-alphaextract_alphamerge_rgb: CMD = framecrc -c:v pgmyuv -i $(SRC) -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/alphamerge_alphaextract_rgb
diff --git a/tests/filtergraphs/decimate-ppsrc b/tests/filtergraphs/decimate-ppsrc
new file mode 100644
index 0000000..35bb7b3
--- /dev/null
+++ b/tests/filtergraphs/decimate-ppsrc
@@ -0,0 +1,3 @@
+testsrc2=r=1:d=22 [f];
+testsrc2=r=1:d=22:s=160x120 [s];
+[s][f] decimate=ppsrc=1:cycle=4
diff --git a/tests/ref/fate/filter-decimate-ppsrc b/tests/ref/fate/filter-decimate-ppsrc
new file mode 100644
index 0000000..e69de29
diff --git a/tests/ref/fate/filter-decimate-simple b/tests/ref/fate/filter-decimate-simple
new file mode 100644
index 0000000..d7897eb
--- /dev/null
+++ b/tests/ref/fate/filter-decimate-simple
@@ -0,0 +1,18 @@
+#tb 0: 1/1
+0,          1,          1,        1,   115200, 0x5e0f54f3
+0,          2,          2,        1,   115200, 0xd5c25c93
+0,          3,          3,        1,   115200, 0x372c655c
+0,          5,          5,        1,   115200, 0xedbaed7f
+0,          6,          6,        1,   115200, 0x8b2a40a6
+0,          7,          7,        1,   115200, 0x4e0547fe
+0,          9,          9,        1,   115200, 0xca5a3761
+0,         10,         10,        1,   115200, 0xe7562c6f
+0,         11,         11,        1,   115200, 0x709f3960
+0,         13,         13,        1,   115200, 0x2f76d8f2
+0,         14,         14,        1,   115200, 0x72045ce1
+0,         15,         15,        1,   115200, 0xa6b36e8e
+0,         17,         17,        1,   115200, 0x275a0a3a
+0,         18,         18,        1,   115200, 0x87f04127
+0,         19,         19,        1,   115200, 0x442d4f33
+0,         21,         21,        1,   115200, 0x8e892c86
+0,         22,         22,        1,   115200, 0xb214258f
-- 
2.6.1



More information about the ffmpeg-devel mailing list