Chris@501: #ifndef VAMP_KISS_FFTR_H
Chris@501: #define VAMP_KISS_FFTR_H
Chris@434: 
Chris@501: #include "vamp_kiss_fft.h"
Chris@493: 
Chris@501: #ifndef VAMP_KISSFFT_USE_CPP_LINKAGE
Chris@434: #ifdef __cplusplus
Chris@434: extern "C" {
Chris@434: #endif
Chris@493: #endif
Chris@434: 
Chris@434:     
Chris@434: /* 
Chris@434:  
Chris@434:  Real optimized version can save about 45% cpu time vs. complex fft of a real seq.
Chris@434: 
Chris@434:  
Chris@434:  
Chris@434:  */
Chris@434: 
Chris@501: typedef struct vamp_kiss_fftr_state *vamp_kiss_fftr_cfg;
Chris@434: 
Chris@434: 
Chris@501: vamp_kiss_fftr_cfg vamp_kiss_fftr_alloc(int nfft,int inverse_fft,void * mem, size_t * lenmem);
Chris@434: /*
Chris@434:  nfft must be even
Chris@434: 
Chris@434:  If you don't care to allocate space, use mem = lenmem = NULL 
Chris@434: */
Chris@434: 
Chris@434: 
Chris@501: void vamp_kiss_fftr(vamp_kiss_fftr_cfg cfg,const vamp_kiss_fft_scalar *timedata,vamp_kiss_fft_cpx *freqdata);
Chris@434: /*
Chris@434:  input timedata has nfft scalar points
Chris@434:  output freqdata has nfft/2+1 complex points
Chris@434: */
Chris@434: 
Chris@501: void vamp_kiss_fftri(vamp_kiss_fftr_cfg cfg,const vamp_kiss_fft_cpx *freqdata,vamp_kiss_fft_scalar *timedata);
Chris@434: /*
Chris@434:  input freqdata has  nfft/2+1 complex points
Chris@434:  output timedata has nfft scalar points
Chris@434: */
Chris@434: 
Chris@501: void vamp_kiss_fftr_free(void *);
Chris@434: 
Chris@501: #ifndef VAMP_KISSFFT_USE_CPP_LINKAGE
Chris@434: #ifdef __cplusplus
Chris@434: }
Chris@434: #endif
Chris@434: #endif
Chris@493: 
Chris@501: #ifdef VAMP_KISSFFT_USE_CPP_LINKAGE
Chris@501: #define VAMP_KISSFFT_USED_CPP_LINKAGE 1
Chris@493: #endif
Chris@493: 
Chris@493: #endif