1tests/data/fits-multi.fits: TAG = GEN 2tests/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 7#mapping of fits file formats to png filenames 8# TODO: Use an actual 64bit input file and fix the gbrp16 test on big-endian 9map.tests/data/lena-gray.fits := gray8 10map.tests/data/lena-gbrp.fits := rgb24 11map.tests/data/lena-gbrp16.fits := rgb48 12map.tests/data/lena-gbrap16le.fits := rgba64 13 14tests/data/lena%.fits: TAG = GEN 15tests/data/lena%.fits: NAME = $(map.$(@)) 16tests/data/lena%.fits: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data 17 $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \ 18 -i $(TARGET_SAMPLES)/png1/lena-$(map.$(@)).png \ 19 -y $(TARGET_PATH)/$(@) 2>/dev/null 20 21FATE_FITS_DEC-$(call DEMDEC, FITS, FITS) += fate-fitsdec-ext_data_min_max 22fate-fitsdec-ext_data_min_max: CMD = framecrc -i $(TARGET_SAMPLES)/fits/x0cj010ct_d0h.fit -pix_fmt gray16le -vf scale 23 24FATE_FITS_DEC-$(call DEMDEC, FITS, FITS) += fate-fitsdec-blank_bitpix32 25fate-fitsdec-blank_bitpix32: CMD = framecrc -blank_value 65535 -i $(TARGET_SAMPLES)/fits/file008.fits -pix_fmt gray16le -vf scale 26 27FATE_FITS_DEC-$(call DEMDEC, FITS, FITS) += fate-fitsdec-bitpix-32 28fate-fitsdec-bitpix-32: CMD = framecrc -i $(TARGET_SAMPLES)/fits/tst0005.fits -pix_fmt gray16le -vf scale 29 30FATE_FITS_DEC-$(call DEMDEC, FITS, FITS) += fate-fitsdec-bitpix-64 31fate-fitsdec-bitpix-64: CMD = framecrc -i $(TARGET_SAMPLES)/fits/tst0006.fits -pix_fmt gray16le -vf scale 32 33FATE_FITS_DEC-$(call ALLYES, GIF_DEMUXER FITS_DEMUXER GIF_DECODER FITS_DECODER FITS_ENCODER FITS_MUXER) += fate-fitsdec-multi 34fate-fitsdec-multi: tests/data/fits-multi.fits 35fate-fitsdec-multi: CMD = framecrc -i $(TARGET_PATH)/tests/data/fits-multi.fits -pix_fmt gbrap 36 37fate-fitsdec%: PIXFMT = $(word 3, $(subst -, ,$(@))) 38fate-fitsdec%: SRC = $(TARGET_PATH)/tests/data/lena-$(PIXFMT).fits 39fate-fitsdec%: CMD = framecrc -i $(SRC) -pix_fmt $(PIXFMT) 40 41FATE_FITS_DEC_PIXFMT = gray gbrp gbrp16 gbrap16le 42$(FATE_FITS_DEC_PIXFMT:%=fate-fitsdec-%): fate-fitsdec-%: tests/data/lena-%.fits 43FATE_FITS_DEC-$(call ALLYES, FITS_DEMUXER IMAGE2_DEMUXER FITS_DECODER PNG_DECODER FITS_ENCODER FITS_MUXER) += $(FATE_FITS_DEC_PIXFMT:%=fate-fitsdec-%) 44 45FATE_FITS += $(FATE_FITS_DEC-yes) 46fate-fitsdec: $(FATE_FITS_DEC-yes) 47 48fate-fitsenc%: PIXFMT = $(word 3, $(subst -, ,$(@))) 49fate-fitsenc%: SRC = $(TARGET_PATH)/tests/data/fits-multi.fits 50fate-fitsenc%: CMD = framecrc -auto_conversion_filters -i $(SRC) -c:v fits -pix_fmt $(PIXFMT) 51 52FATE_FITS_ENC_PIXFMT = gray gray16be gbrp gbrap gbrp16be gbrap16be 53$(FATE_FITS_ENC_PIXFMT:%=fate-fitsenc-%): tests/data/fits-multi.fits 54FATE_FITS_ENC-$(call ALLYES, GIF_DEMUXER GIF_DECODER FITS_ENCODER FITS_MUXER) += $(FATE_FITS_ENC_PIXFMT:%=fate-fitsenc-%) 55 56FATE_FITS += $(FATE_FITS_ENC-yes) 57fate-fitsenc: $(FATE_FITS_ENC-yes) 58 59FATE_SAMPLES_FFMPEG += $(FATE_FITS) 60fate-fits: $(FATE_FITS) 61