pub struct DirectForm1Dither {
pub xy: [i32; 4],
pub e: u32,
}Expand description
SOS state with first order error feedback
Fields§
§xy: [i32; 4]X,Y state
[x1, x2, y1, y2]
e: u32Error feedback
Trait Implementations§
Source§impl Clone for DirectForm1Dither
impl Clone for DirectForm1Dither
Source§fn clone(&self) -> DirectForm1Dither
fn clone(&self) -> DirectForm1Dither
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DirectForm1Dither
impl Debug for DirectForm1Dither
Source§impl Default for DirectForm1Dither
impl Default for DirectForm1Dither
Source§fn default() -> DirectForm1Dither
fn default() -> DirectForm1Dither
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DirectForm1Dither
impl<'de> Deserialize<'de> for DirectForm1Dither
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DirectForm1Dither
impl Serialize for DirectForm1Dither
Source§impl<const F: i8> SplitProcess<i32, i32, DirectForm1Dither> for Biquad<Q<i32, i64, F>>
let mut state = DirectForm1Dither {
xy: [1, 2, 3, 4],
e: 5,
};
let x0 = 6;
let y0 = Biquad::<Q32<30>>::IDENTITY.process(&mut state, x0);
assert_eq!(y0, x0);
assert_eq!(state.xy, [x0, 1, y0, 3]);
assert_eq!(state.e, 20);
impl<const F: i8> SplitProcess<i32, i32, DirectForm1Dither> for Biquad<Q<i32, i64, F>>
let mut state = DirectForm1Dither {
xy: [1, 2, 3, 4],
e: 5,
};
let x0 = 6;
let y0 = Biquad::<Q32<30>>::IDENTITY.process(&mut state, x0);
assert_eq!(y0, x0);
assert_eq!(state.xy, [x0, 1, y0, 3]);
assert_eq!(state.e, 20);Source§impl<const F: i8> SplitProcess<i32, i32, DirectForm1Dither> for BiquadClamp<Q<i32, i64, F>, i32>
impl<const F: i8> SplitProcess<i32, i32, DirectForm1Dither> for BiquadClamp<Q<i32, i64, F>, i32>
Auto Trait Implementations§
impl Freeze for DirectForm1Dither
impl RefUnwindSafe for DirectForm1Dither
impl Send for DirectForm1Dither
impl Sync for DirectForm1Dither
impl Unpin for DirectForm1Dither
impl UnwindSafe for DirectForm1Dither
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