annotate src/vamp-sdk/ext/kiss_fftr.h @ 497:5d9af3140f05

More (off-by-default) debug output
author Chris Cannam <cannam@all-day-breakfast.com>
date Thu, 25 May 2017 10:25:05 +0100
parents 25e023bad200
children
rev   line source
Chris@434 1 #ifndef KISS_FTR_H
Chris@434 2 #define KISS_FTR_H
Chris@434 3
Chris@434 4 #include "kiss_fft.h"
Chris@493 5
Chris@493 6 #ifndef KISSFFT_USE_CPP_LINKAGE
Chris@434 7 #ifdef __cplusplus
Chris@434 8 extern "C" {
Chris@434 9 #endif
Chris@493 10 #endif
Chris@434 11
Chris@434 12
Chris@434 13 /*
Chris@434 14
Chris@434 15 Real optimized version can save about 45% cpu time vs. complex fft of a real seq.
Chris@434 16
Chris@434 17
Chris@434 18
Chris@434 19 */
Chris@434 20
Chris@434 21 typedef struct kiss_fftr_state *kiss_fftr_cfg;
Chris@434 22
Chris@434 23
Chris@434 24 kiss_fftr_cfg kiss_fftr_alloc(int nfft,int inverse_fft,void * mem, size_t * lenmem);
Chris@434 25 /*
Chris@434 26 nfft must be even
Chris@434 27
Chris@434 28 If you don't care to allocate space, use mem = lenmem = NULL
Chris@434 29 */
Chris@434 30
Chris@434 31
Chris@434 32 void kiss_fftr(kiss_fftr_cfg cfg,const kiss_fft_scalar *timedata,kiss_fft_cpx *freqdata);
Chris@434 33 /*
Chris@434 34 input timedata has nfft scalar points
Chris@434 35 output freqdata has nfft/2+1 complex points
Chris@434 36 */
Chris@434 37
Chris@434 38 void kiss_fftri(kiss_fftr_cfg cfg,const kiss_fft_cpx *freqdata,kiss_fft_scalar *timedata);
Chris@434 39 /*
Chris@434 40 input freqdata has nfft/2+1 complex points
Chris@434 41 output timedata has nfft scalar points
Chris@434 42 */
Chris@434 43
Chris@434 44 #define kiss_fftr_free free
Chris@434 45
Chris@493 46 #ifndef KISSFFT_USE_CPP_LINKAGE
Chris@434 47 #ifdef __cplusplus
Chris@434 48 }
Chris@434 49 #endif
Chris@434 50 #endif
Chris@493 51
Chris@493 52 #ifdef KISSFFT_USE_CPP_LINKAGE
Chris@493 53 #define KISSFFT_USED_CPP_LINKAGE 1
Chris@493 54 #endif
Chris@493 55
Chris@493 56 #endif