aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fate/gif.mak
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-04-18 18:51:16 +0200
committerClément Bœsch <ubitux@gmail.com>2013-04-19 02:05:01 +0200
commit3d786591b814baef324eab3a7fc8ba9d257d67ed (patch)
tree5706b78acc41ea940a9dfc559e3c29b09fdc9bdd /tests/fate/gif.mak
parent007989c7a2215f54aeaf2393ab3aff0c208e862f (diff)
downloadffmpeg-3d786591b814baef324eab3a7fc8ba9d257d67ed.tar.gz
fate/gif: create meaningful gif encoding tests.
Diffstat (limited to 'tests/fate/gif.mak')
-rw-r--r--tests/fate/gif.mak11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/fate/gif.mak b/tests/fate/gif.mak
index 722bd6e18f..110a067280 100644
--- a/tests/fate/gif.mak
+++ b/tests/fate/gif.mak
@@ -10,6 +10,17 @@ fate-gif-disposal-restore: CMD = framecrc -i $(SAMPLES)/gif/banner2.gif -pix_fmt
FATE_GIF += fate-gif-gray
fate-gif-gray: CMD = framecrc -i $(SAMPLES)/gif/Newtons_cradle_animation_book_2.gif -pix_fmt bgra
+fate-gifenc%: fate-gif-color
+fate-gifenc%: PIXFMT = $(word 3, $(subst -, ,$(@)))
+fate-gifenc%: SRC = $(SAMPLES)/gif/tc217.gif
+fate-gifenc%: CMD = framecrc -i $(SRC) -c:v gif -pix_fmt $(PIXFMT)
+
+FATE_GIF_ENC_PIXFMT = rgb8 bgr8 rgb4_byte bgr4_byte gray pal8
+FATE_GIF_ENC-$(call ENCDEC, GIF, GIF) = $(FATE_GIF_ENC_PIXFMT:%=fate-gifenc-%)
+
+FATE_GIF += $(FATE_GIF_ENC-yes)
+fate-gifenc: $(FATE_GIF_ENC-yes)
+
FATE_GIF-$(call DEMDEC, GIF, GIF) += $(FATE_GIF)
FATE_SAMPLES_AVCONV += $(FATE_GIF-yes)