RegionReadFrame
pub struct RegionReadFrame
Which captured frame one read of a region was measured on.
Returned beside the values by
crate::Camera::region_percentiles_with_frame,
crate::Camera::region_threshold_share_with_frame and
crate::Camera::region_samples_with_frame, read under the same lock
as they were, so the two cannot belong to different frames. The SDK
hands a frame to the stream before it measures it, so a read made
straight after taking frame N can hold N-1, or a later frame once the
reader has fallen behind: compare frame_sequence with the frame in
hand. Added in 12.0.35.
RegionReadFrame — fields
has_frame: bool
Whether frame_sequence and frame_timestamp_us name a frame.
Read this first. Sequence 0 is a real frame. False before the first measuring pass and for a region added since the last one.
frame_sequence: u32
The frame's sequence number, as crate::FrameInfo::sequence
carries it. Meaningless unless has_frame.
frame_timestamp_us: u64
When that frame was captured, in microseconds from the camera's
start. A stopwatch reading, not a date. Meaningless unless
has_frame.