#[repr(C, packed(1))]pub struct PsFrame {
pub frameIndex: u32,
pub frameType: PsFrameType,
pub pixelFormat: PsPixelFormat,
pub imuFrameNo: u8,
pub pFrameData: *mut u8,
pub dataLen: u32,
pub exposureTime: f32,
pub depthRange: PsDepthRange,
pub width: u16,
pub height: u16,
pub timestamp: PsTimeStamp,
pub hardwaretimestamp: u64,
}Expand description
@brief Depth/IR/RGB image frame data.
Fields§
§frameIndex: u32!< The index of the frame.
frameType: PsFrameType!< The type of frame. See ::PsFrameType for more information.
pixelFormat: PsPixelFormat!< The pixel format used by a frame. See ::PsPixelFormat for more information.
imuFrameNo: u8!< Used to synchronize with IMU, in the range of 0 to 255.
pFrameData: *mut u8!< A buffer containing the frame’s image data.
dataLen: u32!< The length of pFrame, in bytes.
exposureTime: f32!< The exposure time, in milliseconds.
depthRange: PsDepthRange!< The depth range mode of the current frame. Used only for depth frames.
width: u16!< The width of the frame, in pixels.
height: u16!< The height of the frame, in pixels.
timestamp: PsTimeStamp!< The timestamp of the frame that decoded.
hardwaretimestamp: u64!< The timestamp of the camera.
Trait Implementations§
Auto Trait Implementations§
impl !Send for PsFrame
impl !Sync for PsFrame
impl Freeze for PsFrame
impl RefUnwindSafe for PsFrame
impl Unpin for PsFrame
impl UnsafeUnpin for PsFrame
impl UnwindSafe for PsFrame
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