OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Rust API referencev12.0

ProcessingOutputs

pub struct ProcessingOutputs

Which frame types the pipeline produces.

Mirrors optris::sdk::ProcessingOutputConfig, which nothing over the flat C ABI could reach at all until version 12, so nothing in any binding built on it could either.

Read the current setting with Camera::processing_outputs, change what you mean to change, and write it back with Camera::set_processing_outputs. The setter writes all five flags, so a value built from scratch with four fields left at false switches off four things you did not ask about. ProcessingOutputs::new carries the SDK's own defaults, read from the library rather than restated here so the two cannot drift.

Examples

Measure without paying for colorization:

# fn main() -> optris_sdk::Result<()> {
use optris_sdk::Camera;

let mut camera = Camera::open()?;
let mut outputs = camera.processing_outputs()?;
outputs.bgra_frames = false;
camera.set_processing_outputs(outputs)?;
# Ok(())
# }

ProcessingOutputs — fields

thermal_frames: bool

Whether the pipeline publishes frames at all. On by default.

The name undersells it, and this is the field to be careful with. false suppresses the whole frame dispatch, not just the thermal buffer: no thermal, BGRA or RGB callback fires, registered external buffers are not filled, Camera::acquire_frame 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 off.

It does not make the camera cheaper to run either. To drop the expensive half of the work, clear ProcessingOutputs::bgra_frames.

raw_frames: bool

Whether the sensor's uncalibrated ADU reaches the frame path. Off by default.

You do not normally set this. Registering a raw callback turns it on and clearing the callback turns it off, which is what stopped a registered raw callback looking broken. Setting it by hand is for the external-buffer path, which registers no callback.

energy_frames: bool

Whether the pipeline's linear energy frame reaches the frame path. Off by default, and managed by registering an energy callback exactly as ProcessingOutputs::raw_frames is.

fields: bool

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.

bgra_frames: bool

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.

ProcessingOutputs — methods

pub fn new() -> Result<Self>

The SDK's defaults: thermal, fields and BGRA on, raw and energy off.

Errors

Returns Status::InvalidArgument only if the library refuses the initialiser, which means the crate and the library disagree about the struct.