OptrisOptrisDocumentation

Documentation/OTC SDK/Optris.Sdk — C# API referencev12.0

PipelineInfo

public sealed record PipelineInfo : IEquatable<PipelineInfo>

What the SDK chose for one camera, and why: the processing pipeline, the GPU adapter it computes on, and the streaming backend carrying its frames.

The answer to the support question "what is running where?" -- which used to be answerable only by reading log lines that carry no serial number, so a two-camera host produced two identical lines and no way to tell which belonged to which.

Not fixed for as long as the camera is open. The pipeline is 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. It changes afterwards in one case: 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. Register ThermalCamera.OnPipelineChanged(…) to be told. Every public feature works on both pipelines; a noise filter's numbers differ slightly between them at a temperature edge, the region outlines are drawn into the picture by default on the GPU pipeline only, and direct GPU rendering needs the GPU pipeline.

Every reason comes in two forms on purpose. PipelineInfo.Reason is for a program: a closed, stable set you can branch on. PipelineInfo.ReasonText is for a person -- it names which adapter, which limit, which threshold, and goes into a bug report unchanged.

Read it after the camera is open. During the open the pipeline is chosen twice: once on frame size, before the calibration has been read, and again if that calibration turns out to need the CPU.

PipelineInfo: properties

public uint FrameHeight { get; }
public uint FrameRate { get; }
public uint FrameWidth { get; }

The frame geometry the choice was made on -- so a report saying "CPU for a 4032-pixel frame" can be checked rather than believed.

public string GpuAdapter { get; }

The adapter's own name, e.g. "NVIDIA RTX A1000". Empty unless PipelineInfo.Pipeline is PipelineKind.Gpu.

The SDK keeps one shared GPU context for every camera in the process, so this is the same adapter on every camera that has one. It is reported per camera because whether a camera has one is per camera.

public bool GpuAdapterIsSoftware { get; }

Whether the adapter is a software rasteriser rather than real hardware. The SDK refuses these for the GPU pipeline, so this is false in practice.

public string GpuApi { get; }

"D3D12", "Vulkan", "Metal", "OpenGL", or empty.

public uint GpuDeviceId { get; }
public uint GpuMinPixels { get; }

OTC_GPU_MIN_PIXELS, or the built-in 65536 when it is unset. The threshold PipelineReason.SizeRule compared against.

public uint GpuVendorId { get; }
public PipelineKind Pipeline { get; }

Which pipeline computes this camera's frames.

public PipelineReason Reason { get; }

Which rule put it there.

public string ReasonText { get; }

The reason in words, naming the numbers behind it. Never empty for an open camera.

public string StreamingBackend { get; }

The backend actually carrying this camera's frames: "hal-mf", "directshow", "hal-v4l2", "hal-libusb", "v4l2", "usb-bulk", "udp", "simulated".

This is what was built, not what was asked for.

public string StreamingBackendRequested { get; }

What was asked for, when the platform could not honour it; otherwise empty.

"Asked for hal-v4l2, got usb-bulk" is a supportable report and "usb-bulk" alone is not.

public StreamingBackendSource StreamingBackendSource { get; }

Who named the streaming backend.