fft.mak 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. define DEF_FFT
  2. FATE_FFT-$(CONFIG_DCT) += fate-dct1d-$(1) fate-idct1d-$(1)
  3. FATE_FFT-$(CONFIG_FFT) += fate-fft-$(1) fate-ifft-$(1)
  4. FATE_FFT-$(CONFIG_MDCT) += fate-mdct-$(1) fate-imdct-$(1)
  5. FATE_FFT-$(CONFIG_RDFT) += fate-rdft-$(1) fate-irdft-$(1)
  6. fate-fft-$(N): ARGS = -n$(1)
  7. fate-ifft-$(N): ARGS = -n$(1) -i
  8. fate-mdct-$(N): ARGS = -n$(1) -m
  9. fate-imdct-$(N): ARGS = -n$(1) -m -i
  10. fate-rdft-$(N): ARGS = -n$(1) -r
  11. fate-irdft-$(N): ARGS = -n$(1) -r -i
  12. fate-dct1d-$(N): ARGS = -n$(1) -d
  13. fate-idct1d-$(N): ARGS = -n$(1) -d -i
  14. endef
  15. $(foreach N, 4 5 6 7 8 9 10 11 12, $(eval $(call DEF_FFT,$(N))))
  16. fate-fft-float: $(FATE_FFT-yes)
  17. $(FATE_FFT-yes): libavcodec/fft-test$(EXESUF)
  18. $(FATE_FFT-yes): CMD = run libavcodec/fft-test $(CPUFLAGS:%=-c%) $(ARGS)
  19. $(FATE_FFT-yes): REF = /dev/null
  20. define DEF_FFT_FIXED
  21. FATE_FFT_FIXED-$(CONFIG_FFT) += fate-fft-fixed-$(1) fate-ifft-fixed-$(1)
  22. FATE_FFT_FIXED-$(CONFIG_MDCT) += fate-mdct-fixed-$(1) fate-imdct-fixed-$(1)
  23. fate-fft-fixed-$(1): ARGS = -n$(1)
  24. fate-ifft-fixed-$(1): ARGS = -n$(1) -i
  25. fate-mdct-fixed-$(1): ARGS = -n$(1) -m
  26. fate-imdct-fixed-$(1): ARGS = -n$(1) -m -i
  27. endef
  28. $(foreach N, 4 5 6 7 8 9 10 11 12, $(eval $(call DEF_FFT_FIXED,$(N))))
  29. fate-fft-fixed: $(FATE_FFT_FIXED-yes)
  30. $(FATE_FFT_FIXED-yes): libavcodec/fft-fixed-test$(EXESUF)
  31. $(FATE_FFT_FIXED-yes): CMD = run libavcodec/fft-fixed-test $(CPUFLAGS:%=-c%) $(ARGS)
  32. $(FATE_FFT_FIXED-yes): REF = /dev/null
  33. define DEF_FFT_FIXED32
  34. FATE_FFT_FIXED32 += fate-fft-fixed32-$(1) fate-ifft-fixed32-$(1) \
  35. fate-mdct-fixed32-$(1) fate-imdct-fixed32-$(1)
  36. fate-fft-fixed32-$(1): ARGS = -n$(1)
  37. fate-ifft-fixed32-$(1): ARGS = -n$(1) -i
  38. #fate-mdct-fixed32-$(1): ARGS = -n$(1) -m
  39. fate-imdct-fixed32-$(1): ARGS = -n$(1) -m -i
  40. endef
  41. $(foreach N, 4 5 6 7 8 9 10 11 12, $(eval $(call DEF_FFT_FIXED32,$(N))))
  42. fate-fft-fixed32-test: $(FATE_FFT_FIXED32)
  43. $(FATE_FFT_FIXED32): libavcodec/fft-fixed32-test$(EXESUF)
  44. $(FATE_FFT_FIXED32): CMD = run libavcodec/fft-fixed32-test $(CPUFLAGS:%=-c%) $(ARGS)
  45. $(FATE_FFT_FIXED32): REF = /dev/null
  46. FATE-$(call ALLYES, AVCODEC FFT MDCT) += $(FATE_FFT-yes) $(FATE_FFT_FIXED-yes) $(FATE_FFT_FIXED32)
  47. fate-fft: $(FATE_FFT-yes) $(FATE_FFT_FIXED-yes) $(FATE_FFT_FIXED32)