Mercurial > hg > svcore
comparison data/model/WaveformOversampler.h @ 1766:85b9b466a59f
Merge from branch by-id
author | Chris Cannam |
---|---|
date | Wed, 17 Jul 2019 14:24:51 +0100 |
parents | 074b860a7828 |
children |
comparison
equal
deleted
inserted
replaced
1730:649ac57c5a2d | 1766:85b9b466a59f |
---|---|
36 * and after the requested range (where available) to ensure an | 36 * and after the requested range (where available) to ensure an |
37 * accurate-looking result after filtering. The returned vector | 37 * accurate-looking result after filtering. The returned vector |
38 * will have sourceFrameCount * oversampleBy samples, except when | 38 * will have sourceFrameCount * oversampleBy samples, except when |
39 * truncated because the end of the model was reached. | 39 * truncated because the end of the model was reached. |
40 */ | 40 */ |
41 static floatvec_t getOversampledData(const DenseTimeValueModel *source, | 41 static floatvec_t getOversampledData(const DenseTimeValueModel &source, |
42 int channel, | 42 int channel, |
43 sv_frame_t sourceStartFrame, | 43 sv_frame_t sourceStartFrame, |
44 sv_frame_t sourceFrameCount, | 44 sv_frame_t sourceFrameCount, |
45 int oversampleBy); | 45 int oversampleBy); |
46 | 46 |
47 private: | 47 private: |
48 static floatvec_t getFixedRatioData(const DenseTimeValueModel *source, | 48 static floatvec_t getFixedRatioData(const DenseTimeValueModel &source, |
49 int channel, | 49 int channel, |
50 sv_frame_t sourceStartFrame, | 50 sv_frame_t sourceStartFrame, |
51 sv_frame_t sourceFrameCount); | 51 sv_frame_t sourceFrameCount); |
52 | 52 |
53 static int m_filterRatio; | 53 static int m_filterRatio; |