[][src]Struct av_codec::decoder::Context

pub struct Context { /* fields omitted */ }

Auxiliary structure to encapsulate a decoder object and its additional data.

Implementations

impl Context[src]

pub fn by_name(codecs: &Codecs, name: &str) -> Option<Context>[src]

Retrieves a codec descriptor from a codec list through its name, creates the relative decoder, and encapsulates it into a new Context.

pub fn set_extradata(&mut self, extra: &[u8])[src]

Saves the extra data contained in a codec.

pub fn send_packet(&mut self, pkt: &Packet) -> Result<()>[src]

Sends to the decoder a packet to be decoded.

pub fn receive_frame(&mut self) -> Result<ArcFrame>[src]

Returns a decoded frame.

pub fn configure(&mut self) -> Result<()>[src]

Configures the decoder.

pub fn flush(&mut self) -> Result<()>[src]

Tells decoder to clear its internal state.

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, 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.