6349e5ac75aca322e2ab6a818d18a26788a19a1c
1 define DEF_FFT
2 FATE_DCT-\$(CONFIG_DCT) += fate-dct1d-\$(1) fate-idct1d-\$(1)
3 FATE_FFT-\$(CONFIG_FFT) += fate-fft-\$(1) fate-ifft-\$(1)
4 FATE_MDCT-\$(CONFIG_MDCT) += fate-mdct-\$(1) fate-imdct-\$(1)
5 FATE_RDFT-\$(CONFIG_RDFT) += fate-rdft-\$(1) fate-irdft-\$(1)
7 fate-fft-\$(N): ARGS = -n\$(1)
8 fate-ifft-\$(N): ARGS = -n\$(1) -i
9 fate-mdct-\$(N): ARGS = -n\$(1) -m
10 fate-imdct-\$(N): ARGS = -n\$(1) -m -i
11 fate-rdft-\$(N): ARGS = -n\$(1) -r
12 fate-irdft-\$(N): ARGS = -n\$(1) -r -i
13 fate-dct1d-\$(N): ARGS = -n\$(1) -d
14 fate-idct1d-\$(N): ARGS = -n\$(1) -d -i
15 endef
17 \$(foreach N, 4 5 6 7 8 9 10 11 12, \$(eval \$(call DEF_FFT,\$(N))))
19 fate-dct-float: \$(FATE_DCT-yes)
20 fate-fft-float: \$(FATE_FFT-yes)
21 fate-mdct-float: \$(FATE_MDCT-yes)
22 fate-rdft-float: \$(FATE_RDFT-yes)
24 FATE_FFT_ALL = \$(FATE_DCT-yes) \$(FATE_FFT-yes) \$(FATE_MDCT-yes) \$(FATE_RDFT-yes)
26 \$(FATE_FFT_ALL): libavcodec/fft-test\$(EXESUF)
27 \$(FATE_FFT_ALL): CMD = run libavcodec/fft-test \$(CPUFLAGS:%=-c%) \$(ARGS)
29 define DEF_FFT_FIXED
30 FATE_FFT_FIXED-\$(CONFIG_FFT) += fate-fft-fixed-\$(1) fate-ifft-fixed-\$(1)
31 FATE_MDCT_FIXED-\$(CONFIG_MDCT) += fate-mdct-fixed-\$(1) fate-imdct-fixed-\$(1)
33 fate-fft-fixed-\$(1): ARGS = -n\$(1)
34 fate-ifft-fixed-\$(1): ARGS = -n\$(1) -i
35 fate-mdct-fixed-\$(1): ARGS = -n\$(1) -m
36 fate-imdct-fixed-\$(1): ARGS = -n\$(1) -m -i
37 endef
39 \$(foreach N, 4 5 6 7 8 9 10 11 12, \$(eval \$(call DEF_FFT_FIXED,\$(N))))
41 fate-fft-fixed: \$(FATE_FFT_FIXED-yes)
42 fate-mdct-fixed: \$(FATE_MDCT_FIXED-yes)
44 FATE_FFT_FIXED_ALL = \$(FATE_FFT_FIXED-yes) \$(FATE_MDCT_FIXED-yes)
46 \$(FATE_FFT_FIXED_ALL): libavcodec/fft-fixed-test\$(EXESUF)
47 \$(FATE_FFT_FIXED_ALL): CMD = run libavcodec/fft-fixed-test \$(CPUFLAGS:%=-c%) \$(ARGS)
49 \$(FATE_FFT_ALL) \$(FATE_FFT_FIXED_ALL): REF = /dev/null
51 fate-dct: fate-dct-float
52 fate-fft: fate-fft-float fate-fft-fixed
53 fate-mdct: fate-mdct-float fate-mdct-fixed
54 fate-rdft: fate-rdft-float
56 FATE-\$(CONFIG_AVCODEC) += \$(FATE_FFT_ALL) \$(FATE_FFT_FIXED_ALL)
57 fate-fft-all: \$(FATE_FFT_ALL) \$(FATE_FFT_FIXED_ALL)