pub struct Frame { /* private fields */ }Expand description
A GPU NV12 frame in CUDA device memory: NVDEC’s or a Converter’s
output and NVENC’s zero-copy input. One buffer holds both planes at a
shared row pitch: height luma rows, then height / 2 interleaved-UV
rows. Cloning bumps refcounts (no pixel copy), which keeps decode -> encode
on the GPU; an encoder holds a clone until it has read the frame.
Both codecs use the device’s primary CUDA context (CudaContext::new
retains it), so a frame decoded by NVDEC is directly addressable by NVENC.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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