comparison layer/SpectrogramLayer.h @ 1450:6cf3cb6641e1 single-point

Tweak peak-cache allocations etc in the hope of making long spectrograms a little faster to re-render
author Chris Cannam
date Wed, 01 May 2019 14:41:28 +0100
parents a18e78b9c78b
children 696e569ff21b
comparison
equal deleted inserted replaced
1449:ce5f80a7c697 1450:6cf3cb6641e1
309 FFTModel *m_fftModel; 309 FFTModel *m_fftModel;
310 FFTModel *getFFTModel() const { return m_fftModel; } 310 FFTModel *getFFTModel() const { return m_fftModel; }
311 Dense3DModelPeakCache *m_wholeCache; 311 Dense3DModelPeakCache *m_wholeCache;
312 Dense3DModelPeakCache *m_peakCache; 312 Dense3DModelPeakCache *m_peakCache;
313 Dense3DModelPeakCache *getPeakCache() const { return m_peakCache; } 313 Dense3DModelPeakCache *getPeakCache() const { return m_peakCache; }
314 const int m_peakCacheDivisor; 314 int m_peakCacheDivisor;
315 bool canStoreWholeCache() const; 315 void checkCacheSpace(int *suggestedPeakDivisor,
316 bool *createWholeCache) const;
316 void recreateFFTModel(); 317 void recreateFFTModel();
317 318
318 typedef std::map<int, MagnitudeRange> ViewMagMap; // key is view id 319 typedef std::map<int, MagnitudeRange> ViewMagMap; // key is view id
319 mutable ViewMagMap m_viewMags; 320 mutable ViewMagMap m_viewMags;
320 mutable ViewMagMap m_lastRenderedMags; // when in normalizeVisibleArea mode 321 mutable ViewMagMap m_lastRenderedMags; // when in normalizeVisibleArea mode