comparison data/fft/FFTFileCacheReader.cpp @ 687:06f13a3b9e9e debug-output

Convert many cerrs to DEBUGs
author Chris Cannam
date Mon, 16 May 2011 17:19:09 +0100
parents 8accc7969c1c
children 1424aa29ae95
comparison
equal deleted inserted replaced
686:b4a8d8221eaf 687:06f13a3b9e9e
155 } 155 }
156 156
157 void 157 void
158 FFTFileCacheReader::getValuesAt(size_t x, size_t y, float &real, float &imag) const 158 FFTFileCacheReader::getValuesAt(size_t x, size_t y, float &real, float &imag) const
159 { 159 {
160 // std::cerr << "FFTFileCacheReader::getValuesAt(" << x << "," << y << ")" << std::endl; 160 // DEBUG << "FFTFileCacheReader::getValuesAt(" << x << "," << y << ")" << endl;
161 161
162 switch (m_storageType) { 162 switch (m_storageType) {
163 163
164 case FFTCache::Rectangular: 164 case FFTCache::Rectangular:
165 real = getFromReadBufStandard(x, y * 2); 165 real = getFromReadBufStandard(x, y * 2);
214 bool 214 bool
215 FFTFileCacheReader::haveSetColumnAt(size_t x) const 215 FFTFileCacheReader::haveSetColumnAt(size_t x) const
216 { 216 {
217 if (m_readbuf && m_readbufGood && 217 if (m_readbuf && m_readbufGood &&
218 (m_readbufCol == x || (m_readbufWidth > 1 && m_readbufCol+1 == x))) { 218 (m_readbufCol == x || (m_readbufWidth > 1 && m_readbufCol+1 == x))) {
219 // std::cerr << "FFTFileCacheReader::haveSetColumnAt: short-circuiting; we know about this one" << std::endl; 219 // DEBUG << "FFTFileCacheReader::haveSetColumnAt: short-circuiting; we know about this one" << endl;
220 return true; 220 return true;
221 } 221 }
222 return m_mfc->haveSetColumnAt(x); 222 return m_mfc->haveSetColumnAt(x);
223 } 223 }
224 224
234 void 234 void
235 FFTFileCacheReader::populateReadBuf(size_t x) const 235 FFTFileCacheReader::populateReadBuf(size_t x) const
236 { 236 {
237 Profiler profiler("FFTFileCacheReader::populateReadBuf", false); 237 Profiler profiler("FFTFileCacheReader::populateReadBuf", false);
238 238
239 // std::cerr << "FFTFileCacheReader::populateReadBuf(" << x << ")" << std::endl; 239 // DEBUG << "FFTFileCacheReader::populateReadBuf(" << x << ")" << endl;
240 240
241 if (!m_readbuf) { 241 if (!m_readbuf) {
242 m_readbuf = new char[m_mfc->getHeight() * 2 * m_mfc->getCellSize()]; 242 m_readbuf = new char[m_mfc->getHeight() * 2 * m_mfc->getCellSize()];
243 } 243 }
244 244