annotate 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
rev   line source
c@225 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
c@225 2
c@225 3 /*
c@225 4 QM DSP Library
c@225 5
c@225 6 Centre for Digital Music, Queen Mary, University of London.
c@225 7 This file is based on Don Cross's public domain FFT implementation.
c@225 8 */
c@225 9
c@225 10 #ifndef FFT_H
c@225 11 #define FFT_H
c@225 12
c@225 13 class FFT
c@225 14 {
c@225 15 public:
c@225 16 static void process(unsigned int p_nSamples, bool p_bInverseTransform,
c@225 17 double *p_lpRealIn, double *p_lpImagIn,
c@225 18 double *p_lpRealOut, double *p_lpImagOut);
c@225 19 FFT();
c@225 20 virtual ~FFT();
c@225 21
c@225 22 protected:
c@225 23 static unsigned int reverseBits(unsigned int p_nIndex, unsigned int p_nBits);
c@225 24 static unsigned int numberOfBitsNeeded( unsigned int p_nSamples );
c@225 25 static bool isPowerOfTwo( unsigned int p_nX );
c@225 26 };
c@225 27
c@225 28 #endif