Mercurial > hg > svcore
comparison data/fft/FFTFileCache.cpp @ 170:b23eea68357e
* flesh out StorageAdviser
author | Chris Cannam |
---|---|
date | Tue, 26 Sep 2006 12:58:12 +0000 |
parents | 4b2ea82fd0ed |
children | 146eb9e35baa |
comparison
equal
deleted
inserted
replaced
169:603991c63ff6 | 170:b23eea68357e |
---|---|
284 | 284 |
285 ((float *)m_writebuf)[h * 2] = max; | 285 ((float *)m_writebuf)[h * 2] = max; |
286 m_mfc->setColumnAt(x, m_writebuf); | 286 m_mfc->setColumnAt(x, m_writebuf); |
287 } | 287 } |
288 | 288 |
289 size_t | |
290 FFTFileCache::getCacheSize(size_t width, size_t height, StorageType type) | |
291 { | |
292 return (height * 2 + 1) * width * | |
293 (type == Compact ? sizeof(uint16_t) : sizeof(float)) + | |
294 2 * sizeof(size_t); // matrix file header size | |
295 } | |
296 |