Mercurial > hg > svcore
comparison base/FFTCache.h @ 137:0aafdda005ce
* Remove dependency on the actual stored object type in MatrixFile
* Add alternative Compact storage format for FFTFileCache (16-bit instead
of 32-bit)
author | Chris Cannam |
---|---|
date | Wed, 12 Jul 2006 14:15:46 +0000 |
parents | 69d50575c52a |
children | 6332e41c1619 |
comparison
equal
deleted
inserted
replaced
136:e4acb520ad2a | 137:0aafdda005ce |
---|---|
124 if (x < m_width && y < m_height) { | 124 if (x < m_width && y < m_height) { |
125 m_phase[x][y] = uint16_t(int16_t((phase * 32767) / M_PI)); | 125 m_phase[x][y] = uint16_t(int16_t((phase * 32767) / M_PI)); |
126 } | 126 } |
127 } | 127 } |
128 | 128 |
129 virtual bool haveSetColumnAt(size_t x) const { | 129 virtual bool haveSetColumnAt(size_t) const { |
130 return true; | 130 return true; |
131 } | 131 } |
132 | 132 |
133 virtual void setColumnAt(size_t x, float *mags, float *phases, float factor) { | 133 virtual void setColumnAt(size_t x, float *mags, float *phases, float factor) { |
134 setNormalizationFactor(x, factor); | 134 setNormalizationFactor(x, factor); |