33 void applyBias(
double bias)
noexcept;
35 double applyCorrection(
40 std::pair<sampleCount, sampleCount> GetSampleRange(uint32_t column)
const;
46 bool IsLinear() const noexcept;
55 : mInitialValue(initialValue)
56 , mSamplesPerPixel(samplesPerPixel)
61 double mInitialValue {};
62 double mSamplesPerPixel {};
64 sampleCount operator()(uint32_t column)
const noexcept;
66 explicit operator bool() const noexcept;
Utility class to calculate sample range for a given column.
PixelSampleMapper()=default
PixelSampleMapper(PixelSampleMapper &&)=default
PixelSampleMapper(const PixelSampleMapper &)=default
PixelSampleMapper & operator=(PixelSampleMapper &&)=default
PixelSampleMapper & operator=(const PixelSampleMapper &)=default
std::function< sampleCount(uint32_t)> CustomMapper
Positions or offsets within audio files need a wide type.
LinearMapper(const LinearMapper &)=default
LinearMapper(double initialValue, double samplesPerPixel) noexcept