Mercurial > hg > svgui
comparison layer/SpectrogramLayer.cpp @ 88:6b864e6864cb
* Introduce simple non-RT thread base class
* Rename MatrixFileCache to MatrixFile
* some fixes & tidying
author | Chris Cannam |
---|---|
date | Thu, 04 May 2006 16:03:02 +0000 |
parents | 4b98bda7e94d |
children | 803830f186ef |
comparison
equal
deleted
inserted
replaced
87:4b98bda7e94d | 88:6b864e6864cb |
---|---|
1302 // m_layer.m_cache = new FFTMemoryCache; | 1302 // m_layer.m_cache = new FFTMemoryCache; |
1303 // } | 1303 // } |
1304 if (!m_layer.m_writeCache) { | 1304 if (!m_layer.m_writeCache) { |
1305 m_layer.m_writeCache = new FFTFileCache | 1305 m_layer.m_writeCache = new FFTFileCache |
1306 (QString("%1").arg(getObjectExportId(&m_layer)), | 1306 (QString("%1").arg(getObjectExportId(&m_layer)), |
1307 MatrixFileCache::ReadWrite); | 1307 MatrixFile::ReadWrite); |
1308 } | 1308 } |
1309 m_layer.m_writeCache->resize(width, height); | 1309 m_layer.m_writeCache->resize(width, height); |
1310 if (m_layer.m_cache) delete m_layer.m_cache; | 1310 if (m_layer.m_cache) delete m_layer.m_cache; |
1311 m_layer.m_cache = new FFTFileCache | 1311 m_layer.m_cache = new FFTFileCache |
1312 (QString("%1").arg(getObjectExportId(&m_layer)), | 1312 (QString("%1").arg(getObjectExportId(&m_layer)), |
1313 MatrixFileCache::ReadOnly); | 1313 MatrixFile::ReadOnly); |
1314 | 1314 |
1315 m_layer.setCacheColourmap(); | 1315 m_layer.setCacheColourmap(); |
1316 //!!! m_layer.m_writeCache->reset(); | 1316 //!!! m_layer.m_writeCache->reset(); |
1317 | 1317 |
1318 // We don't need a lock when writing to or reading from | 1318 // We don't need a lock when writing to or reading from |