diff data/fft/FFTFileCache.h @ 408:115f60df1e4d

* Speed up spectrogram painting by releasing mutex in FFTDataServer while calculating data prior to writing it, and by adding whole-column value query methods to FFT objects * Add paint cache to Thumbwheel -- repaints of this widget were slowing down the whole spectrogram repaint * More uses of MutexLocker (named and with debug) and more profile points * Make startup much quicker some of the time, with OSC server in place
author Chris Cannam
date Thu, 08 May 2008 14:46:22 +0000
parents 824ee993ca8d
children f60360209e5c
line wrap: on
line diff
--- a/data/fft/FFTFileCache.h	Tue Apr 29 15:34:17 2008 +0000
+++ b/data/fft/FFTFileCache.h	Thu May 08 14:46:22 2008 +0000
@@ -24,12 +24,6 @@
 class FFTFileCache : public FFTCache
 {
 public:
-    enum StorageType {
-        Compact, // 16 bits normalized polar
-        Rectangular, // floating point real+imag
-        Polar, // floating point mag+phase
-    };
-
     FFTFileCache(QString fileBase, MatrixFile::Mode mode,
                  StorageType storageType);
     virtual ~FFTFileCache();
@@ -58,6 +52,7 @@
 
     static size_t getCacheSize(size_t width, size_t height, StorageType type);
 
+    virtual StorageType getStorageType() { return m_storageType; }
     virtual Type getType() { return FileCache; }
 
 protected: