comparison layer/WaveformLayer.h @ 365:26ce2fb7bcbf

* Ensure waveforms are strictly correct even when using a non-power-of-two non-power-of-sqrt-two block size with cacheing off and painting only small areas at a time
author Chris Cannam
date Thu, 07 Feb 2008 15:25:05 +0000
parents 2f83b6e3b8ca
children 5b72899d692b
comparison
equal deleted inserted replaced
364:f1e6204c1f17 365:26ce2fb7bcbf
200 200
201 int getYForValue(const View *v, float value, size_t channel) const; 201 int getYForValue(const View *v, float value, size_t channel) const;
202 202
203 float getValueForY(const View *v, int y, size_t &channel) const; 203 float getValueForY(const View *v, int y, size_t &channel) const;
204 204
205 bool getSourceFramesForX(View *v, int x, size_t modelZoomLevel,
206 size_t &f0, size_t &f1) const;
207
208 float getNormalizeGain(View *v, int channel) const;
209
205 virtual void flagBaseColourChanged() { m_cacheValid = false; } 210 virtual void flagBaseColourChanged() { m_cacheValid = false; }
206 211
207 float m_gain; 212 float m_gain;
208 bool m_autoNormalize; 213 bool m_autoNormalize;
209 bool m_showMeans; 214 bool m_showMeans;