Struct vp9_parser::Vp9Parser
source · [−]pub struct Vp9Parser { /* private fields */ }
Expand description
Parses VP9 bitstreams.
Implementations
sourceimpl Vp9Parser
impl Vp9Parser
sourcepub fn reset(&mut self)
pub fn reset(&mut self)
Resets the state of the parser. Used when switching the bitstream or seeking.
sourcepub fn parse_packet(
&mut self,
packet: Vec<u8>
) -> Result<Vec<Frame>, Vp9ParserError>
pub fn parse_packet(
&mut self,
packet: Vec<u8>
) -> Result<Vec<Frame>, Vp9ParserError>
Parses a VP9 bitstream packet and returns the encoded frames.
Packets needs to be supplied in the order they are appearing in the bitstream. The caller needs to reset the parser if the bitstream is changed or a seek happened. Not resetting the parser in such cases results in garbage data or errors.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Vp9Parser
impl Send for Vp9Parser
impl Sync for Vp9Parser
impl Unpin for Vp9Parser
impl UnwindSafe for Vp9Parser
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more