comparison 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
comparison
equal deleted inserted replaced
214:8520b7918104 215:d2334a77db73
127 size_t getMaxFrequency() const; 127 size_t getMaxFrequency() const;
128 128
129 enum ColourScale { 129 enum ColourScale {
130 LinearColourScale, 130 LinearColourScale,
131 MeterColourScale, 131 MeterColourScale,
132 dBSquaredColourScale,
132 dBColourScale, 133 dBColourScale,
133 dBSquaredColourScale,
134 PhaseColourScale 134 PhaseColourScale
135 }; 135 };
136 136
137 /** 137 /**
138 * Specify the scale for sample levels. See WaveformLayer for 138 * Specify the scale for sample levels. See WaveformLayer for
230 WindowType m_windowType; 230 WindowType m_windowType;
231 size_t m_windowHopLevel; 231 size_t m_windowHopLevel;
232 size_t m_zeroPadLevel; 232 size_t m_zeroPadLevel;
233 size_t m_fftSize; 233 size_t m_fftSize;
234 float m_gain; 234 float m_gain;
235 float m_initialGain;
235 float m_threshold; 236 float m_threshold;
237 float m_initialThreshold;
236 int m_colourRotation; 238 int m_colourRotation;
239 int m_initialRotation;
237 size_t m_minFrequency; 240 size_t m_minFrequency;
238 size_t m_maxFrequency; 241 size_t m_maxFrequency;
239 size_t m_initialMaxFrequency; 242 size_t m_initialMaxFrequency;
240 ColourScale m_colourScale; 243 ColourScale m_colourScale;
241 int m_colourMap; 244 int m_colourMap;
243 FrequencyScale m_frequencyScale; 246 FrequencyScale m_frequencyScale;
244 BinDisplay m_binDisplay; 247 BinDisplay m_binDisplay;
245 bool m_normalizeColumns; 248 bool m_normalizeColumns;
246 bool m_normalizeVisibleArea; 249 bool m_normalizeVisibleArea;
247 int m_lastEmittedZoomStep; 250 int m_lastEmittedZoomStep;
251
252 mutable int m_lastPaintBlockWidth;
253 mutable RealTime m_lastPaintTime;
248 254
249 enum { NO_VALUE = 0 }; // colour index for unused pixels 255 enum { NO_VALUE = 0 }; // colour index for unused pixels
250 256
251 class Palette 257 class Palette
252 { 258 {