pub struct VideoFrame {
pub pixels: Tensor,
pub timestamp: Option<Timestamp>,
}Expand description
One decoded RGB frame.
Fields§
§pixels: TensorRGB Uint8 CHW pixels.
timestamp: Option<Timestamp>Presentation time, absent when the source provides none.
Trait Implementations§
Source§impl Debug for VideoFrame
impl Debug for VideoFrame
Source§impl MemoryFootprint for VideoFrame
impl MemoryFootprint for VideoFrame
Source§fn resident_bytes(&self) -> usize
fn resident_bytes(&self) -> usize
Returns the conservative logical payload size in bytes.
Source§impl PinMemory for VideoFrame
impl PinMemory for VideoFrame
Source§fn pin_memory(self, d: Device) -> Result<Self>
fn pin_memory(self, d: Device) -> Result<Self>
Pins this value for the requested accelerator.
Auto Trait Implementations§
impl !Sync for VideoFrame
impl Forget for VideoFrame
impl Freeze for VideoFrame
impl RefUnwindSafe for VideoFrame
impl Send for VideoFrame
impl Unpin for VideoFrame
impl UnsafeUnpin for VideoFrame
impl UnwindSafe for VideoFrame
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