optris::sdk::RegionReadFrame
Which captured frame one read of a region's results was measured on: the frame identity RegionState carries, for the reads that are not RegionState.
RegionEngine::Percentiles(), ThresholdShare() and ReadSamples() each have an overload that fills one of these under the same lock as the values, so the two cannot belong to different frames. Compare frame_sequence against the frame in hand: 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.
Added in 12.0.35.
Public attributes
has_frame_metadata
bool has_frame_metadata = false
Whether frame_sequence and frame_timestamp_us say anything. Read this first: sequence 0 is a real frame, the first of the stream.
False before the first measuring pass, for a store measured from a bare buffer with no capture behind it, and for a region added since the last pass, which has not been measured at all.
frame_sequence
uint32_t frame_sequence = 0
The capture's FrameMetadata::sequence. Meaningless unless has_frame_metadata.
frame_timestamp_us
uint64_t frame_timestamp_us = 0
That capture's FrameMetadata::timestamp_us: a monotonic stopwatch reading, never a date. Meaningless unless has_frame_metadata.