pub struct Leader {
pub block_id: u64,
pub payload_type: u16,
pub timestamp: u64,
pub pixel_format: u32,
pub width: u32,
pub height: u32,
pub x_offset: u32,
pub y_offset: u32,
pub x_padding: u16,
}Expand description
Parsed U3V stream leader.
Fields§
§block_id: u64The block this leader opens; its trailer carries the same id.
payload_type: u16Payload type (PAYLOAD_TYPE_IMAGE, PAYLOAD_TYPE_IMAGE_EXTENDED_CHUNK, …).
timestamp: u64Device timestamp, in ns: the GenCP timestamp (GenCP 1.3.1 §5.4.16), which aravis also reads as nanoseconds.
pixel_format: u32PFNC pixel format code; 0 for a payload that is not an image.
width: u32Image width in pixels.
height: u32Image height in pixels.
x_offset: u32X offset (ROI).
y_offset: u32Y offset (ROI).
x_padding: u16Horizontal padding bytes per line.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Leader
impl RefUnwindSafe for Leader
impl Send for Leader
impl Sync for Leader
impl Unpin for Leader
impl UnsafeUnpin for Leader
impl UnwindSafe for Leader
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