optris_sdk_recorded_gap
A hole in a recording, as the frame on the far side of it records it.
Call optris_sdk_recorded_gap_init() first.
That this record exists for a frame is the fact: the frames either side of that one are not contiguous, because the camera stopped delivering in between. The two members below are detail about an outage the SDK may know nothing more about.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_recorded_gap).
has_before
uint8_t has_before
1 when before_us below holds a capture time, 0 when the SDK had no earlier frame to name.
A companion flag rather than a reserved value, because 0 is a legitimate capture time -- the first frame of a recording. This is this SDK's convention throughout, and the same one as optris_sdk_image::has_frame_metadata.
reserved0
uint8_t reserved0[3]
Padding. Explicit, so the managed mirror can declare the same leaves -- see optris_sdk_recording_options::reserved1.
before_us
uint64_t before_us
Capture time of the last frame before the gap, in microseconds on the camera's own clock. Meaningful only when has_before is 1; zero otherwise.
Warning: Do not compute the length of the outage as the current frame's timestamp minus this. A camera's counter can restart at a re-open -- that is measured, and it is why the pre-roll ring guards against a newest stamp below its oldest -- so the subtraction can come out negative or absurd. It is here to say where the join is, not how long the camera was away.
message
char message[OPTRIS_SDK_MAX_MESSAGE]
What the SDK knew about the outage, for a log a person reads. Never the contract -- this record's existence is. May be empty.