[FFmpeg-cvslog] fate: Add test for colorkey
Michael Niedermayer
git at videolan.org
Thu Jan 21 19:27:46 CET 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Jan 21 17:11:47 2016 +0100| [1dd11160eafb99d32a89b102feede4c5a8097ca5] | committer: Michael Niedermayer
fate: Add test for colorkey
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1dd11160eafb99d32a89b102feede4c5a8097ca5
---
tests/fate/ffmpeg.mak | 4 ++++
tests/filtergraphs/colorkey | 2 ++
tests/ref/fate/ffmpeg-filter_colorkey | 16 ++++++++++++++++
3 files changed, 22 insertions(+)
diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak
index 2061cd7..d609dc3 100644
--- a/tests/fate/ffmpeg.mak
+++ b/tests/fate/ffmpeg.mak
@@ -18,6 +18,10 @@ fate-mapchan: $(FATE_MAPCHAN)
FATE_FFMPEG-$(CONFIG_COLOR_FILTER) += fate-ffmpeg-filter_complex
fate-ffmpeg-filter_complex: CMD = framecrc -filter_complex color=d=1:r=5 -fflags +bitexact
+FATE_FFMPEG-$(CONFIG_COLORKEY_FILTER) += fate-ffmpeg-filter_colorkey
+fate-ffmpeg-filter_colorkey: tests/data/filtergraphs/colorkey
+fate-ffmpeg-filter_colorkey: CMD = framecrc -idct simple -fflags +bitexact -flags +bitexact -sws_flags +accurate_rnd+bitexact -i $(TARGET_SAMPLES)/cavs/cavs.mpg -fflags +bitexact -flags +bitexact -sws_flags +accurate_rnd+bitexact -i $(TARGET_SAMPLES)/lena.pnm -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/colorkey -sws_flags +accurate_rnd+bitexact -fflags +bitexact -flags +bitexact -qscale 2 -vframes 10
+
FATE_FFMPEG-$(CONFIG_COLOR_FILTER) += fate-ffmpeg-lavfi
fate-ffmpeg-lavfi: CMD = framecrc -lavfi color=d=1:r=5 -fflags +bitexact
diff --git a/tests/filtergraphs/colorkey b/tests/filtergraphs/colorkey
new file mode 100644
index 0000000..207389c
--- /dev/null
+++ b/tests/filtergraphs/colorkey
@@ -0,0 +1,2 @@
+sws_flags=+accurate_rnd+bitexact;
+[1]colorkey=black:0.2:0.5[t],[0][t]overlay=10:main_h-overlay_h-10
diff --git a/tests/ref/fate/ffmpeg-filter_colorkey b/tests/ref/fate/ffmpeg-filter_colorkey
new file mode 100644
index 0000000..0e4780b
--- /dev/null
+++ b/tests/ref/fate/ffmpeg-filter_colorkey
@@ -0,0 +1,16 @@
+#tb 0: 1/25
+#tb 1: 1/48000
+0, 0, 0, 1, 622080, 0x4e30accb
+1, 0, 0, 1152, 4608, 0x00000000
+1, 1152, 1152, 1152, 4608, 0xbca29063
+0, 1, 1, 1, 622080, 0x7d941c14
+1, 2304, 2304, 1152, 4608, 0x6e70df10
+1, 3456, 3456, 1152, 4608, 0x95e6a535
+0, 2, 2, 1, 622080, 0xf7451c5b
+0, 3, 3, 1, 622080, 0xb2c74319
+0, 4, 4, 1, 622080, 0xc9b80b79
+0, 5, 5, 1, 622080, 0x92ce1194
+0, 6, 6, 1, 622080, 0x43ae99ac
+0, 7, 7, 1, 622080, 0x4ec3a554
+0, 8, 8, 1, 622080, 0x3200250c
+0, 9, 9, 1, 622080, 0x94ebb3f3
More information about the ffmpeg-cvslog
mailing list