pub struct ContextModel {
pub state: u8,
pub mps: u8,
}Expand description
Adaptive probability context model for CABAC (ITU-T H.265, 9.3.1).
Each context stores a 6-bit probability state index (state, 0..=63) and
the value of the Most Probable Symbol (mps, 0 or 1).
Fields§
§state: u8Probability state index (0 = equiprobable, 63 = most skewed).
mps: u8Most Probable Symbol value (0 or 1).
Implementations§
Trait Implementations§
Source§impl Clone for ContextModel
impl Clone for ContextModel
Source§fn clone(&self) -> ContextModel
fn clone(&self) -> ContextModel
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 moreAuto Trait Implementations§
impl Freeze for ContextModel
impl RefUnwindSafe for ContextModel
impl Send for ContextModel
impl Sync for ContextModel
impl Unpin for ContextModel
impl UnsafeUnpin for ContextModel
impl UnwindSafe for ContextModel
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