2011-07-04 17:08:02 +00:00
|
|
|
define DEF_FFT
|
|
|
|
FATE_FFT += fate-fft-$(1) fate-ifft-$(1) \
|
|
|
|
fate-mdct-$(1) fate-imdct-$(1) \
|
|
|
|
fate-rdft-$(1) fate-irdft-$(1) \
|
|
|
|
fate-dct1d-$(1) fate-idct1d-$(1)
|
|
|
|
|
2012-04-25 19:49:01 +00: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 17:08:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach N, 4 5 6 7 8 9 10 11 12, $(eval $(call DEF_FFT,$(N))))
|
2010-08-04 18:47:20 +00:00
|
|
|
|
|
|
|
fate-fft-test: $(FATE_FFT)
|
2011-03-31 15:46:36 +00:00
|
|
|
$(FATE_FFT): libavcodec/fft-test$(EXESUF)
|
2012-04-25 19:49:01 +00:00
|
|
|
$(FATE_FFT): CMD = run libavcodec/fft-test $(CPUFLAGS:%=-c%) $(ARGS)
|
2010-08-04 18:47:20 +00:00
|
|
|
$(FATE_FFT): REF = /dev/null
|
2011-03-31 15:02:25 +00:00
|
|
|
|
2011-07-04 17:08:02 +00:00
|
|
|
define DEF_FFT_FIXED
|
|
|
|
FATE_FFT_FIXED += fate-fft-fixed-$(1) fate-ifft-fixed-$(1) \
|
|
|
|
fate-mdct-fixed-$(1) fate-imdct-fixed-$(1)
|
|
|
|
|
2012-04-25 19:49:01 +00: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 17:08:02 +00:00
|
|
|
endef
|
2011-03-31 15:02:25 +00:00
|
|
|
|
2011-07-04 17:08:02 +00:00
|
|
|
$(foreach N, 4 5 6 7 8 9 10 11 12, $(eval $(call DEF_FFT_FIXED,$(N))))
|
2011-03-31 15:02:25 +00:00
|
|
|
|
|
|
|
fate-fft-fixed-test: $(FATE_FFT_FIXED)
|
|
|
|
$(FATE_FFT_FIXED): libavcodec/fft-fixed-test$(EXESUF)
|
2012-04-25 19:49:01 +00:00
|
|
|
$(FATE_FFT_FIXED): CMD = run libavcodec/fft-fixed-test $(CPUFLAGS:%=-c%) $(ARGS)
|
2011-03-31 15:02:25 +00:00
|
|
|
$(FATE_FFT_FIXED): REF = /dev/null
|
|
|
|
|
2012-11-28 23:22:25 +00:00
|
|
|
FATE-$(call ALLYES, AVCODEC FFT) += $(FATE_FFT) $(FATE_FFT_FIXED)
|
2012-01-11 12:42:17 +00:00
|
|
|
fate-fft: $(FATE_FFT) $(FATE_FFT_FIXED)
|