optris::sdk::rec::RecordingController::FrameCameraState
The camera state that belongs to one frame, gathered by the owner before the frame is handed over.
These four things used to be read off the Imager from inside the frame path, and they must not be: ~Imager()'s prologue writes the object's vptr, and the virtual calls that reading them required raced that write on every frame in flight at the moment a camera was destroyed. The vptr store is the first thing the destructor does, so there is no statement inside it that could fence the frame path out -- the frame path has to not hold the camera in the first place.
It costs nothing to gather it one layer up: every one of these was already a pass-through to state that lives below the camera, in Imager::Impl and ClientBridge, both of which outlive the destructor's prologue.
Public attributes
region_record
std::string region_record
The leaf matrices of any measuring area that moved, plus every area's readings and alarm state, as of this frame.
render
std::optional< RenderMeta > render
What the colours mean right now. Absent before the first frame has been drawn, which is the one state in which no range exists to stretch a palette over.
deferred_frames
uint32_t deferred_frames = 0
How many corrections the shutter policy has held back so far.
Carried on every frame, including the ones holding nothing: the counters survive a stop by contract, so taking them only from suppressed frames would miss a recording whose last suppression was not its last frame.
peak_drift_c
float peak_drift_c = 0.0F
The worst internal-probe drift the policy has let through, in degrees Celsius. Carried on every frame for the same reason deferred_frames is.
deferring_now
bool deferring_now = false
Whether a correction is being held back for this frame. The frames arriving while this is true are the degraded ones.
drift_c
float drift_c = 0.0F
The drift at this frame, when the engine has measured one. Zero means "not measured", not "no drift" -- the probes are not read until the camera's minimum flag interval has elapsed.
policy_name
std::string policy_name
The policy's spelling, filled in only when deferring_now, which is also the only way deferred_frames can be non-zero. So a summary never has a count without a name to go with it.