diff layer/SpectrogramLayer.h @ 215:d2334a77db73

* Update to use new vamp-hostsdk instead of vamp-sdk * Make spectrogram adapt its paint block size depending on how long it actually takes to draw * Some thread debugging infrastructure
author Chris Cannam
date Fri, 02 Mar 2007 13:01:41 +0000
parents 748985c7e2c1
children 34bbbcb3c01f
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h	Thu Mar 01 17:12:50 2007 +0000
+++ b/layer/SpectrogramLayer.h	Fri Mar 02 13:01:41 2007 +0000
@@ -129,8 +129,8 @@
     enum ColourScale {
 	LinearColourScale,
 	MeterColourScale,
+        dBSquaredColourScale,
 	dBColourScale,
-        dBSquaredColourScale,
 	PhaseColourScale
     };
 
@@ -232,8 +232,11 @@
     size_t              m_zeroPadLevel;
     size_t              m_fftSize;
     float               m_gain;
+    float               m_initialGain;
     float               m_threshold;
+    float               m_initialThreshold;
     int                 m_colourRotation;
+    int                 m_initialRotation;
     size_t              m_minFrequency;
     size_t              m_maxFrequency;
     size_t              m_initialMaxFrequency;
@@ -246,6 +249,9 @@
     bool                m_normalizeVisibleArea;
     int                 m_lastEmittedZoomStep;
 
+    mutable int         m_lastPaintBlockWidth;
+    mutable RealTime    m_lastPaintTime;
+
     enum { NO_VALUE = 0 }; // colour index for unused pixels
 
     class Palette