2017-08-29 19:36:42 +02:00
|
|
|
tests/data/fits-multi.fits: TAG = GEN
|
|
|
|
tests/data/fits-multi.fits: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
|
2021-12-17 03:04:11 +02:00
|
|
|
$(M)$(TARGET_EXEC) $(TARGET_PATH)/$< -nostdin \
|
2017-08-29 19:36:42 +02:00
|
|
|
-i $(TARGET_SAMPLES)/gif/m4nb.gif \
|
|
|
|
-y $(TARGET_PATH)/$(@) 2>/dev/null
|
|
|
|
|
|
|
|
#mapping of fits file formats to png filenames
|
2021-01-24 18:13:19 +02:00
|
|
|
# TODO: Use an actual 64bit input file and fix the gbrp16 test on big-endian
|
2022-04-22 20:06:01 +02:00
|
|
|
fits-png-map-gray := gray8
|
|
|
|
fits-png-map-gbrp := rgb24
|
2023-07-06 18:56:40 +02:00
|
|
|
fits-png-map-gbrp16be := rgb48
|
|
|
|
fits-png-map-gbrap16be := rgba64
|
2017-08-29 19:36:42 +02:00
|
|
|
|
2022-04-22 19:38:10 +02:00
|
|
|
FATE_FITS_DEC-$(call FRAMECRC, FITS, FITS, SCALE_FILTER) += fate-fitsdec-ext_data_min_max
|
2020-09-14 21:23:20 +02:00
|
|
|
fate-fitsdec-ext_data_min_max: CMD = framecrc -i $(TARGET_SAMPLES)/fits/x0cj010ct_d0h.fit -pix_fmt gray16le -vf scale
|
2017-08-29 19:36:42 +02:00
|
|
|
|
2022-04-22 19:38:10 +02:00
|
|
|
FATE_FITS_DEC-$(call FRAMECRC, FITS, FITS, SCALE_FILTER) += fate-fitsdec-blank_bitpix32
|
2020-09-14 21:23:20 +02:00
|
|
|
fate-fitsdec-blank_bitpix32: CMD = framecrc -blank_value 65535 -i $(TARGET_SAMPLES)/fits/file008.fits -pix_fmt gray16le -vf scale
|
2017-08-29 19:36:42 +02:00
|
|
|
|
2022-04-22 19:38:10 +02:00
|
|
|
FATE_FITS_DEC-$(call FRAMECRC, FITS, FITS, SCALE_FILTER) += fate-fitsdec-bitpix-32
|
2020-09-14 21:23:20 +02:00
|
|
|
fate-fitsdec-bitpix-32: CMD = framecrc -i $(TARGET_SAMPLES)/fits/tst0005.fits -pix_fmt gray16le -vf scale
|
2017-08-29 19:36:42 +02:00
|
|
|
|
2022-04-22 19:38:10 +02:00
|
|
|
FATE_FITS_DEC-$(call FRAMECRC, FITS, FITS, SCALE_FILTER) += fate-fitsdec-bitpix-64
|
2020-09-14 21:23:20 +02:00
|
|
|
fate-fitsdec-bitpix-64: CMD = framecrc -i $(TARGET_SAMPLES)/fits/tst0006.fits -pix_fmt gray16le -vf scale
|
2017-08-29 19:36:42 +02:00
|
|
|
|
2022-04-22 19:38:10 +02:00
|
|
|
FATE_FITS_DEC-$(call TRANSCODE, FITS, FITS, GIF_DEMUXER GIF_DECODER SCALE_FILTER) += fate-fitsdec-multi
|
2017-08-29 19:36:42 +02:00
|
|
|
fate-fitsdec-multi: tests/data/fits-multi.fits
|
|
|
|
fate-fitsdec-multi: CMD = framecrc -i $(TARGET_PATH)/tests/data/fits-multi.fits -pix_fmt gbrap
|
|
|
|
|
|
|
|
fate-fitsdec%: PIXFMT = $(word 3, $(subst -, ,$(@)))
|
2024-03-30 03:20:40 +02:00
|
|
|
fate-fitsdec%: CMD = transcode image2 $(TARGET_SAMPLES)/png1/lena-$(fits-png-map-$(PIXFMT)).png fits "-vf scale -pix_fmt $(PIXFMT)" "-vf scale -pix_fmt $(PIXFMT)"
|
2017-08-29 19:36:42 +02:00
|
|
|
|
2023-07-06 18:56:40 +02:00
|
|
|
FATE_FITS_DEC_PIXFMT = gray gbrp gbrp16be gbrap16be
|
2022-04-22 19:38:10 +02:00
|
|
|
FATE_FITS_DEC-$(call TRANSCODE, FITS, FITS, IMAGE2_DEMUXER PNG_DECODER SCALE_FILTER) += $(FATE_FITS_DEC_PIXFMT:%=fate-fitsdec-%)
|
2017-08-29 19:36:42 +02:00
|
|
|
|
|
|
|
FATE_FITS += $(FATE_FITS_DEC-yes)
|
|
|
|
fate-fitsdec: $(FATE_FITS_DEC-yes)
|
|
|
|
|
|
|
|
fate-fitsenc%: PIXFMT = $(word 3, $(subst -, ,$(@)))
|
|
|
|
fate-fitsenc%: SRC = $(TARGET_PATH)/tests/data/fits-multi.fits
|
2020-08-14 18:58:27 +02:00
|
|
|
fate-fitsenc%: CMD = framecrc -auto_conversion_filters -i $(SRC) -c:v fits -pix_fmt $(PIXFMT)
|
2017-08-29 19:36:42 +02:00
|
|
|
|
|
|
|
FATE_FITS_ENC_PIXFMT = gray gray16be gbrp gbrap gbrp16be gbrap16be
|
|
|
|
$(FATE_FITS_ENC_PIXFMT:%=fate-fitsenc-%): tests/data/fits-multi.fits
|
2022-04-22 19:38:10 +02:00
|
|
|
FATE_FITS_ENC-$(call TRANSCODE, FITS, FITS, GIF_DEMUXER GIF_DECODER SCALE_FILTER) += $(FATE_FITS_ENC_PIXFMT:%=fate-fitsenc-%)
|
2017-08-29 19:36:42 +02:00
|
|
|
|
|
|
|
FATE_FITS += $(FATE_FITS_ENC-yes)
|
|
|
|
fate-fitsenc: $(FATE_FITS_ENC-yes)
|
|
|
|
|
|
|
|
FATE_SAMPLES_FFMPEG += $(FATE_FITS)
|
|
|
|
fate-fits: $(FATE_FITS)
|