comparison src/dmfft.h @ 812:1e5cf1144f36

Move library source under src/ subdirectory.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 16 May 2014 03:22:39 +0300
parents dmfft.h@88ee233bf849
children
comparison
equal deleted inserted replaced
811:aebc2f8b2c2d 812:1e5cf1144f36
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 int dmConvertFFTtoFreqDomain(DMFFTContext *ctx, DMFFTType *buffer,
23 DMFFTType *real, DMFFTType *imag);
24
25 int dmConvertFFTtoFreqAndPower(DMFFTContext *ctx, DMFFTType *buffer,
26 DMFFTType *real, DMFFTType *imag, DMFFTType *power, const DMFFTType scale);
27
28 int dmConvertFFTtoPowerAndSum(DMFFTContext *ctx, DMFFTType *buffer,
29 DMFFTType *power, const DMFFTType pscale, DMFFTType *sum, const DMFFTType sscale);
30
31 int dmConvertFFTtoTimeDomain(DMFFTContext *ctx, DMFFTType *buffer, DMFFTType *tdom);
32
33
34 #endif // DMFFT_H