Mercurial > hg > svcore
comparison data/fft/FFTMemoryCache.cpp @ 359:824ee993ca8d
* merge revision 842 from spectrogram-rejig -- attempt to improve disk/memory
allocation in ffts
author | Chris Cannam |
---|---|
date | Tue, 22 Jan 2008 23:11:48 +0000 |
parents | aa8dbac62024 |
children | 7cc6b7b0d819 |
comparison
equal
deleted
inserted
replaced
358:9203b82a8c53 | 359:824ee993ca8d |
---|---|
57 } | 57 } |
58 | 58 |
59 void | 59 void |
60 FFTMemoryCache::resize(size_t width, size_t height) | 60 FFTMemoryCache::resize(size_t width, size_t height) |
61 { | 61 { |
62 // std::cerr << "FFTMemoryCache[" << this << "]::resize(" << width << "x" << height << " = " << width*height << ")" << std::endl; | 62 std::cerr << "FFTMemoryCache[" << this << "]::resize(" << width << "x" << height << " = " << width*height << ")" << std::endl; |
63 | 63 |
64 if (m_width == width && m_height == height) return; | 64 if (m_width == width && m_height == height) return; |
65 | 65 |
66 if (m_storageType == Compact) { | 66 if (m_storageType == Compact) { |
67 resize(m_magnitude, width, height); | 67 resize(m_magnitude, width, height); |