2011-07-04 19:08:02 +02:00
|
|
|
define DEF_FFT
|
2014-06-26 02:09:13 +02:00
|
|
|
FATE_FFT-$(CONFIG_DCT) += fate-dct1d-$(1) fate-idct1d-$(1)
|
|
|
|
FATE_FFT-$(CONFIG_FFT) += fate-fft-$(1) fate-ifft-$(1)
|
|
|
|
FATE_FFT-$(CONFIG_MDCT) += fate-mdct-$(1) fate-imdct-$(1)
|
|
|
|
FATE_FFT-$(CONFIG_RDFT) += fate-rdft-$(1) fate-irdft-$(1)
|
2011-07-04 19:08:02 +02:00
|
|
|
|
2012-04-25 21:49:01 +02:00
|
|
|
fate-fft-$(N): ARGS = -n$(1)
|
|
|
|
fate-ifft-$(N): ARGS = -n$(1) -i
|
|
|
|
fate-mdct-$(N): ARGS = -n$(1) -m
|
|
|
|
fate-imdct-$(N): ARGS = -n$(1) -m -i
|
|
|
|
fate-rdft-$(N): ARGS = -n$(1) -r
|
|
|
|
fate-irdft-$(N): ARGS = -n$(1) -r -i
|
|
|
|
fate-dct1d-$(N): ARGS = -n$(1) -d
|
|
|
|
fate-idct1d-$(N): ARGS = -n$(1) -d -i
|
2011-07-04 19:08:02 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach N, 4 5 6 7 8 9 10 11 12, $(eval $(call DEF_FFT,$(N))))
|
2010-08-04 20:47:20 +02:00
|
|
|
|
2014-06-26 02:09:13 +02:00
|
|
|
fate-fft-float: $(FATE_FFT-yes)
|
|
|
|
$(FATE_FFT-yes): libavcodec/fft-test$(EXESUF)
|
|
|
|
$(FATE_FFT-yes): CMD = run libavcodec/fft-test $(CPUFLAGS:%=-c%) $(ARGS)
|
|
|
|
$(FATE_FFT-yes): REF = /dev/null
|
2011-03-31 17:02:25 +02:00
|
|
|
|
2011-07-04 19:08:02 +02:00
|
|
|
define DEF_FFT_FIXED
|
2014-06-26 02:09:13 +02:00
|
|
|
FATE_FFT_FIXED-$(CONFIG_FFT) += fate-fft-fixed-$(1) fate-ifft-fixed-$(1)
|
|
|
|
FATE_FFT_FIXED-$(CONFIG_MDCT) += fate-mdct-fixed-$(1) fate-imdct-fixed-$(1)
|
2011-07-04 19:08:02 +02:00
|
|
|
|
2012-04-25 21:49:01 +02:00
|
|
|
fate-fft-fixed-$(1): ARGS = -n$(1)
|
|
|
|
fate-ifft-fixed-$(1): ARGS = -n$(1) -i
|
|
|
|
fate-mdct-fixed-$(1): ARGS = -n$(1) -m
|
|
|
|
fate-imdct-fixed-$(1): ARGS = -n$(1) -m -i
|
2011-07-04 19:08:02 +02:00
|
|
|
endef
|
2011-03-31 17:02:25 +02:00
|
|
|
|
2011-07-04 19:08:02 +02:00
|
|
|
$(foreach N, 4 5 6 7 8 9 10 11 12, $(eval $(call DEF_FFT_FIXED,$(N))))
|
2011-03-31 17:02:25 +02:00
|
|
|
|
2014-06-26 02:09:13 +02:00
|
|
|
fate-fft-fixed: $(FATE_FFT_FIXED-yes)
|
|
|
|
$(FATE_FFT_FIXED-yes): libavcodec/fft-fixed-test$(EXESUF)
|
|
|
|
$(FATE_FFT_FIXED-yes): CMD = run libavcodec/fft-fixed-test $(CPUFLAGS:%=-c%) $(ARGS)
|
|
|
|
$(FATE_FFT_FIXED-yes): REF = /dev/null
|
2011-03-31 17:02:25 +02:00
|
|
|
|
2013-06-03 16:11:12 +02:00
|
|
|
define DEF_FFT_FIXED32
|
|
|
|
FATE_FFT_FIXED32 += fate-fft-fixed32-$(1) fate-ifft-fixed32-$(1) \
|
|
|
|
fate-mdct-fixed32-$(1) fate-imdct-fixed32-$(1)
|
|
|
|
|
|
|
|
fate-fft-fixed32-$(1): ARGS = -n$(1)
|
|
|
|
fate-ifft-fixed32-$(1): ARGS = -n$(1) -i
|
|
|
|
#fate-mdct-fixed32-$(1): ARGS = -n$(1) -m
|
|
|
|
fate-imdct-fixed32-$(1): ARGS = -n$(1) -m -i
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach N, 4 5 6 7 8 9 10 11 12, $(eval $(call DEF_FFT_FIXED32,$(N))))
|
|
|
|
|
|
|
|
fate-fft-fixed32-test: $(FATE_FFT_FIXED32)
|
|
|
|
$(FATE_FFT_FIXED32): libavcodec/fft-fixed32-test$(EXESUF)
|
|
|
|
$(FATE_FFT_FIXED32): CMD = run libavcodec/fft-fixed32-test $(CPUFLAGS:%=-c%) $(ARGS)
|
|
|
|
$(FATE_FFT_FIXED32): REF = /dev/null
|
|
|
|
|
2014-06-27 02:36:45 +02:00
|
|
|
FATE-$(call ALLYES, AVCODEC FFT MDCT) += $(FATE_FFT-yes) $(FATE_FFT_FIXED-yes) $(FATE_FFT_FIXED32)
|
|
|
|
fate-fft: $(FATE_FFT-yes) $(FATE_FFT_FIXED-yes) $(FATE_FFT_FIXED32)
|