optris_sdk_recorded_flag_policy
Whether the shutter was held back while a recording was made, as the file records it.
Call optris_sdk_recorded_flag_policy_init() first.
The record to read before trusting a recording's numbers. A shutter cycle is the non-uniformity correction; holding it back (optris_sdk_flag_while_recording) buys an unbroken stream and pays in drift, and a recording stores finished temperatures -- so that drift is in the file's pixels permanently and nothing on replay removes it. A suppressed recording is otherwise indistinguishable from a good one: no gap in the stream, and temperatures that are simply wrong by an amount nothing else declares.
Which block this is: Which block this is Two halves, merged, because they answer different questions. From the file header: policy and override_drift_c, what was configured for the whole recording. From the frame most recently delivered: held and drift_c, what was happening there -- present only on frames where a correction was actually refused, so a seek into a healthy stretch of a suppressed recording reports the policy with held clear.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_recorded_flag_policy).
policy
optris_sdk_flag_while_recording policy
The policy the recording was made under, as one of optris_sdk_flag_while_recording.
A file written by a newer SDK may name a policy this build does not know; policy_name then carries the file's own spelling and this reads OPTRIS_SDK_FLAG_WHILE_RECORDING_USE. Branch on policy_name being non-empty rather than on this alone when that distinction matters: "a policy I do not recognise" and "no policy" are different facts about a file.
has_override_drift
uint8_t has_override_drift
Non-zero when the file said what drift overrode OPTRIS_SDK_FLAG_WHILE_RECORDING_AVOID_UNLESS_DRIFT.
held
uint8_t held
Non-zero when a correction was refused at the current frame. The frames this is set on are the degraded ones.
has_drift
uint8_t has_drift
Non-zero when the file said how far the detector had drifted at the current frame. Zero where the camera had not measured one yet, which is not the same as no drift.
reserved0
uint8_t reserved0
Reserved; always zero. Named so the struct has no implicit padding.
override_drift_c
float override_drift_c
The drift that overrode the policy, when the file says: a difference in degrees of the SDK's temperature unit (kelvin-sized in Celsius, Fahrenheit-sized in Fahrenheit) in force when it is read. The file stores kelvin.
drift_c
float drift_c
How far the detector had drifted from its last correction at the current frame, a difference in degrees of the SDK's temperature unit. Roughly how wrong that frame's temperatures are.
policy_name
char policy_name[OPTRIS_SDK_MAX_NAME]
The policy, spelled as the file spells it: "use", "avoid", "avoid_unless_drift". Empty for a recording that names no policy.
Carried as well as policy so that a file from a newer writer is recognisable rather than silently read as the default.