[FFmpeg-devel] [PATCH 4/4] test: Add codecview test

Michael Niedermayer michael at niedermayer.cc
Sun Apr 19 01:37:47 EEST 2020


---
 tests/fate/filter-video.mak     |  4 ++++
 tests/ref/fate/filter-codecview | 10 ++++++++++
 2 files changed, 14 insertions(+)
 create mode 100644 tests/ref/fate/filter-codecview

diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index bca5e3510a..0e8ca110a1 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -551,6 +551,10 @@ FATE_FILTER_VSYNTH-$(CONFIG_SPP_FILTER) += fate-filter-spp
 fate-filter-spp: fate-vsynth1-mpeg4-qprd
 fate-filter-spp: CMD = framecrc -flags bitexact -idct simple -i $(TARGET_PATH)/tests/data/fate/vsynth1-mpeg4-qprd.avi -frames:v 5 -flags +bitexact -vf "spp=idct=simple:dct=int"
 
+FATE_FILTER_VSYNTH-$(CONFIG_CODECVIEW_FILTER) += fate-filter-codecview
+fate-filter-codecview: fate-vsynth1-mpeg4-qprd
+fate-filter-codecview: CMD = framecrc -flags bitexact -idct simple -flags2 +export_mvs -i $(TARGET_PATH)/tests/data/fate/vsynth1-mpeg4-qprd.avi -frames:v 5 -flags +bitexact -vf codecview=mv=pf+bf+bb
+
 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-codecview b/tests/ref/fate/filter-codecview
new file mode 100644
index 0000000000..4f6ba741ae
--- /dev/null
+++ b/tests/ref/fate/filter-codecview
@@ -0,0 +1,10 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 1/1
+0,          1,          1,        1,   152064, 0x69a58723
+0,          2,          2,        1,   152064, 0xb42d52c3
+0,          3,          3,        1,   152064, 0x9376ce65
+0,          4,          4,        1,   152064, 0x796543f9
+0,          5,          5,        1,   152064, 0x5027b118
-- 
2.17.1



More information about the ffmpeg-devel mailing list