Mercurial > hg > dmlib
annotate dmfft.h @ 780:88ee233bf849
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 29 May 2013 15:16:43 +0300 |
parents | 59df354b99cc |
children |
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 | |
750
e6d807ce715b
Add two more functions for converting FFT data to frequency and time
Matti Hamalainen <ccr@tnsp.org>
parents:
749
diff
changeset
|
18 int dmInitializeFFT(DMFFTContext *, int); |
e6d807ce715b
Add two more functions for converting FFT data to frequency and time
Matti Hamalainen <ccr@tnsp.org>
parents:
749
diff
changeset
|
19 void dmEndFFT(DMFFTContext *); |
e6d807ce715b
Add two more functions for converting FFT data to frequency and time
Matti Hamalainen <ccr@tnsp.org>
parents:
749
diff
changeset
|
20 int dmRealFFT(DMFFTContext *, DMFFTType *); |
780 | 21 |
772
59df354b99cc
Add some utility functions in the FFT module.
Matti Hamalainen <ccr@tnsp.org>
parents:
750
diff
changeset
|
22 int dmConvertFFTtoFreqDomain(DMFFTContext *ctx, DMFFTType *buffer, |
59df354b99cc
Add some utility functions in the FFT module.
Matti Hamalainen <ccr@tnsp.org>
parents:
750
diff
changeset
|
23 DMFFTType *real, DMFFTType *imag); |
780 | 24 |
772
59df354b99cc
Add some utility functions in the FFT module.
Matti Hamalainen <ccr@tnsp.org>
parents:
750
diff
changeset
|
25 int dmConvertFFTtoFreqAndPower(DMFFTContext *ctx, DMFFTType *buffer, |
59df354b99cc
Add some utility functions in the FFT module.
Matti Hamalainen <ccr@tnsp.org>
parents:
750
diff
changeset
|
26 DMFFTType *real, DMFFTType *imag, DMFFTType *power, const DMFFTType scale); |
780 | 27 |
772
59df354b99cc
Add some utility functions in the FFT module.
Matti Hamalainen <ccr@tnsp.org>
parents:
750
diff
changeset
|
28 int dmConvertFFTtoPowerAndSum(DMFFTContext *ctx, DMFFTType *buffer, |
59df354b99cc
Add some utility functions in the FFT module.
Matti Hamalainen <ccr@tnsp.org>
parents:
750
diff
changeset
|
29 DMFFTType *power, const DMFFTType pscale, DMFFTType *sum, const DMFFTType sscale); |
780 | 30 |
750
e6d807ce715b
Add two more functions for converting FFT data to frequency and time
Matti Hamalainen <ccr@tnsp.org>
parents:
749
diff
changeset
|
31 int dmConvertFFTtoTimeDomain(DMFFTContext *ctx, DMFFTType *buffer, DMFFTType *tdom); |
749 | 32 |
33 | |
34 #endif // DMFFT_H |