Mercurial > hg > svcore
diff data/fft/FFTMemoryCache.cpp @ 374:7cc6b7b0d819 sv1-v1.2pre3
* line up overview widget nicely with main pane (at least on first startup)
* fix #1878396 renaming layer seems to have no visible effect
* comment out some debug output
author | Chris Cannam |
---|---|
date | Wed, 06 Feb 2008 17:40:53 +0000 |
parents | 824ee993ca8d |
children | 115f60df1e4d |
line wrap: on
line diff
--- a/data/fft/FFTMemoryCache.cpp Wed Feb 06 16:21:29 2008 +0000 +++ b/data/fft/FFTMemoryCache.cpp Wed Feb 06 17:40:53 2008 +0000 @@ -18,6 +18,8 @@ #include <iostream> +//#define DEBUG_FFT_MEMORY_CACHE 1 + FFTMemoryCache::FFTMemoryCache(StorageType storageType) : m_width(0), m_height(0), @@ -30,13 +32,17 @@ m_factor(0), m_storageType(storageType) { +#ifdef DEBUG_FFT_MEMORY_CACHE std::cerr << "FFTMemoryCache[" << this << "]::FFTMemoryCache (type " << m_storageType << ")" << std::endl; +#endif } FFTMemoryCache::~FFTMemoryCache() { -// std::cerr << "FFTMemoryCache[" << this << "]::~FFTMemoryCache" << std::endl; +#ifdef DEBUG_FFT_MEMORY_CACHE + std::cerr << "FFTMemoryCache[" << this << "]::~FFTMemoryCache" << std::endl; +#endif for (size_t i = 0; i < m_width; ++i) { if (m_magnitude && m_magnitude[i]) free(m_magnitude[i]); @@ -59,7 +65,9 @@ void FFTMemoryCache::resize(size_t width, size_t height) { +#ifdef DEBUG_FFT_MEMORY_CACHE std::cerr << "FFTMemoryCache[" << this << "]::resize(" << width << "x" << height << " = " << width*height << ")" << std::endl; +#endif if (m_width == width && m_height == height) return; @@ -81,7 +89,9 @@ m_width = width; m_height = height; -// std::cerr << "done, width = " << m_width << " height = " << m_height << std::endl; +#ifdef DEBUG_FFT_MEMORY_CACHE + std::cerr << "done, width = " << m_width << " height = " << m_height << std::endl; +#endif } void