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]
&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 undefined behavior of the decoder.
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,