#[repr(C, packed(1))]pub struct ScFrame {
pub frameIndex: u32,
pub frameType: ScFrameType,
pub pixelFormat: ScPixelFormat,
pub pFrameData: *mut u8,
pub dataLen: u32,
pub width: u16,
pub height: u16,
pub deviceTimestamp: u64,
}Expand description
@brief Depth/IR/Color image frame data.
Fields§
§frameIndex: u32!< The index of the frame.
frameType: ScFrameType!< The type of frame. See ::ScFrameType for more information.
pixelFormat: ScPixelFormat!< The pixel format used by a frame. See ::ScPixelFormat for more information.
pFrameData: *mut u8!< A buffer containing the frame’s image data.
dataLen: u32!< The length of pFrame, in bytes.
width: u16!< The width of the frame, in pixels.
height: u16!< The height of the frame, in pixels.
deviceTimestamp: u64!< The timestamp(in milliseconds) when the frame be generated on the device. Frame processing and transfer time are not included.
Trait Implementations§
Auto Trait Implementations§
impl !Send for ScFrame
impl !Sync for ScFrame
impl Freeze for ScFrame
impl RefUnwindSafe for ScFrame
impl Unpin for ScFrame
impl UnsafeUnpin for ScFrame
impl UnwindSafe for ScFrame
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