devela::_dep::symphonia::core::conv::dither

Trait Dither

pub trait Dither<F, T>
where F: Sample, T: Sample,
{ // Required method fn dither(&mut self, sample: F) -> F; }
Available on crate feature dep_symphonia only.
Expand description

Dither is a trait for implementing dithering algorithms.

Required Methods§

fn dither(&mut self, sample: F) -> F

Dithers a Sample of source sample format F for an eventual conversion to the destination sample format T.

Implementors§

§

impl<F, T> Dither<F, T> for Identity<F, T>
where F: Sample, T: Sample,

§

impl<F, T> Dither<F, T> for Rectangular<F, T>
where F: Sample, T: Sample, RandomNoise: AddNoise<F>,

§

impl<F, T> Dither<F, T> for Triangular<F, T>
where F: Sample, T: Sample, RandomNoise: AddNoise<F>,