Struct vp9_parser::Vp9Parser[][src]

pub struct Vp9Parser { /* fields omitted */ }

Parses VP9 bitstreams.

Implementations

impl Vp9Parser[src]

pub fn new() -> Self[src]

Creates a new parser.

pub fn reset(&mut self)[src]

Resets the state of the parser. Used when switching the bitstream or seeking.

pub fn parse_vp9_packet(
    &mut self,
    packet: Vec<u8>
) -> Result<Vec<Frame>, Vp9ParserError>
[src]

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 undefined behavior of the decoder.

Trait Implementations

impl Clone for Vp9Parser[src]

impl Debug for Vp9Parser[src]

impl Default for Vp9Parser[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.