pub enum DitherPolicy {
None,
Tpdf {
seed: u64,
},
NoiseShapedTpdf {
seed: u64,
feedback: f32,
},
}Expand description
Dither and error-feedback policy applied in the PCM16 quantizer.
Variants§
None
Round directly to the closest PCM16 code.
Tpdf
Add deterministic triangular probability-density dither with seed.
NoiseShapedTpdf
Apply seeded TPDF plus first-order quantization-error feedback.
Trait Implementations§
Source§impl Clone for DitherPolicy
impl Clone for DitherPolicy
Source§fn clone(&self) -> DitherPolicy
fn clone(&self) -> DitherPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DitherPolicy
Source§impl Debug for DitherPolicy
impl Debug for DitherPolicy
Source§impl PartialEq for DitherPolicy
impl PartialEq for DitherPolicy
impl StructuralPartialEq for DitherPolicy
Auto Trait Implementations§
impl Freeze for DitherPolicy
impl RefUnwindSafe for DitherPolicy
impl Send for DitherPolicy
impl Sync for DitherPolicy
impl Unpin for DitherPolicy
impl UnsafeUnpin for DitherPolicy
impl UnwindSafe for DitherPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more