pub struct DecodedFrame { /* private fields */ }Expand description
A decoded picture, lent from the decoder’s pool.
The picture’s buffer goes back to the device when the frame is dropped,
so the tensor is only reachable through the frame: hold the frame as long
as the picture is needed. To share one picture between consumers, share
the frame (Arc<DecodedFrame>); the buffer returns when the last one
drops. The pool is bounded, so frames held too long stop the decoder (see
CodecError::PoolExhausted).
Implementations§
Trait Implementations§
Source§impl Debug for DecodedFrame
impl Debug for DecodedFrame
Source§impl Drop for DecodedFrame
impl Drop for DecodedFrame
Auto Trait Implementations§
impl !RefUnwindSafe for DecodedFrame
impl !UnwindSafe for DecodedFrame
impl Freeze for DecodedFrame
impl Send for DecodedFrame
impl Sync for DecodedFrame
impl Unpin for DecodedFrame
impl UnsafeUnpin for DecodedFrame
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