comparison data/fft/FFTFileCache.h @ 335:02d2ad95ea52 spectrogram-cache-rejig

* Get storage advice for each cache in an FFT data server. Allows us to be more confident about the actual memory situation and cut over from memory to disc part way through an FFT calculation if necessary. StorageAdviser is now a bit too optimistic though (it's too keen to allocate large numbers of small blocks in memory).
author Chris Cannam
date Tue, 13 Nov 2007 13:54:10 +0000
parents 2268963dabd1
children 115f60df1e4d
comparison
equal deleted inserted replaced
334:aa8dbac62024 335:02d2ad95ea52
55 virtual void setColumnAt(size_t x, float *reals, float *imags); 55 virtual void setColumnAt(size_t x, float *reals, float *imags);
56 56
57 virtual void suspend() { m_mfc->suspend(); } 57 virtual void suspend() { m_mfc->suspend(); }
58 58
59 static size_t getCacheSize(size_t width, size_t height, StorageType type); 59 static size_t getCacheSize(size_t width, size_t height, StorageType type);
60
61 virtual Type getType() { return FileCache; }
60 62
61 protected: 63 protected:
62 char *m_writebuf; 64 char *m_writebuf;
63 mutable char *m_readbuf; 65 mutable char *m_readbuf;
64 mutable size_t m_readbufCol; 66 mutable size_t m_readbufCol;