OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C API referencev12.0

optris_sdk_shutter_deferral

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

Call optris_sdk_shutter_deferral_init() first.

The honest half of optris_sdk_flag_while_recording. Setting a policy says what you want; this says whether it is in force and how far the detector has drifted while it was. A suppressed cycle changes nothing else an application can see -- the stream has no gap and the temperatures still look like temperatures -- so without this a degraded recording is indistinguishable from a good one from inside the process making it.

Public attributes

struct_size

uint32_t struct_size

Set to sizeof(optris_sdk_shutter_deferral).

policy_in_force

uint8_t policy_in_force

Non-zero when the policy can act at all right now.

Zero, with the rest of this struct empty, in four cases that are different problems for whoever has to act on them: no recording is running; the policy is USE; the automatic schedule is switched 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. Call optris_sdk_imager_get_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, which is the case worth showing.

deferring_now

uint8_t deferring_now

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

reserved0

uint8_t reserved0[2]

Reserved; always zero. Named so the struct has no implicit padding.

drift_c

float drift_c

The worst of the three internal probes' drift since the last correction, a difference in degrees of the SDK's temperature unit (kelvin-sized in Celsius, Fahrenheit-sized in Fahrenheit). The radiometric cost, as the scheduler measures it.

Zero until the camera's minimum flag interval has elapsed since the last cycle, because the probes are read only once an interval has elapsed -- a cost the engine declines to pay on every frame. A zero early in a recording is "not measured yet", not "no drift".

peak_drift_c

float peak_drift_c

The largest drift_c reached since the current recording started, in the same unit. The single number to put beside a recording.

Reset when a recording starts and kept after it stops, so it is readable once the file is closed.

deferred_frames

uint32_t deferred_frames

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 USE recording would have taken. Read it as "was anything suppressed at all", and peak_drift_c for how much it cost.