Mercurial > hg > qm-dsp
comparison dsp/transforms/FFT.h @ 225:49844bc8a895
* Queen Mary C++ DSP library
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 05 Apr 2006 17:35:59 +0000 |
parents | |
children | a251fb0de594 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 225:49844bc8a895 |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 | |
3 /* | |
4 QM DSP Library | |
5 | |
6 Centre for Digital Music, Queen Mary, University of London. | |
7 This file is based on Don Cross's public domain FFT implementation. | |
8 */ | |
9 | |
10 #ifndef FFT_H | |
11 #define FFT_H | |
12 | |
13 class FFT | |
14 { | |
15 public: | |
16 static void process(unsigned int p_nSamples, bool p_bInverseTransform, | |
17 double *p_lpRealIn, double *p_lpImagIn, | |
18 double *p_lpRealOut, double *p_lpImagOut); | |
19 FFT(); | |
20 virtual ~FFT(); | |
21 | |
22 protected: | |
23 static unsigned int reverseBits(unsigned int p_nIndex, unsigned int p_nBits); | |
24 static unsigned int numberOfBitsNeeded( unsigned int p_nSamples ); | |
25 static bool isPowerOfTwo( unsigned int p_nX ); | |
26 }; | |
27 | |
28 #endif |