fate: Add test for colorkey
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Jan 2016 16:11:47 +0000 (17:11 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Jan 2016 18:26:03 +0000 (19:26 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tests/fate/ffmpeg.mak
tests/filtergraphs/colorkey [new file with mode: 0644]
tests/ref/fate/ffmpeg-filter_colorkey [new file with mode: 0644]

index 2061cd7..d609dc3 100644 (file)
@@ -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_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
 
 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 (file)
index 0000000..207389c
--- /dev/null
@@ -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 (file)
index 0000000..0e4780b
--- /dev/null
@@ -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