Mercurial > hg > svcore
comparison data/fft/FFTMemoryCache.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 | aa8dbac62024 |
children | 115f60df1e4d |
comparison
equal
deleted
inserted
replaced
334:aa8dbac62024 | 335:02d2ad95ea52 |
---|---|
107 | 107 |
108 virtual void setColumnAt(size_t x, float *reals, float *imags); | 108 virtual void setColumnAt(size_t x, float *reals, float *imags); |
109 | 109 |
110 static size_t getCacheSize(size_t width, size_t height, StorageType type); | 110 static size_t getCacheSize(size_t width, size_t height, StorageType type); |
111 | 111 |
112 virtual Type getType() { return MemoryCache; } | |
113 | |
112 private: | 114 private: |
113 size_t m_width; | 115 size_t m_width; |
114 size_t m_height; | 116 size_t m_height; |
115 uint16_t **m_magnitude; | 117 uint16_t **m_magnitude; |
116 uint16_t **m_phase; | 118 uint16_t **m_phase; |