pub struct Decoder<T: DecodedHandle> { /* private fields */ }
Trait Implementations§
source§impl<T: DecodedHandle + Clone + 'static> VideoDecoder for Decoder<T>
impl<T: DecodedHandle + Clone + 'static> VideoDecoder for Decoder<T>
source§fn flush(&mut self)
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
fn num_resources_left(&self) -> usize
Gets the number of output resources left in the backend.
source§fn num_resources_total(&self) -> usize
fn num_resources_total(&self) -> usize
Gets the number of output resources allocated by the backend.
source§fn coded_resolution(&self) -> Option<Resolution>
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<'_>>
fn next_event(&mut self) -> Option<DecoderEvent<'_>>
Returns the next event, if there is any pending.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Decoder<T>
impl<T> !Send for Decoder<T>
impl<T> !Sync for Decoder<T>
impl<T> Unpin for Decoder<T>where T: Unpin,
impl<T> !UnwindSafe for Decoder<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more