ex

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Committer:
TMBOY
Date:
Tue Jul 18 16:54:45 2017 +0800
Revision:
47:9e361da97763
?

Who changed what in which revision?

UserRevisionLine numberNew contents of line
TMBOY 47:9e361da97763 1 #ifndef KISS_FTR_H
TMBOY 47:9e361da97763 2 #define KISS_FTR_H
TMBOY 47:9e361da97763 3
TMBOY 47:9e361da97763 4 #include "kiss_fft.h"
TMBOY 47:9e361da97763 5 #ifdef __cplusplus
TMBOY 47:9e361da97763 6 extern "C" {
TMBOY 47:9e361da97763 7 #endif
TMBOY 47:9e361da97763 8
TMBOY 47:9e361da97763 9
TMBOY 47:9e361da97763 10 /*
TMBOY 47:9e361da97763 11
TMBOY 47:9e361da97763 12 Real optimized version can save about 45% cpu time vs. complex fft of a real seq.
TMBOY 47:9e361da97763 13
TMBOY 47:9e361da97763 14
TMBOY 47:9e361da97763 15
TMBOY 47:9e361da97763 16 */
TMBOY 47:9e361da97763 17
TMBOY 47:9e361da97763 18 typedef struct kiss_fftr_state *kiss_fftr_cfg;
TMBOY 47:9e361da97763 19
TMBOY 47:9e361da97763 20
TMBOY 47:9e361da97763 21 kiss_fftr_cfg kiss_fftr_alloc(int nfft,int inverse_fft,void * mem, size_t * lenmem);
TMBOY 47:9e361da97763 22 /*
TMBOY 47:9e361da97763 23 nfft must be even
TMBOY 47:9e361da97763 24
TMBOY 47:9e361da97763 25 If you don't care to allocate space, use mem = lenmem = NULL
TMBOY 47:9e361da97763 26 */
TMBOY 47:9e361da97763 27
TMBOY 47:9e361da97763 28
TMBOY 47:9e361da97763 29 void kiss_fftr(kiss_fftr_cfg cfg,const kiss_fft_scalar *timedata,kiss_fft_cpx *freqdata);
TMBOY 47:9e361da97763 30 /*
TMBOY 47:9e361da97763 31 input timedata has nfft scalar points
TMBOY 47:9e361da97763 32 output freqdata has nfft/2+1 complex points
TMBOY 47:9e361da97763 33 */
TMBOY 47:9e361da97763 34
TMBOY 47:9e361da97763 35 void kiss_fftr2(kiss_fftr_cfg st,const kiss_fft_scalar *timedata,kiss_fft_scalar *freqdata);
TMBOY 47:9e361da97763 36
TMBOY 47:9e361da97763 37 void kiss_fftri(kiss_fftr_cfg cfg,const kiss_fft_cpx *freqdata,kiss_fft_scalar *timedata);
TMBOY 47:9e361da97763 38
TMBOY 47:9e361da97763 39 void kiss_fftri2(kiss_fftr_cfg st,const kiss_fft_scalar *freqdata, kiss_fft_scalar *timedata);
TMBOY 47:9e361da97763 40
TMBOY 47:9e361da97763 41 /*
TMBOY 47:9e361da97763 42 input freqdata has nfft/2+1 complex points
TMBOY 47:9e361da97763 43 output timedata has nfft scalar points
TMBOY 47:9e361da97763 44 */
TMBOY 47:9e361da97763 45
TMBOY 47:9e361da97763 46 #define kiss_fftr_free speex_free
TMBOY 47:9e361da97763 47
TMBOY 47:9e361da97763 48 #ifdef __cplusplus
TMBOY 47:9e361da97763 49 }
TMBOY 47:9e361da97763 50 #endif
TMBOY 47:9e361da97763 51 #endif