comparison src/vamp-sdk/ext/vamp_kiss_fftr.h @ 501:90571dcc371a vamp-kiss-naming

Extensively rename things in the KissFFT headers to use a Vamp prefix. The motivation is not to change anything about the Vamp SDK library builds, but to avoid confusion in case any other code (for example that pulls in the Vamp SDK as part of a wider project definition) accidentally includes these headers instead of, or as well as, some other copy of KissFFT.
author Chris Cannam
date Tue, 30 Jan 2018 09:56:46 +0000
parents src/vamp-sdk/ext/kiss_fftr.h@25e023bad200
children
comparison
equal deleted inserted replaced
500:4a86f866bb6b 501:90571dcc371a
1 #ifndef VAMP_KISS_FFTR_H
2 #define VAMP_KISS_FFTR_H
3
4 #include "vamp_kiss_fft.h"
5
6 #ifndef VAMP_KISSFFT_USE_CPP_LINKAGE
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 #endif
11
12
13 /*
14
15 Real optimized version can save about 45% cpu time vs. complex fft of a real seq.
16
17
18
19 */
20
21 typedef struct vamp_kiss_fftr_state *vamp_kiss_fftr_cfg;
22
23
24 vamp_kiss_fftr_cfg vamp_kiss_fftr_alloc(int nfft,int inverse_fft,void * mem, size_t * lenmem);
25 /*
26 nfft must be even
27
28 If you don't care to allocate space, use mem = lenmem = NULL
29 */
30
31
32 void vamp_kiss_fftr(vamp_kiss_fftr_cfg cfg,const vamp_kiss_fft_scalar *timedata,vamp_kiss_fft_cpx *freqdata);
33 /*
34 input timedata has nfft scalar points
35 output freqdata has nfft/2+1 complex points
36 */
37
38 void vamp_kiss_fftri(vamp_kiss_fftr_cfg cfg,const vamp_kiss_fft_cpx *freqdata,vamp_kiss_fft_scalar *timedata);
39 /*
40 input freqdata has nfft/2+1 complex points
41 output timedata has nfft scalar points
42 */
43
44 void vamp_kiss_fftr_free(void *);
45
46 #ifndef VAMP_KISSFFT_USE_CPP_LINKAGE
47 #ifdef __cplusplus
48 }
49 #endif
50 #endif
51
52 #ifdef VAMP_KISSFFT_USE_CPP_LINKAGE
53 #define VAMP_KISSFFT_USED_CPP_LINKAGE 1
54 #endif
55
56 #endif