comparison data/fft/FFTFileCacheWriter.cpp @ 577:f9cf4b49b08b sv-v1.5

* debug tidy
author Chris Cannam
date Mon, 16 Mar 2009 16:41:42 +0000
parents 107d3f3705c9
children 06f13a3b9e9e
comparison
equal deleted inserted replaced
576:2ba202c5be8d 577:f9cf4b49b08b
41 m_mfc(new MatrixFile 41 m_mfc(new MatrixFile
42 (fileBase, MatrixFile::WriteOnly, 42 (fileBase, MatrixFile::WriteOnly,
43 storageType == FFTCache::Compact ? sizeof(uint16_t) : sizeof(float), 43 storageType == FFTCache::Compact ? sizeof(uint16_t) : sizeof(float),
44 width, height * 2 + m_factorSize)) 44 width, height * 2 + m_factorSize))
45 { 45 {
46 #ifdef DEBUG_FFT_FILE_CACHE_WRITER
46 std::cerr << "FFTFileCacheWriter: storage type is " << (storageType == FFTCache::Compact ? "Compact" : storageType == FFTCache::Polar ? "Polar" : "Rectangular") << ", size " << width << "x" << height << std::endl; 47 std::cerr << "FFTFileCacheWriter: storage type is " << (storageType == FFTCache::Compact ? "Compact" : storageType == FFTCache::Polar ? "Polar" : "Rectangular") << ", size " << width << "x" << height << std::endl;
48 #endif
47 m_mfc->setAutoClose(true); 49 m_mfc->setAutoClose(true);
48 m_writebuf = new char[(height * 2 + m_factorSize) * m_mfc->getCellSize()]; 50 m_writebuf = new char[(height * 2 + m_factorSize) * m_mfc->getCellSize()];
49 } 51 }
50 52
51 FFTFileCacheWriter::~FFTFileCacheWriter() 53 FFTFileCacheWriter::~FFTFileCacheWriter()