Mercurial > hg > dmlib
diff dmfft.h @ 772:59df354b99cc
Add some utility functions in the FFT module.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 10 May 2013 12:34:45 +0300 |
parents | e6d807ce715b |
children | 88ee233bf849 |
line wrap: on
line diff
--- a/dmfft.h Thu May 09 19:58:06 2013 +0300 +++ b/dmfft.h Fri May 10 12:34:45 2013 +0300 @@ -18,7 +18,12 @@ int dmInitializeFFT(DMFFTContext *, int); void dmEndFFT(DMFFTContext *); int dmRealFFT(DMFFTContext *, DMFFTType *); -int dmConvertFFTtoFreqDomain(DMFFTContext *ctx, DMFFTType *buffer, DMFFTType *real, DMFFTType *imag); +int dmConvertFFTtoFreqDomain(DMFFTContext *ctx, DMFFTType *buffer, + DMFFTType *real, DMFFTType *imag); +int dmConvertFFTtoFreqAndPower(DMFFTContext *ctx, DMFFTType *buffer, + DMFFTType *real, DMFFTType *imag, DMFFTType *power, const DMFFTType scale); +int dmConvertFFTtoPowerAndSum(DMFFTContext *ctx, DMFFTType *buffer, + DMFFTType *power, const DMFFTType pscale, DMFFTType *sum, const DMFFTType sscale); int dmConvertFFTtoTimeDomain(DMFFTContext *ctx, DMFFTType *buffer, DMFFTType *tdom);