summaryrefslogtreecommitdiff
path: root/kiss_fftr.h
diff options
context:
space:
mode:
Diffstat (limited to 'kiss_fftr.h')
-rw-r--r--kiss_fftr.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/kiss_fftr.h b/kiss_fftr.h
index 72e5a57..4ab52db 100644
--- a/kiss_fftr.h
+++ b/kiss_fftr.h
@@ -6,33 +6,34 @@
6extern "C" { 6extern "C" {
7#endif 7#endif
8 8
9 9/*
10/* 10
11 11 Real optimized version can save about 45% cpu time vs. complex fft of a real
12 Real optimized version can save about 45% cpu time vs. complex fft of a real seq. 12 seq.
13
14
13 15
14
15
16 */ 16 */
17 17
18typedef struct kiss_fftr_state *kiss_fftr_cfg; 18typedef struct kiss_fftr_state *kiss_fftr_cfg;
19 19
20 20kiss_fftr_cfg kiss_fftr_alloc(int nfft, int inverse_fft, void *mem,
21kiss_fftr_cfg kiss_fftr_alloc(int nfft,int inverse_fft,void * mem, size_t * lenmem); 21 size_t *lenmem);
22/* 22/*
23 nfft must be even 23 nfft must be even
24 24
25 If you don't care to allocate space, use mem = lenmem = NULL 25 If you don't care to allocate space, use mem = lenmem = NULL
26*/ 26*/
27 27
28 28void kiss_fftr(kiss_fftr_cfg cfg, const kiss_fft_scalar *timedata,
29void kiss_fftr(kiss_fftr_cfg cfg,const kiss_fft_scalar *timedata,kiss_fft_cpx *freqdata); 29 kiss_fft_cpx *freqdata);
30/* 30/*
31 input timedata has nfft scalar points 31 input timedata has nfft scalar points
32 output freqdata has nfft/2+1 complex points 32 output freqdata has nfft/2+1 complex points
33*/ 33*/
34 34
35void kiss_fftri(kiss_fftr_cfg cfg,const kiss_fft_cpx *freqdata,kiss_fft_scalar *timedata); 35void kiss_fftri(kiss_fftr_cfg cfg, const kiss_fft_cpx *freqdata,
36 kiss_fft_scalar *timedata);
36/* 37/*
37 input freqdata has nfft/2+1 complex points 38 input freqdata has nfft/2+1 complex points
38 output timedata has nfft scalar points 39 output timedata has nfft scalar points