Mercurial > hg > svcore
comparison data/fft/FFTFileCacheReader.h @ 555:8accc7969c1c
* Some steps to avoid backward seeks in MatrixFile in common use cases
author | Chris Cannam |
---|---|
date | Mon, 09 Feb 2009 11:38:08 +0000 |
parents | 3cc4b7cd2aa5 |
children | 59e7fe1b1003 |
comparison
equal
deleted
inserted
replaced
554:60482f13e627 | 555:8accc7969c1c |
---|---|
48 | 48 |
49 protected: | 49 protected: |
50 mutable char *m_readbuf; | 50 mutable char *m_readbuf; |
51 mutable size_t m_readbufCol; | 51 mutable size_t m_readbufCol; |
52 mutable size_t m_readbufWidth; | 52 mutable size_t m_readbufWidth; |
53 mutable bool m_readbufGood; | |
53 | 54 |
54 float getFromReadBufStandard(size_t x, size_t y) const { | 55 float getFromReadBufStandard(size_t x, size_t y) const { |
55 float v; | 56 float v; |
56 if (m_readbuf && | 57 if (m_readbuf && |
57 (m_readbufCol == x || (m_readbufWidth > 1 && m_readbufCol+1 == x))) { | 58 (m_readbufCol == x || (m_readbufWidth > 1 && m_readbufCol+1 == x))) { |