Mercurial > hg > svcore
diff data/model/FFTModel.h @ 1094:b386363ff6c8 simple-fft-model
A small cache for source samples
author | Chris Cannam |
---|---|
date | Fri, 12 Jun 2015 19:18:56 +0100 |
parents | 44b079427b36 |
children | b66734b5f806 |
line wrap: on
line diff
--- a/data/model/FFTModel.h Fri Jun 12 18:50:52 2015 +0100 +++ b/data/model/FFTModel.h Fri Jun 12 19:18:56 2015 +0100 @@ -168,12 +168,18 @@ std::vector<std::complex<float> > getFFTColumn(int column) const; std::vector<float> getSourceSamples(int column) const; + std::vector<float> getSourceData(std::pair<sv_frame_t, sv_frame_t>) const; + struct SavedSourceData { + std::pair<sv_frame_t, sv_frame_t> range; + std::vector<float> data; + }; + mutable SavedSourceData m_savedData; + struct SavedColumn { int n; std::vector<std::complex<float> > col; }; - mutable std::deque<SavedColumn> m_cached; size_t m_cacheSize;