pub enum OutputPool {
Allocate {
count: usize,
},
Provided(Vec<TensorDyn>),
}Expand description
Where a VideoDecoder writes decoded pictures.
Variants§
Allocate
The decoder allocates DMA-BUF frames, and allocates them again when the stream changes size.
Fields
Provided(Vec<TensorDyn>)
Pictures are decoded into these DMA-BUF tensors, one buffer each.
There must be at least one more than the device keeps for reference
pictures, and each must be large enough for the stream’s coded
picture at the row stride the device asks for; otherwise
VideoDecoder::decode fails with CodecError::InvalidConfig when
the stream’s size becomes known. A tensor’s own shape and format are
not used: the decoded frames describe the device’s layout over the
same memory. Across a change of stream format the same tensors are
used again, each once the frames still showing it have dropped.
Trait Implementations§
Source§impl Debug for OutputPool
impl Debug for OutputPool
Auto Trait Implementations§
impl !RefUnwindSafe for OutputPool
impl !UnwindSafe for OutputPool
impl Freeze for OutputPool
impl Send for OutputPool
impl Sync for OutputPool
impl Unpin for OutputPool
impl UnsafeUnpin for OutputPool
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