optris::sdk::ShutterCorrectionEvent
A closure made through the process interface, and what came of it.
Delivered through Imager::SetShutterCorrectionCallback(), once per closure, when the flag reopens -- not when it shuts. The closure's own duration is the capture window, so until it ends there is no answer to give.
Detector::GetLastShutterCorrection() returns the most recent one, for a subscriber that installed its handler after a closure had already happened.
Public attributes
outcome
ShutterCorrectionOutcome outcome = ShutterCorrectionOutcome::kApplied
Whether the correction was applied, skipped, or applied below the floor because there was no reference to keep.
frames_used
uint32_t frames_used = 0
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 = 0
The floor frames_used was judged against.
Carried rather than documented because it is a change from version 11. v11 applied whatever it had collected whenever at least one frame was left after its ignored frames, and logged an error only at zero. A machine whose breaks are short therefore behaves differently on v12, and this is the field that says by how much.
closed_ms
uint32_t closed_ms = 0
How long the flag was shut, in milliseconds, on the host's monotonic clock.
timestamp_us
uint64_t timestamp_us = 0
When the closure ended, in microseconds on the host's monotonic clock -- std::chrono::steady_clock. For timing, not for dating; see host_time_us.
host_time_us
uint64_t host_time_us = 0
The same moment as a date: microseconds since the Unix epoch, from std::chrono::system_clock.
Read in the same breath as timestamp_us and not derived from it, for the reason spelled out on ShutterEvent::host_time_us: this clock is steppable and that one is not.
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 = 0
Closures reported on this camera, from 1. A consumer that missed one can tell. Zero in the value returned by Detector::GetLastShutterCorrection() when none has happened yet, which is how "no answer" is expressed without an optional over the C ABI.