pub struct Decoder<T, P>where
    T: DecodedHandle + Clone,{ /* private fields */ }

Implementations§

source§

impl<T, P> Decoder<T, P>where T: DecodedHandle + Clone + 'static,

source

pub fn get_raster_from_zigzag_8x8(src: [u8; 64], dst: &mut [u8; 64])

source

pub fn get_raster_from_zigzag_4x4(src: [u8; 16], dst: &mut [u8; 16])

Trait Implementations§

source§

impl<T, P> VideoDecoder for Decoder<T, P>where T: DecodedHandle + Clone + 'static,

source§

fn decode( &mut self, timestamp: u64, bitstream: &[u8] ) -> Result<(), DecodeError>

Try to decode the bitstream represented by timestamp. Read more
source§

fn flush(&mut self)

Flush the decoder i.e. finish processing all pending decode requests and make sure the resulting frames are ready to be retrieved via next_event.
source§

fn num_resources_left(&self) -> usize

Gets the number of output resources left in the backend.
source§

fn num_resources_total(&self) -> usize

Gets the number of output resources allocated by the backend.
source§

fn coded_resolution(&self) -> Option<Resolution>

Returns the current coded resolution of the bitstream being processed. This may be None if we have not read the stream parameters yet.
source§

fn next_event(&mut self) -> Option<DecoderEvent<'_>>

Returns the next event, if there is any pending.

Auto Trait Implementations§

§

impl<T, P> !RefUnwindSafe for Decoder<T, P>

§

impl<T, P> !Send for Decoder<T, P>

§

impl<T, P> !Sync for Decoder<T, P>

§

impl<T, P> Unpin for Decoder<T, P>where P: Unpin, T: Unpin,

§

impl<T, P> !UnwindSafe for Decoder<T, P>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.