[FFmpeg-devel] [PATCH] tests: add spp test

Stefano Sabatini stefasab at gmail.com
Wed Feb 4 12:26:15 CET 2015


This requires the new sample file matrixbench_mpeg2.lq1.mpg.
---
 tests/fate/filter-video.mak |  3 +++
 tests/ref/fate/filter-spp   | 26 ++++++++++++++++++++++++++
 2 files changed, 29 insertions(+)
 create mode 100644 tests/ref/fate/filter-spp

diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index e50e387..9e23040 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -259,6 +259,9 @@ fate-filter-pp5: CMD = video_filter "pp=md"
 FATE_FILTER_VSYNTH-$(CONFIG_PP_FILTER) += fate-filter-pp6
 fate-filter-pp6: CMD = video_filter "pp=be/fd"
 
+FATE_FILTER-$(call ALLYES, SPP_FILTER, MPEG_DEMUXER, MPEG2VIDEO_DECODER) += fate-filter-spp
+fate-filter-spp: CMD = framecrc -flags bitexact -idct simple -i $(TARGET_SAMPLES)/mpeg2/matrixbench_mpeg2.lq1.mpg -vf spp=5:10:0:1
+
 FATE_FILTER_VSYNTH-$(call ALLYES, QP_FILTER PP_FILTER) += fate-filter-qp
 fate-filter-qp: CMD = video_filter "qp=17,pp=be/hb/vb/tn/l5/al"
 
diff --git a/tests/ref/fate/filter-spp b/tests/ref/fate/filter-spp
new file mode 100644
index 0000000..ce0b617
--- /dev/null
+++ b/tests/ref/fate/filter-spp
@@ -0,0 +1,26 @@
+#tb 0: 1/25
+0,          0,          0,        1,   253464, 0x0d00246a
+0,          1,          1,        1,   253464, 0x164af22e
+0,          2,          2,        1,   253464, 0x093662f7
+0,          3,          3,        1,   253464, 0x8dd6ee59
+0,          4,          4,        1,   253464, 0x86042ee9
+0,          5,          5,        1,   253464, 0x8606b954
+0,          6,          6,        1,   253464, 0x8fcf7b83
+0,          7,          7,        1,   253464, 0x91581103
+0,          8,          8,        1,   253464, 0x14ea627f
+0,          9,          9,        1,   253464, 0x29317593
+0,         10,         10,        1,   253464, 0x001e719a
+0,         11,         11,        1,   253464, 0xc0851aa8
+0,         12,         12,        1,   253464, 0x38335631
+0,         13,         13,        1,   253464, 0x8285a1f4
+0,         14,         14,        1,   253464, 0xa461baf0
+0,         15,         15,        1,   253464, 0xfc1e9d09
+0,         16,         16,        1,   253464, 0xe154c763
+0,         17,         17,        1,   253464, 0xdd9a1191
+0,         18,         18,        1,   253464, 0xdcfb5ea6
+0,         19,         19,        1,   253464, 0xd9838667
+0,         20,         20,        1,   253464, 0x76a1547a
+0,         21,         21,        1,   253464, 0x0e8cffa7
+0,         22,         22,        1,   253464, 0x1268d4f1
+0,         23,         23,        1,   253464, 0xf2b6303c
+0,         24,         24,        1,   253464, 0xea05a4e1
\ No newline at end of file
-- 
1.8.3.2



More information about the ffmpeg-devel mailing list