Browse Source

fate: Add test for colorkey

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.0
Michael Niedermayer 9 years ago
parent
commit
1dd11160ea
3 changed files with 22 additions and 0 deletions
  1. +4
    -0
      tests/fate/ffmpeg.mak
  2. +2
    -0
      tests/filtergraphs/colorkey
  3. +16
    -0
      tests/ref/fate/ffmpeg-filter_colorkey

+ 4
- 0
tests/fate/ffmpeg.mak View 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_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



+ 2
- 0
tests/filtergraphs/colorkey View File

@@ -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

+ 16
- 0
tests/ref/fate/ffmpeg-filter_colorkey View File

@@ -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

Loading…
Cancel
Save