pub struct BitWriter<W: Write> { /* private fields */ }Expand description
Writes H.264 bitstream syntax elements to RBSP writer.
Implementations§
Trait Implementations§
Source§impl<W: Write> BitWrite for BitWriter<W>
impl<W: Write> BitWrite for BitWriter<W>
Source§fn write_ue(&mut self, value: u32) -> Result<()>
fn write_ue(&mut self, value: u32) -> Result<()>
Writes an unsigned Exp-Golomb-coded value, as defined in the H.264 spec.
Source§fn write_se(&mut self, value: i32) -> Result<()>
fn write_se(&mut self, value: i32) -> Result<()>
Writes a signed Exp-Golomb-coded value, as defined in the H.264 spec.
Source§fn write<const BITS: u32, I: Integer>(&mut self, value: I) -> Result<()>
fn write<const BITS: u32, I: Integer>(&mut self, value: I) -> Result<()>
Writes
BITS bits of value.Source§fn write_var<I: Integer>(&mut self, bit_count: u32, value: I) -> Result<()>
fn write_var<I: Integer>(&mut self, bit_count: u32, value: I) -> Result<()>
Writes
bit_count bits of value.Source§fn write_rbsp_trailing_bits(&mut self) -> Result<()>
fn write_rbsp_trailing_bits(&mut self) -> Result<()>
Writes the RBSP trailing bits: a stop bit (1) and then zero-padding to byte boundary.
Auto Trait Implementations§
impl<W> Freeze for BitWriter<W>
impl<W> RefUnwindSafe for BitWriter<W>
impl<W> Send for BitWriter<W>
impl<W> Sync for BitWriter<W>
impl<W> Unpin for BitWriter<W>
impl<W> UnsafeUnpin for BitWriter<W>
impl<W> UnwindSafe for BitWriter<W>
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