[FFmpeg-devel] [PATCH 1/2] fate: add tests for w3fdif filter

Paul B Mahol onemda at gmail.com
Sat Jul 11 21:03:40 CEST 2015


Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 tests/fate/filter-video.mak          |  8 ++++++++
 tests/ref/fate/filter-w3fdif-complex | 31 +++++++++++++++++++++++++++++++
 tests/ref/fate/filter-w3fdif-simple  | 31 +++++++++++++++++++++++++++++++
 3 files changed, 70 insertions(+)
 create mode 100644 tests/ref/fate/filter-w3fdif-complex
 create mode 100644 tests/ref/fate/filter-w3fdif-simple

diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index 87af23b..76fa0f2 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -15,6 +15,14 @@ fate-filter-yadif16: CMD = framecrc -flags bitexact -idct simple -i $(TARGET_SAM
 
 FATE_FILTER-$(call FILTERDEMDEC, YADIF, MPEGTS, MPEG2VIDEO) += $(FATE_YADIF)
 
+FATE_W3FDIF += fate-filter-w3fdif-simple
+fate-filter-w3fdif-simple: CMD = framecrc -flags bitexact -idct simple -i $(TARGET_SAMPLES)/mpeg2/mpeg2_field_encoding.ts -vframes 30 -vf w3fdif=0
+
+FATE_W3FDIF += fate-filter-w3fdif-complex
+fate-filter-w3fdif-complex: CMD = framecrc -flags bitexact -idct simple -i $(TARGET_SAMPLES)/mpeg2/mpeg2_field_encoding.ts -vframes 30 -vf w3fdif=1
+
+FATE_FILTER-$(call FILTERDEMDEC, W3FDIF, MPEGTS, MPEG2VIDEO) += $(FATE_W3FDIF)
+
 FATE_MCDEINT += fate-filter-mcdeint-fast
 fate-filter-mcdeint-fast: CMD = framecrc -flags bitexact -idct simple -i $(TARGET_SAMPLES)/mpeg2/mpeg2_field_encoding.ts -vframes 30 -vf mcdeint=fast
 
diff --git a/tests/ref/fate/filter-w3fdif-complex b/tests/ref/fate/filter-w3fdif-complex
new file mode 100644
index 0000000..32eadc9
--- /dev/null
+++ b/tests/ref/fate/filter-w3fdif-complex
@@ -0,0 +1,31 @@
+#tb 0: 1/50
+0,         18,         18,        1,   622080, 0x21d21485
+0,         19,         19,        1,   622080, 0x600a5468
+0,         20,         20,        1,   622080, 0x9526f7b8
+0,         21,         21,        1,   622080, 0x8b3e661f
+0,         22,         22,        1,   622080, 0xff5cb5a9
+0,         23,         23,        1,   622080, 0x7e5e730c
+0,         24,         24,        1,   622080, 0x85219ac6
+0,         25,         25,        1,   622080, 0x2f3465a0
+0,         26,         26,        1,   622080, 0xddbf4da0
+0,         27,         27,        1,   622080, 0xc115d4ee
+0,         28,         28,        1,   622080, 0x7a8a8d72
+0,         29,         29,        1,   622080, 0xbafcd973
+0,         30,         30,        1,   622080, 0xd2c15603
+0,         31,         31,        1,   622080, 0xd7217855
+0,         32,         32,        1,   622080, 0x9a584eca
+0,         33,         33,        1,   622080, 0x9f3e1c40
+0,         34,         34,        1,   622080, 0x6d01efb7
+0,         35,         35,        1,   622080, 0x9ecfcce0
+0,         36,         36,        1,   622080, 0xb355fd7e
+0,         37,         37,        1,   622080, 0xc7784021
+0,         38,         38,        1,   622080, 0x13fe4187
+0,         39,         39,        1,   622080, 0xfa03b613
+0,         40,         40,        1,   622080, 0x2c9ccfcd
+0,         41,         41,        1,   622080, 0xcae6e6c6
+0,         42,         42,        1,   622080, 0x177968f9
+0,         43,         43,        1,   622080, 0xf708de36
+0,         44,         44,        1,   622080, 0x4491870a
+0,         45,         45,        1,   622080, 0x37709f98
+0,         46,         46,        1,   622080, 0x23e8d22f
+0,         47,         47,        1,   622080, 0x25cba876
diff --git a/tests/ref/fate/filter-w3fdif-simple b/tests/ref/fate/filter-w3fdif-simple
new file mode 100644
index 0000000..137d989
--- /dev/null
+++ b/tests/ref/fate/filter-w3fdif-simple
@@ -0,0 +1,31 @@
+#tb 0: 1/50
+0,         18,         18,        1,   622080, 0xc73774f5
+0,         19,         19,        1,   622080, 0x4ea3a400
+0,         20,         20,        1,   622080, 0x95153cda
+0,         21,         21,        1,   622080, 0xec39bf0b
+0,         22,         22,        1,   622080, 0x94b6f836
+0,         23,         23,        1,   622080, 0xc145c3ee
+0,         24,         24,        1,   622080, 0x4d4cdee2
+0,         25,         25,        1,   622080, 0x193ebc7c
+0,         26,         26,        1,   622080, 0xbd728fd8
+0,         27,         27,        1,   622080, 0xf0f3252f
+0,         28,         28,        1,   622080, 0xc012d20a
+0,         29,         29,        1,   622080, 0x7b5831b2
+0,         30,         30,        1,   622080, 0x464e9622
+0,         31,         31,        1,   622080, 0x46e3c6c0
+0,         32,         32,        1,   622080, 0xa6ec908b
+0,         33,         33,        1,   622080, 0x6a257595
+0,         34,         34,        1,   622080, 0xa6552ecc
+0,         35,         35,        1,   622080, 0xdecd1a91
+0,         36,         36,        1,   622080, 0xfaa53e71
+0,         37,         37,        1,   622080, 0xc94a9707
+0,         38,         38,        1,   622080, 0xb5727fd4
+0,         39,         39,        1,   622080, 0x143c018c
+0,         40,         40,        1,   622080, 0x92d110c9
+0,         41,         41,        1,   622080, 0x4f762fc0
+0,         42,         42,        1,   622080, 0x3dd2a7d2
+0,         43,         43,        1,   622080, 0xa5d02dc0
+0,         44,         44,        1,   622080, 0x2223ce3d
+0,         45,         45,        1,   622080, 0xe4a5fc36
+0,         46,         46,        1,   622080, 0x8384159e
+0,         47,         47,        1,   622080, 0x995efa57
-- 
1.7.11.2



More information about the ffmpeg-devel mailing list