Mercurial > hg > constant-q-cpp
annotate src/ext/kissfft/tools/kiss_fftndr.h @ 196:da283326bcd3 tip master
Update plugin versions in RDF
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Fri, 28 Feb 2020 09:43:02 +0000 |
parents | 5ed6e970541b |
children |
rev | line source |
---|---|
c@174 | 1 #ifndef KISS_NDR_H |
c@174 | 2 #define KISS_NDR_H |
c@174 | 3 |
c@174 | 4 #include "kiss_fft.h" |
c@174 | 5 #include "kiss_fftr.h" |
c@174 | 6 #include "kiss_fftnd.h" |
c@174 | 7 |
c@174 | 8 #ifdef __cplusplus |
c@174 | 9 extern "C" { |
c@174 | 10 #endif |
c@174 | 11 |
c@174 | 12 typedef struct kiss_fftndr_state *kiss_fftndr_cfg; |
c@174 | 13 |
c@174 | 14 |
c@174 | 15 kiss_fftndr_cfg kiss_fftndr_alloc(const int *dims,int ndims,int inverse_fft,void*mem,size_t*lenmem); |
c@174 | 16 /* |
c@174 | 17 dims[0] must be even |
c@174 | 18 |
c@174 | 19 If you don't care to allocate space, use mem = lenmem = NULL |
c@174 | 20 */ |
c@174 | 21 |
c@174 | 22 |
c@174 | 23 void kiss_fftndr( |
c@174 | 24 kiss_fftndr_cfg cfg, |
c@174 | 25 const kiss_fft_scalar *timedata, |
c@174 | 26 kiss_fft_cpx *freqdata); |
c@174 | 27 /* |
c@174 | 28 input timedata has dims[0] X dims[1] X ... X dims[ndims-1] scalar points |
c@174 | 29 output freqdata has dims[0] X dims[1] X ... X dims[ndims-1]/2+1 complex points |
c@174 | 30 */ |
c@174 | 31 |
c@174 | 32 void kiss_fftndri( |
c@174 | 33 kiss_fftndr_cfg cfg, |
c@174 | 34 const kiss_fft_cpx *freqdata, |
c@174 | 35 kiss_fft_scalar *timedata); |
c@174 | 36 /* |
c@174 | 37 input and output dimensions are the exact opposite of kiss_fftndr |
c@174 | 38 */ |
c@174 | 39 |
c@174 | 40 |
c@174 | 41 #define kiss_fftr_free free |
c@174 | 42 |
c@174 | 43 #ifdef __cplusplus |
c@174 | 44 } |
c@174 | 45 #endif |
c@174 | 46 |
c@174 | 47 #endif |