gif.mak 1.1 KB

123456789101112131415161718192021222324252627282930
  1. FATE_GIF += fate-gif-color
  2. fate-gif-color: CMD = framecrc -i $(TARGET_SAMPLES)/gif/tc217.gif -pix_fmt bgra
  3. FATE_GIF += fate-gif-disposal-background
  4. fate-gif-disposal-background: CMD = framecrc -trans_color 0 -i $(TARGET_SAMPLES)/gif/m4nb.gif -pix_fmt bgra
  5. FATE_GIF += fate-gif-disposal-restore
  6. fate-gif-disposal-restore: CMD = framecrc -i $(TARGET_SAMPLES)/gif/banner2.gif -pix_fmt bgra
  7. FATE_GIF += fate-gif-gray
  8. fate-gif-gray: CMD = framecrc -i $(TARGET_SAMPLES)/gif/Newtons_cradle_animation_book_2.gif -pix_fmt bgra
  9. FATE_GIF += fate-gif-deal
  10. fate-gif-deal: CMD = framecrc -i $(TARGET_SAMPLES)/gif/deal.gif -vsync cfr -pix_fmt bgra
  11. fate-gifenc%: fate-gif-color
  12. fate-gifenc%: PIXFMT = $(word 3, $(subst -, ,$(@)))
  13. fate-gifenc%: SRC = $(TARGET_SAMPLES)/gif/tc217.gif
  14. fate-gifenc%: CMD = framecrc -i $(SRC) -c:v gif -pix_fmt $(PIXFMT)
  15. FATE_GIF_ENC_PIXFMT = rgb8 bgr8 rgb4_byte bgr4_byte gray pal8
  16. FATE_GIF_ENC-$(call ENCDEC, GIF, GIF) = $(FATE_GIF_ENC_PIXFMT:%=fate-gifenc-%)
  17. FATE_GIF += $(FATE_GIF_ENC-yes)
  18. fate-gifenc: $(FATE_GIF_ENC-yes)
  19. FATE_GIF-$(call DEMDEC, GIF, GIF) += $(FATE_GIF)
  20. FATE_SAMPLES_AVCONV += $(FATE_GIF-yes)
  21. fate-gif: $(FATE_GIF-yes)