FrameRateInfo
public sealed class FrameRateInfo
What rate frames arrive at, what was asked for, and the difference.
ThermalCamera.SubsampledFramerate is a request. It is clamped to the sensor's own rate, and an export-restricted camera never delivers above 9 fps whatever is asked, on any pipeline. Reading the request back therefore answers a different question from "how many frames per second am I going to get?", and in earlier releases it was the only answer available.
Both are reported here, with the difference explained. The reason comes in two forms on purpose: FrameRateInfo.Reason is a closed set a program can branch on, and FrameRateInfo.Explanation names the rates behind it for a support report. Neither substitutes for the other.
FrameRateInfo: properties
public float Effective { get; }
The rate the SDK actually delivers frames at, in Hz. This is the number to divide by when budgeting work per frame.
public string Explanation { get; }
The same reason in words, naming the rates behind it. Never empty when FrameRateInfo.IsValid.
Names the restriction whenever FrameRateInfo.IsExportRestricted holds, even when the restriction is not what limits the rate.
public bool IsExportRestricted { get; }
Whether this camera is export-restricted, whatever is currently holding the rate.
A different question from FrameRateInfo.Reason, and the reason it is a separate property rather than another enumerator. FrameRateInfo.Reason answers what limits the rate right now; this answers whether the unit is restricted at all, which is a legal property of the hardware and is true whether or not a request is in force.
FrameRateLimitReason.ExportRestricted implies this, but not the other way round. A request below 9 fps on a restricted camera takes effect and is reported as FrameRateLimitReason.AsRequested, so before this property existed such a unit could not be told from an unrestricted one for as long as the request stood: a restricted PI 450 with its limit set to 5 fps reported "Delivering 5 Hz as requested" and named no restriction anywhere.
One-way. It reads the export cap directly, and a cap is armed in one direction only; nothing in this SDK takes one out of force. Read it per frame and it goes false to true on the frame the restriction takes hold and never back, across a mode switch or a reconnect. It is armed at the open from the control channel and later from the frames' own marker, so on a camera whose control channel could not be asked it may become true some frames into the stream. A camera that could not be asked at all counts as restricted, which is the fail-safe direction.
False on a simulated camera and on a recording: neither is a unit.
public bool IsValid { get; }
False when there was nothing to report: no camera is attached. Every other value is then zero and means nothing.
public FrameRateLimitReason Reason { get; }
Why FrameRateInfo.Effective is not FrameRateInfo.Requested, or that it is.
public float Requested { get; }
The rate that was asked for, in Hz, or 0 when none was, which is also how a request is cleared. This is the setting as a settings page should show it.
public float SensorRate { get; }
The rate the sensor itself streams at in its active operation mode, in Hz. Subsampling happens on the host: the camera keeps sending at this rate whatever is requested.