Mercurial > hg > dmlib
annotate dmfft.h @ 749:44138892c784
Add FFT routines.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 04 May 2013 23:29:22 +0300 |
parents | |
children | e6d807ce715b |
rev | line source |
---|---|
749 | 1 #ifndef DMFFT_H |
2 #define DMFFT_H 1 | |
3 | |
4 #include "dmlib.h" | |
5 | |
6 | |
7 typedef double DMFFTType; | |
8 | |
9 | |
10 typedef struct | |
11 { | |
12 int npoints; | |
13 DMFFTType *sinTable; | |
14 int *breversed; | |
15 } DMFFTContext; | |
16 | |
17 | |
18 int dmInitializeFFT(DMFFTContext *, int); | |
19 void dmEndFFT(DMFFTContext *); | |
20 int dmRealFFT(DMFFTContext *, DMFFTType *); | |
21 | |
22 | |
23 #endif // DMFFT_H |