Blame thirdparty/kiss_fft130/tools/kiss_fftr.h
|
shun_iwasawa |
a35b8f |
#ifndef KISS_FTR_H
|
|
shun_iwasawa |
a35b8f |
#define KISS_FTR_H
|
|
shun_iwasawa |
a35b8f |
|
|
shun_iwasawa |
a35b8f |
#include "kiss_fft.h"
|
|
shun_iwasawa |
a35b8f |
#ifdef __cplusplus
|
|
shun_iwasawa |
a35b8f |
extern "C" {
|
|
shun_iwasawa |
a35b8f |
#endif
|
|
shun_iwasawa |
a35b8f |
|
|
shun_iwasawa |
a35b8f |
|
|
shun_iwasawa |
a35b8f |
/*
|
|
shun_iwasawa |
a35b8f |
|
|
shun_iwasawa |
a35b8f |
Real optimized version can save about 45% cpu time vs. complex fft of a real seq.
|
|
shun_iwasawa |
a35b8f |
|
|
shun_iwasawa |
a35b8f |
|
|
shun_iwasawa |
a35b8f |
|
|
shun_iwasawa |
a35b8f |
*/
|
|
shun_iwasawa |
a35b8f |
|
|
shun_iwasawa |
a35b8f |
typedef struct kiss_fftr_state *kiss_fftr_cfg;
|
|
shun_iwasawa |
a35b8f |
|
|
shun_iwasawa |
a35b8f |
|
|
shun_iwasawa |
a35b8f |
kiss_fftr_cfg kiss_fftr_alloc(int nfft,int inverse_fft,void * mem, size_t * lenmem);
|
|
shun_iwasawa |
a35b8f |
/*
|
|
shun_iwasawa |
a35b8f |
nfft must be even
|
|
shun_iwasawa |
a35b8f |
|
|
shun_iwasawa |
a35b8f |
If you don't care to allocate space, use mem = lenmem = NULL
|
|
shun_iwasawa |
a35b8f |
*/
|
|
shun_iwasawa |
a35b8f |
|
|
shun_iwasawa |
a35b8f |
|
|
shun_iwasawa |
a35b8f |
void kiss_fftr(kiss_fftr_cfg cfg,const kiss_fft_scalar *timedata,kiss_fft_cpx *freqdata);
|
|
shun_iwasawa |
a35b8f |
/*
|
|
shun_iwasawa |
a35b8f |
input timedata has nfft scalar points
|
|
shun_iwasawa |
a35b8f |
output freqdata has nfft/2+1 complex points
|
|
shun_iwasawa |
a35b8f |
*/
|
|
shun_iwasawa |
a35b8f |
|
|
shun_iwasawa |
a35b8f |
void kiss_fftri(kiss_fftr_cfg cfg,const kiss_fft_cpx *freqdata,kiss_fft_scalar *timedata);
|
|
shun_iwasawa |
a35b8f |
/*
|
|
shun_iwasawa |
a35b8f |
input freqdata has nfft/2+1 complex points
|
|
shun_iwasawa |
a35b8f |
output timedata has nfft scalar points
|
|
shun_iwasawa |
a35b8f |
*/
|
|
shun_iwasawa |
a35b8f |
|
|
shun_iwasawa |
a35b8f |
#define kiss_fftr_free free
|
|
shun_iwasawa |
a35b8f |
|
|
shun_iwasawa |
a35b8f |
#ifdef __cplusplus
|
|
shun_iwasawa |
a35b8f |
}
|
|
shun_iwasawa |
a35b8f |
#endif
|
|
shun_iwasawa |
a35b8f |
#endif
|