OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C API referencev12.0

optris_sdk_region_read_frame

Which captured frame one read of a region's results was measured on: the frame identity optris_sdk_region_state carries, for the percentiles, the threshold share and the samples. Added in 12.0.35.

Filled by optris_sdk_imager_get_region_percentiles_with_frame(), optris_sdk_imager_get_region_threshold_share_with_frame() and optris_sdk_imager_read_region_sample_records_with_frame() 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 its callbacks before it measures it, so a read made straight after frame N can still hold N-1, or a later frame once the reader has fallen behind.

Public attributes

struct_size

uint32_t struct_size

Set to sizeof(optris_sdk_region_read_frame).

has_frame_metadata

int32_t has_frame_metadata

Non-zero when frame_sequence and frame_timestamp_us name the capture the values were measured on. Check this first: zero is a real sequence number. Zero before the first measuring pass, and for a region added since the last pass, which no pass has measured yet.

frame_sequence

uint32_t frame_sequence

The capture's sequence number, the value optris_sdk_frame_info::sequence carries for that thermal frame. Meaningless unless has_frame_metadata is non-zero.

reserved0

uint32_t reserved0

Reserved; always zero. Named so the struct has no implicit padding.

frame_timestamp_us

uint64_t frame_timestamp_us

When that capture was taken, in microseconds, the value optris_sdk_frame_info::timestamp_us carries: a stopwatch reading, not a date. Meaningless unless has_frame_metadata is non-zero.