fate/gif: create meaningful gif encoding tests.
[ffmpeg.git] / tests / fate / gif.mak
1 FATE_GIF += fate-gif-color
2 fate-gif-color: CMD = framecrc -i $(SAMPLES)/gif/tc217.gif -pix_fmt bgra
3
4 FATE_GIF += fate-gif-disposal-background
5 fate-gif-disposal-background: CMD = framecrc -trans_color 0 -i $(SAMPLES)/gif/m4nb.gif -pix_fmt bgra
6
7 FATE_GIF += fate-gif-disposal-restore
8 fate-gif-disposal-restore: CMD = framecrc -i $(SAMPLES)/gif/banner2.gif -pix_fmt bgra
9
10 FATE_GIF += fate-gif-gray
11 fate-gif-gray: CMD = framecrc -i $(SAMPLES)/gif/Newtons_cradle_animation_book_2.gif -pix_fmt bgra
12
13 fate-gifenc%: fate-gif-color
14 fate-gifenc%: PIXFMT = $(word 3, $(subst -, ,$(@)))
15 fate-gifenc%: SRC = $(SAMPLES)/gif/tc217.gif
16 fate-gifenc%: CMD = framecrc -i $(SRC) -c:v gif -pix_fmt $(PIXFMT)
17
18 FATE_GIF_ENC_PIXFMT = rgb8 bgr8 rgb4_byte bgr4_byte gray pal8
19 FATE_GIF_ENC-$(call ENCDEC, GIF, GIF) = $(FATE_GIF_ENC_PIXFMT:%=fate-gifenc-%)
20
21 FATE_GIF += $(FATE_GIF_ENC-yes)
22 fate-gifenc: $(FATE_GIF_ENC-yes)
23
24 FATE_GIF-$(call DEMDEC, GIF, GIF) += $(FATE_GIF)
25
26 FATE_SAMPLES_AVCONV += $(FATE_GIF-yes)
27 fate-gif: $(FATE_GIF-yes)