OptrisOptrisDocumentation

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

PipelineInfo

pub struct PipelineInfo

Which pipeline is processing this camera's frames, and why.

Chosen per camera while it opens, from the mode it is opened in (a later mode switch keeps it), and never from how busy the GPU is. Not fixed for as long as the camera is open: a GPU pipeline that fails to initialize, or does not return within the time bound, at the open, an operation-mode switch, a frame-format change or a reconnect, moves the camera to the CPU pipeline. Camera::on_pipeline_change says when that happens.

PipelineInfo — fields

kind: PipelineKind

CPU, GPU, or nothing.

reason: PipelineReason

Why that one.

Worth reading beside PipelineInfo::kind: "CPU" alone does not say whether the GPU was unavailable, declined, or never eligible, and those want different responses from an operator.

reason_text: String

Human-readable detail behind the reason, or empty.

frame_width: u32

Frame width the pipeline is configured for.

frame_height: u32

Frame height.

frame_rate: u32

Frame rate.

gpu_min_pixels: u32

The pixel count below which the GPU is not worth it.

gpu_api: String

The graphics API in use, or empty.

gpu_adapter: String

The adapter's name, or empty.

gpu_vendor_id: u32

Its PCI vendor id.

gpu_device_id: u32

Its PCI device id.

gpu_adapter_is_software: bool

Whether the adapter is a software rasteriser.

Worth checking before trusting a GPU result. A software adapter is the GPU pipeline running on the CPU by another route, and it is slower than the CPU pipeline rather than faster.

streaming_backend: String

The streaming backend in use, or empty.

streaming_backend_requested: String

The backend that was asked for, or empty. Differs from PipelineInfo::streaming_backend when a request could not be honoured.

streaming_backend_source: StreamingBackendSource

Who chose it.