[FFmpeg-devel] [PATCH] fate: add test for mergeplanes filter

Paul B Mahol onemda at gmail.com
Fri Jul 17 14:53:38 CEST 2015


Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 tests/fate/filter-video.mak       |  4 +++
 tests/filtergraphs/mergeplanes    |  2 ++
 tests/ref/fate/filter-mergeplanes | 51 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 57 insertions(+)
 create mode 100644 tests/filtergraphs/mergeplanes
 create mode 100644 tests/ref/fate/filter-mergeplanes

diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index e8e9d78..909aa29 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -114,6 +114,10 @@ fate-filter-histogram-levels: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf histogram
 FATE_FILTER_VSYNTH-$(CONFIG_HISTOGRAM_FILTER) += fate-filter-histogram-waveform
 fate-filter-histogram-waveform: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf format=yuv444p,histogram=mode=waveform -flags +bitexact -sws_flags +accurate_rnd+bitexact
 
+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
+
 FATE_FILTER_VSYNTH-$(CONFIG_OVERLAY_FILTER) += fate-filter-overlay
 fate-filter-overlay: tests/data/filtergraphs/overlay
 fate-filter-overlay: CMD = framecrc -c:v pgmyuv -i $(SRC) -c:v pgmyuv -i $(SRC) -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/overlay
diff --git a/tests/filtergraphs/mergeplanes b/tests/filtergraphs/mergeplanes
new file mode 100644
index 0000000..0058a20
--- /dev/null
+++ b/tests/filtergraphs/mergeplanes
@@ -0,0 +1,2 @@
+sws_flags=+accurate_rnd+bitexact;
+format=yuv420p,mergeplanes=0:yuv444p
diff --git a/tests/ref/fate/filter-mergeplanes b/tests/ref/fate/filter-mergeplanes
new file mode 100644
index 0000000..841d14f
--- /dev/null
+++ b/tests/ref/fate/filter-mergeplanes
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0,          0,          0,        1,   304128, 0x90660272
+0,          1,          1,        1,   304128, 0x6b09c8a6
+0,          2,          2,        1,   304128, 0x343858f3
+0,          3,          3,        1,   304128, 0x2f8ba46c
+0,          4,          4,        1,   304128, 0xe31fc163
+0,          5,          5,        1,   304128, 0xc1f3a301
+0,          6,          6,        1,   304128, 0x76b132d2
+0,          7,          7,        1,   304128, 0xf47b97f1
+0,          8,          8,        1,   304128, 0x12089641
+0,          9,          9,        1,   304128, 0x04156f0f
+0,         10,         10,        1,   304128, 0xc8bf96e8
+0,         11,         11,        1,   304128, 0xbecdae62
+0,         12,         12,        1,   304128, 0x74053994
+0,         13,         13,        1,   304128, 0xc1f3eec7
+0,         14,         14,        1,   304128, 0xf4e496b3
+0,         15,         15,        1,   304128, 0xa5a3d663
+0,         16,         16,        1,   304128, 0x1d3738ea
+0,         17,         17,        1,   304128, 0xfdfa09f5
+0,         18,         18,        1,   304128, 0x8844bbc5
+0,         19,         19,        1,   304128, 0x7eb20cea
+0,         20,         20,        1,   304128, 0x5b5e7351
+0,         21,         21,        1,   304128, 0x2b5e5fc1
+0,         22,         22,        1,   304128, 0xd6a2e9a7
+0,         23,         23,        1,   304128, 0xf56ed1be
+0,         24,         24,        1,   304128, 0xd60530a5
+0,         25,         25,        1,   304128, 0x363aa5bf
+0,         26,         26,        1,   304128, 0x37f56bb0
+0,         27,         27,        1,   304128, 0xe8428c1f
+0,         28,         28,        1,   304128, 0x78ef39cf
+0,         29,         29,        1,   304128, 0x76b2ab97
+0,         30,         30,        1,   304128, 0x3f09f5ef
+0,         31,         31,        1,   304128, 0x6f2c0371
+0,         32,         32,        1,   304128, 0x8baaf4a3
+0,         33,         33,        1,   304128, 0xda157bc0
+0,         34,         34,        1,   304128, 0xae46ebb0
+0,         35,         35,        1,   304128, 0xbe3458a2
+0,         36,         36,        1,   304128, 0x9784f913
+0,         37,         37,        1,   304128, 0xa67d93cd
+0,         38,         38,        1,   304128, 0x8b0e84ba
+0,         39,         39,        1,   304128, 0x583250f1
+0,         40,         40,        1,   304128, 0x7d1ee0a8
+0,         41,         41,        1,   304128, 0x6d83f980
+0,         42,         42,        1,   304128, 0x027ce4c5
+0,         43,         43,        1,   304128, 0xcf1a0c75
+0,         44,         44,        1,   304128, 0xbd1c2e5c
+0,         45,         45,        1,   304128, 0x36d4fe48
+0,         46,         46,        1,   304128, 0x9cc1650e
+0,         47,         47,        1,   304128, 0xf1af6288
+0,         48,         48,        1,   304128, 0x5eb8d36e
+0,         49,         49,        1,   304128, 0x2c4f2305
-- 
1.7.11.2



More information about the ffmpeg-devel mailing list