diff dsp/transforms/FFT.h @ 255:9edaa3ce62e8

* Make MFCC able to accept already-FFT'd input, and simplify API a bit * Add log power value to MFCC, restore windowing, and avoid some heap allocs * In HMM, bail out of iteration if loglik hits NaN
author Chris Cannam <c.cannam@qmul.ac.uk>
date Fri, 18 Jan 2008 13:24:12 +0000
parents 49844bc8a895
children 6cb2b3cd5356
line wrap: on
line diff
--- a/dsp/transforms/FFT.h	Wed Jan 16 18:02:31 2008 +0000
+++ b/dsp/transforms/FFT.h	Fri Jan 18 13:24:12 2008 +0000
@@ -13,16 +13,16 @@
 class FFT  
 {
 public:
-    static void process(unsigned int p_nSamples, bool p_bInverseTransform,
-                        double *p_lpRealIn, double *p_lpImagIn,
-                        double *p_lpRealOut, double *p_lpImagOut);
+    static void process(unsigned int nSamples, bool bInverseTransform,
+                        const double *lpRealIn, const double *lpImagIn,
+                        double *lpRealOut, double *lpImagOut);
     FFT();
     virtual ~FFT();
 
 protected:
-    static unsigned int reverseBits(unsigned int p_nIndex, unsigned int p_nBits);
-    static unsigned int numberOfBitsNeeded( unsigned int p_nSamples );
-    static bool isPowerOfTwo( unsigned int p_nX );
+    static unsigned int reverseBits(unsigned int nIndex, unsigned int nBits);
+    static unsigned int numberOfBitsNeeded( unsigned int nSamples );
+    static bool isPowerOfTwo( unsigned int nX );
 };
 
 #endif