pub struct WeightedPredictorParams {
pub p1c: u32,
pub p2c: u32,
pub p3ca: u32,
pub p3cb: u32,
pub p3cc: u32,
pub p3cd: u32,
pub p3ce: u32,
pub w0: u32,
pub w1: u32,
pub w2: u32,
pub w3: u32,
}Expand description
Parameters for the weighted predictor (from bitstream header).
Fields§
§p1c: u32Correction parameter for predictor 1.
p2c: u32Correction parameter for predictor 2.
p3ca: u32Correction parameters for predictor 3.
p3cb: u32§p3cc: u32§p3cd: u32§p3ce: u32§w0: u32Weight multipliers for error weighting.
w1: u32§w2: u32§w3: u32Implementations§
Source§impl WeightedPredictorParams
impl WeightedPredictorParams
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Returns true if all parameters are at default values.
Trait Implementations§
Source§impl Clone for WeightedPredictorParams
impl Clone for WeightedPredictorParams
Source§fn clone(&self) -> WeightedPredictorParams
fn clone(&self) -> WeightedPredictorParams
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 WeightedPredictorParams
impl Debug for WeightedPredictorParams
Source§impl Default for WeightedPredictorParams
impl Default for WeightedPredictorParams
Source§impl PartialEq for WeightedPredictorParams
impl PartialEq for WeightedPredictorParams
impl Copy for WeightedPredictorParams
Auto Trait Implementations§
impl Freeze for WeightedPredictorParams
impl RefUnwindSafe for WeightedPredictorParams
impl Send for WeightedPredictorParams
impl Sync for WeightedPredictorParams
impl Unpin for WeightedPredictorParams
impl UnsafeUnpin for WeightedPredictorParams
impl UnwindSafe for WeightedPredictorParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more