comparison layer/SpectrogramLayer.h @ 92:23d1e37bbfb4

* Make a single base Thread class for RT and non-RT threads * Pull ResizeableBitmap out from the MatrixFile's ColumnBitmap * Reorder SpectrogramLayer::paint somewhat so as to improve cache hit ratio in the FFT file cache
author Chris Cannam
date Mon, 08 May 2006 16:44:47 +0000
parents 7d06e7cf5d5a
children c7ade7ea3cfe
comparison
equal deleted inserted replaced
91:ed01c1261b55 92:23d1e37bbfb4
17 #define _SPECTROGRAM_LAYER_H_ 17 #define _SPECTROGRAM_LAYER_H_
18 18
19 #include "base/Layer.h" 19 #include "base/Layer.h"
20 #include "base/Window.h" 20 #include "base/Window.h"
21 #include "base/RealTime.h" 21 #include "base/RealTime.h"
22 #include "base/NonRTThread.h" 22 #include "base/Thread.h"
23 #include "model/PowerOfSqrtTwoZoomConstraint.h" 23 #include "model/PowerOfSqrtTwoZoomConstraint.h"
24 #include "model/DenseTimeValueModel.h" 24 #include "model/DenseTimeValueModel.h"
25 25
26 #include <QMutex> 26 #include <QMutex>
27 #include <QWaitCondition> 27 #include <QWaitCondition>
238 ColourMap m_colourMap; 238 ColourMap m_colourMap;
239 FFTCacheBase *m_cache; 239 FFTCacheBase *m_cache;
240 FFTCacheBase *m_writeCache; 240 FFTCacheBase *m_writeCache;
241 bool m_cacheInvalid; 241 bool m_cacheInvalid;
242 242
243 class CacheFillThread : public NonRTThread 243 class CacheFillThread : public Thread
244 { 244 {
245 public: 245 public:
246 CacheFillThread(SpectrogramLayer &layer) : 246 CacheFillThread(SpectrogramLayer &layer) :
247 m_layer(layer), m_fillExtent(0) { } 247 m_layer(layer), m_fillExtent(0) { }
248 248