OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Rust API referencev12.0

ShutterDeferral

pub struct ShutterDeferral

What the while-recording shutter policy is doing, and what it has cost so far.

Returned by Camera::shutter_deferral. Everything is false or zero on a camera running the default policy, which is every camera nobody has configured.

The drifts are differences in degrees of the SDK's temperature unit (kelvin-sized in Celsius, Fahrenheit-sized in Fahrenheit), so a zero is zero in either unit.

ShutterDeferral — fields

policy_in_force: bool

Whether the policy can act at all right now.

false, with the rest of this empty, in four cases that are different problems for whoever has to act on them: no recording is running; the policy is FlagWhileRecording::Use; the automatic schedule is off, so there is nothing to hold; or a process-interface input owns the flag, so the SDK runs no cycle and the setting is moot rather than working. Ask Camera::shutter_externally_controlled to tell that last case from the others.

Drive a "flag suppressed" indicator from this and not from the configured policy. The two disagree exactly when a configuration that was accepted cannot take effect.

deferring_now: bool

Whether a cycle is being held right now: one is due and the policy is refusing it. The frames arriving while this is true are the degraded ones.

drift_c: f32

The worst of the three internal probes' drift since the last correction, in degrees of the SDK's temperature unit. The radiometric cost, as the scheduler measures it.

Zero until the camera's minimum flag interval has elapsed, because the probes are read only once an interval has, so a zero early in a recording is "not measured yet", not "no drift".

peak_drift_c: f32

The largest ShutterDeferral::drift_c reached since the current recording started. The single number to put beside a recording; kept after the recording stops, so it is readable once the file is closed.

deferred_frames: u32

How many scheduled cycles have been held since the current recording started.

A count of refused decisions (the scheduler re-decides every frame while a cycle stays due), so it is much larger than the number of corrections a FlagWhileRecording::Use recording would have taken. Read it as "was anything suppressed at all", and ShutterDeferral::peak_drift_c for how much it cost.