annotate src/dmfft.h @ 2295:046056326041

Show error code message when bitmap image conversion fails.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 03 Jul 2019 13:57:42 +0300
parents 1e5cf1144f36
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
749
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #ifndef DMFFT_H
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 #define DMFFT_H 1
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 #include "dmlib.h"
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 typedef double DMFFTType;
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 typedef struct
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 {
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 int npoints;
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 DMFFTType *sinTable;
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 int *breversed;
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 } DMFFTContext;
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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
88ee233bf849 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 772
diff changeset
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
88ee233bf849 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 772
diff changeset
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
88ee233bf849 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 772
diff changeset
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
88ee233bf849 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 772
diff changeset
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
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
32
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33
44138892c784 Add FFT routines.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34 #endif // DMFFT_H