pub struct Av1SymbolEncoder { /* private fields */ }Expand description
High-level symbol encoder with CDF management.
Implementations§
Source§impl SymbolEncoder
impl SymbolEncoder
Sourcepub fn init_contexts(&mut self, num_contexts: usize, nsymb: usize)
pub fn init_contexts(&mut self, num_contexts: usize, nsymb: usize)
Initialize contexts for encoding.
Sourcepub fn encode_bool(&mut self, value: bool)
pub fn encode_bool(&mut self, value: bool)
Encode a boolean value.
Sourcepub fn encode_literal(&mut self, value: u32, num_bits: u8)
pub fn encode_literal(&mut self, value: u32, num_bits: u8)
Encode a literal value.
Trait Implementations§
Source§impl Clone for SymbolEncoder
impl Clone for SymbolEncoder
Source§fn clone(&self) -> SymbolEncoder
fn clone(&self) -> SymbolEncoder
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 SymbolEncoder
impl Debug for SymbolEncoder
Auto Trait Implementations§
impl Freeze for SymbolEncoder
impl RefUnwindSafe for SymbolEncoder
impl Send for SymbolEncoder
impl Sync for SymbolEncoder
impl Unpin for SymbolEncoder
impl UnsafeUnpin for SymbolEncoder
impl UnwindSafe for SymbolEncoder
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