pub enum OutputMemory {
Imported,
Exported,
}Expand description
Whose memory a decoder writes its pictures to. Either way the frames are DMA-BUF tensors and reach the GPU without a copy.
Variants§
Imported
The pool’s DMA-BUFs (allocated by the decoder or provided by the caller), imported by the device.
Exported
The device’s own buffers, exported as DMA-BUFs because it would not import the pool’s. CPU reads of these may be uncached and slow.
Trait Implementations§
Source§impl Clone for OutputMemory
impl Clone for OutputMemory
impl Copy for OutputMemory
Source§impl Debug for OutputMemory
impl Debug for OutputMemory
impl Eq for OutputMemory
Source§impl PartialEq for OutputMemory
impl PartialEq for OutputMemory
impl StructuralPartialEq for OutputMemory
Auto Trait Implementations§
impl Freeze for OutputMemory
impl RefUnwindSafe for OutputMemory
impl Send for OutputMemory
impl Sync for OutputMemory
impl Unpin for OutputMemory
impl UnsafeUnpin for OutputMemory
impl UnwindSafe for OutputMemory
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