pub struct RansWriter32<W> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<W: Write> CabacWriter<VP8Context> for RansWriter32<W>
impl<W: Write> CabacWriter<VP8Context> for RansWriter32<W>
Source§fn put(&mut self, bit: bool, branch: &mut VP8Context) -> Result<()>
fn put(&mut self, bit: bool, branch: &mut VP8Context) -> Result<()>
write bits using given context for probability
Source§fn put_bypass(&mut self, bit: bool) -> Result<()>
fn put_bypass(&mut self, bit: bool) -> Result<()>
write using bypass bin for bits that aren’t worth encoding
Source§fn put_n_bits<const A: usize>(
&mut self,
bits: u64,
num_bits: usize,
contexts: &mut [Context; A],
) -> Result<()>
fn put_n_bits<const A: usize>( &mut self, bits: u64, num_bits: usize, contexts: &mut [Context; A], ) -> Result<()>
default implementation to write num_bits of the lower bits
Source§fn put_unary_encoded<const A: usize>(
&mut self,
v: usize,
contexts: &mut [Context; A],
) -> Result<()>
fn put_unary_encoded<const A: usize>( &mut self, v: usize, contexts: &mut [Context; A], ) -> Result<()>
default implementation to write unary encoded value
Auto Trait Implementations§
impl<W> Freeze for RansWriter32<W>where
W: Freeze,
impl<W> RefUnwindSafe for RansWriter32<W>where
W: RefUnwindSafe,
impl<W> Send for RansWriter32<W>where
W: Send,
impl<W> Sync for RansWriter32<W>where
W: Sync,
impl<W> Unpin for RansWriter32<W>where
W: Unpin,
impl<W> UnwindSafe for RansWriter32<W>where
W: UnwindSafe,
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