[Speex-dev] AEC FFT replacement for TI 55x

Jerry Trantow jtrantow at ieee.org
Sun Jan 21 19:37:32 PST 2007


I am in the process of dropping the TI DSP lib fft routines into the AEC.  

Currently, FFTWrap.c uses the USE_SMALLFT and USE_KISS_FFT to select between
two packages of FFT routines.  ]

#ifdef USE_SMALLFT
	...
#elif defined(USE_KISS_FFT)
	...
#else
	#error No other FFT implemented
#endif

My guess is that every DSP and many other processors will have their own
specific FFT and iFFT.  What method should be used to drop in a DSP specific
FFT?  
Should just use something like this for fftwrap.c?

#if defined(__TMS320C55X__)
	#include "FFT_TI55.h"
#endif

#ifdef USE_SMALLFT
	...
#elif defined(USE_KISS_FFT)
	...
#else	// Use FFTWrap_*.h file to supply processor specific functions.
	#if defined(OVERRIDE_FFT_INIT)
		void *spx_fft_init(int size) {};
	#endif
	#if defined(OVERRIDE_FFT_INIT)
		void spx_fft_destroy(void *table) {};
	#endif
	#if defined(OVERRIDE_FFT_INIT)
		void spx_fft(void *table, float *in, float *out) {};
	#endif
	#if defined(OVERRIDE_FFT_INIT)
		void spx_ifft(void *table, float *in, float *out) {};
	#endif 
#endif




More information about the Speex-dev mailing list