Trait symphonia_core::conv::dither::Dither

source ·
pub trait Dither<F: Sample, T: Sample> {
    // Required method
    fn dither(&mut self, sample: F) -> F;
}
Expand description

Dither is a trait for implementing dithering algorithms.

Required Methods§

source

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§

source§

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

source§

impl<F: Sample, T: Sample> Dither<F, T> for Rectangular<F, T>

source§

impl<F: Sample, T: Sample> Dither<F, T> for Triangular<F, T>