fits.mak 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. tests/data/fits-multi.fits: TAG = GEN
  2. tests/data/fits-multi.fits: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
  3. $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \
  4. -i $(TARGET_SAMPLES)/gif/m4nb.gif \
  5. -y $(TARGET_PATH)/$(@) 2>/dev/null
  6. #mapping of fits file formats to png filenames
  7. map.tests/data/lena-gray.fits := gray8
  8. map.tests/data/lena-gbrp.fits := rgb24
  9. map.tests/data/lena-gbrp16.fits := rgb48
  10. map.tests/data/lena-gbrap16le.fits := rgba64
  11. tests/data/lena%.fits: TAG = GEN
  12. tests/data/lena%.fits: NAME = $(map.$(@))
  13. tests/data/lena%.fits: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
  14. $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \
  15. -i $(TARGET_SAMPLES)/png1/lena-$(map.$(@)).png \
  16. -y $(TARGET_PATH)/$(@) 2>/dev/null
  17. FATE_FITS_DEC-$(call DEMDEC, FITS, FITS) += fate-fitsdec-ext_data_min_max
  18. fate-fitsdec-ext_data_min_max: CMD = framecrc -i $(TARGET_SAMPLES)/fits/x0cj010ct_d0h.fit -pix_fmt gray16le
  19. FATE_FITS_DEC-$(call DEMDEC, FITS, FITS) += fate-fitsdec-blank_bitpix32
  20. fate-fitsdec-blank_bitpix32: CMD = framecrc -blank_value 65535 -i $(TARGET_SAMPLES)/fits/file008.fits -pix_fmt gray16le
  21. FATE_FITS_DEC-$(call DEMDEC, FITS, FITS) += fate-fitsdec-bitpix-32
  22. fate-fitsdec-bitpix-32: CMD = framecrc -i $(TARGET_SAMPLES)/fits/tst0005.fits -pix_fmt gray16le
  23. FATE_FITS_DEC-$(call DEMDEC, FITS, FITS) += fate-fitsdec-bitpix-64
  24. fate-fitsdec-bitpix-64: CMD = framecrc -i $(TARGET_SAMPLES)/fits/tst0006.fits -pix_fmt gray16le
  25. FATE_FITS_DEC-$(call ALLYES, GIF_DEMUXER FITS_DEMUXER GIF_DECODER FITS_DECODER FITS_ENCODER FITS_MUXER) += fate-fitsdec-multi
  26. fate-fitsdec-multi: tests/data/fits-multi.fits
  27. fate-fitsdec-multi: CMD = framecrc -i $(TARGET_PATH)/tests/data/fits-multi.fits -pix_fmt gbrap
  28. fate-fitsdec%: PIXFMT = $(word 3, $(subst -, ,$(@)))
  29. fate-fitsdec%: SRC = $(TARGET_PATH)/tests/data/lena-$(PIXFMT).fits
  30. fate-fitsdec%: CMD = framecrc -i $(SRC) -pix_fmt $(PIXFMT)
  31. FATE_FITS_DEC_PIXFMT = gray gbrp gbrp16 gbrap16le
  32. $(FATE_FITS_DEC_PIXFMT:%=fate-fitsdec-%): fate-fitsdec-%: tests/data/lena-%.fits
  33. FATE_FITS_DEC-$(call ALLYES, FITS_DEMUXER IMAGE2_DEMUXER FITS_DECODER PNG_DECODER FITS_ENCODER FITS_MUXER) += $(FATE_FITS_DEC_PIXFMT:%=fate-fitsdec-%)
  34. FATE_FITS += $(FATE_FITS_DEC-yes)
  35. fate-fitsdec: $(FATE_FITS_DEC-yes)
  36. fate-fitsenc%: PIXFMT = $(word 3, $(subst -, ,$(@)))
  37. fate-fitsenc%: SRC = $(TARGET_PATH)/tests/data/fits-multi.fits
  38. fate-fitsenc%: CMD = framecrc -i $(SRC) -c:v fits -pix_fmt $(PIXFMT)
  39. FATE_FITS_ENC_PIXFMT = gray gray16be gbrp gbrap gbrp16be gbrap16be
  40. $(FATE_FITS_ENC_PIXFMT:%=fate-fitsenc-%): tests/data/fits-multi.fits
  41. FATE_FITS_ENC-$(call ALLYES, GIF_DEMUXER GIF_DECODER FITS_ENCODER FITS_MUXER) += $(FATE_FITS_ENC_PIXFMT:%=fate-fitsenc-%)
  42. FATE_FITS += $(FATE_FITS_ENC-yes)
  43. fate-fitsenc: $(FATE_FITS_ENC-yes)
  44. FATE_SAMPLES_FFMPEG += $(FATE_FITS)
  45. fate-fits: $(FATE_FITS)