optris_sdk_shutter_correction_event
A closure made through the process interface, and what came of it.
Delivered through optris_sdk_imager_set_shutter_correction_callback() once per closure, when the flag reopens -- not when it shuts. Until it reopens there is no answer to give: the closure's own duration is the capture window.
optris_sdk_imager_get_last_shutter_correction() returns the most recent one, for a caller that registered its handler after a closure had already happened.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_shutter_correction_event).
outcome
optris_sdk_shutter_correction_outcome outcome
One of the optris_sdk_shutter_correction_outcome values.
frames_used
uint32_t frames_used
Shut-flag frames the pipeline kept.
Not the number of frames in the closure: the first one is discarded, because the flag was still moving when its telemetry was sampled.
frames_required
uint32_t frames_required
The floor frames_used was judged against.
Carried rather than documented because it is a change from version 11, which applied whatever it had collected whenever at least one frame was left and logged an error only at zero. A machine whose breaks are short behaves differently on v12, and this says by how much.
closed_ms
uint32_t closed_ms
How long the flag was shut, in milliseconds, host monotonic.
timestamp_us
uint64_t timestamp_us
When the closure ended, in microseconds on the SDK's monotonic clock. For timing; host_time_us is for dating.
host_time_us
uint64_t host_time_us
The same moment as a date: microseconds since the Unix epoch.
Read in the same breath as timestamp_us and not derived from it. That clock is monotonic and this one is not -- see the long note on optris_sdk_shutter_event::host_time_us, which applies unchanged.
Stamped where the reopen is observed, which is the first frame after the flag moved, so it lags the movement by up to one frame period.
sequence
uint64_t sequence
Closures reported on this camera, from 1.
Zero means no closure has been reported yet, which is how optris_sdk_imager_get_last_shutter_correction() says "nothing to
report" without a second out-parameter. A camera with no process interface, a simulated camera and a recording all answer zero.