RecordedFlagPolicy
pub struct RecordedFlagPolicy
What a recording says its shutter was told to do, and what that cost at the frame now on screen.
Returned by Camera::recorded_flag_policy. The two drifts are
differences in degrees of the SDK's temperature unit (kelvin-sized
in Celsius, Fahrenheit-sized in Fahrenheit), converted from the
file's Celsius as they are read.
RecordedFlagPolicy — fields
policy: FlagWhileRecording
The policy the recording was made under.
FlagWhileRecording::Other never appears: a policy this build
does not know reads as FlagWhileRecording::Use, and
RecordedFlagPolicy::policy_name carries the file's own
spelling. Branch on the name when that distinction matters;
"a policy I do not recognise" and "no policy" are different
facts about a file.
policy_name: String
The policy as the file spells it: "use", "avoid",
"avoid_unless_drift", or something a newer writer wrote.
override_drift_c: Option<f32>
The drift that overrode
FlagWhileRecording::AvoidUnlessDrift, when the file says.
held: bool
Whether a correction was refused at the frame most recently
delivered. true means that frame's temperatures are
degraded, by roughly RecordedFlagPolicy::drift_c, and
permanently: a recording stores finished temperatures.
drift_c: Option<f32>
How far the detector had drifted from its last correction at
that frame, in degrees of the SDK's temperature unit. None
where the camera had not measured one yet, which is not the same
as no drift.