ProcessingOutputs
public readonly record struct ProcessingOutputs : IEquatable<ProcessingOutputs>
Which frame types this camera's pipeline produces.
The C++ SDK has had this since v11 and nothing over the binding could reach it at all until version 12, which is why an application that only measures still paid for a colorized picture it threw away.
Read, change, write. The native setter writes all five flags, so start from ThermalCamera.GetProcessingOutputs and use a with expression rather than constructing one from nothing: a default-constructed value switches four things off that you did not mean to touch. The defaults below are the SDK's, so new ProcessingOutputs() is the SDK's starting state rather than "everything off", but it is still not the state of a camera somebody else has already configured.
A record struct of five Booleans: the C struct has five one-byte flags, and a flag that is neither 0 nor 1 is refused by the SDK. Modelled as Boolean there is no way to express one from C# at all, so the refusal is a compile error here rather than a run-time argument error.
Example
// Measure only: drop the colorized picture, which on the GPU // backend is a second submit and a second readback per frame. ProcessingOutputs outputs = camera.GetProcessingOutputs(); camera.SetProcessingOutputs(outputs with { BgraFrames = false });
ProcessingOutputs: constructors
public ProcessingOutputs()
The SDK's defaults: thermal, fields and BGRA on.
ProcessingOutputs: properties
public bool BgraFrames { get; init; }
Whether the backend colorizes into a BGRA frame alongside the thermal one. On by default.
Clear it if you only measure, or colorize further down yourself: on the GPU backend it is a second submit and a second readback per frame, and the readback blocks the thread feeding the camera. This is the flag worth clearing.
public bool EnergyFrames { get; init; }
Whether the pipeline's linear energy frame reaches the frame path. Off by default.
Managed by ThermalCamera.OnEnergyImage(…) exactly as ProcessingOutputs.RawFrames is.
public bool Fields { get; init; }
Whether per-field statistics are attached to the legacy frame event. On by default.
"Fields" here are the v11 measurement fields, which only a legacy client ever sees. Clearing it does not stop v12 region temperatures or alarms: those are measured on a path that never reads this. It saves almost nothing either: the statistics are computed regardless.
public bool RawFrames { get; init; }
Whether the sensor's uncalibrated counts reach the frame path. Off by default.
You do not normally set this. ThermalCamera.OnRawImage(…) turns it on and clearing that handler turns it off, which is what stopped a registered raw handler looking broken. Setting it by hand is for the external-buffer path, which registers no handler.
public bool ThermalFrames { get; init; }
Whether the pipeline publishes frames at all. On by default.
The name undersells it. false suppresses the whole frame dispatch, not just the thermal buffer: no thermal, BGRA or RGB callback fires, registered external buffers are not filled, ThermalCamera.AcquireFrameAsync(…) starves, the frame count stops advancing, recording receives nothing, and, the one that surprises people, regions, alarm rules and motion zones stop being evaluated, because measurement rides on the same dispatch. There is no configuration in which measuring works while this is false.
It does not make the camera cheaper to run, either. To drop the expensive half of the work, clear ProcessingOutputs.BgraFrames.