optris_sdk_pipeline_info
The processing pipeline, GPU adapter and streaming backend chosen for one camera, with the reason for each.
The answer to the support question "what is running where?" -- which was previously 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.
How it is chosen. Per camera, while it opens, by the first of these rules that decides: a sample-point calibration (CPU); OTC_FORCE_CPU in the environment (CPU, every camera); a caller's preference (no public entry point sets one); a measured table of camera modes; the size rule (below gpu_min_pixels, 65536 unless OTC_GPU_MIN_PIXELS says otherwise, the CPU; at or above it the GPU); and whether a usable GPU exists. It is chosen from the mode the camera opens in and a later mode switch keeps it, and nothing in the choice looks at how busy the GPU is or how many cameras it carries. Read it after the open returns: during the open the pipeline is chosen twice, once on frame size and again once the calibration has been read.
Not fixed for as long as the camera is open. If the GPU pipeline fails to initialize, or has not returned within the time bound (OTC_GPU_INIT_TIMEOUT_MS, 15 s by default), when the camera connects, when an operation-mode switch or a frame-format change rebuilds the pipeline, or on a reconnect, the camera is moved to the CPU pipeline with its processing and picture settings and reports OPTRIS_SDK_PIPELINE_REASON_GPU_INIT_FAILED. optris_sdk_imager_set_pipeline_change_callback() is told.
Which features depend on it. None that a support query answers: every noise filter, detail enhancement (also in a picture the SDK colours itself), a region's own emissivity in the picture and the emissivity conversion work on both. What still differs: a noise filter's numbers at a temperature edge (the GPU filters energy, the CPU temperature), the region outlines drawn into the delivered picture by default on the GPU pipeline only, and direct GPU rendering, which needs the GPU pipeline.
Every reason comes in two forms on purpose. The enum is for a program -- a closed, stable set an application can branch on. The reason_text is for a person: it names which adapter, which limit, which threshold, and goes into a bug report unchanged.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_pipeline_info).
kind
optris_sdk_pipeline_kind kind
One of the optris_sdk_pipeline_kind values.
reason
optris_sdk_pipeline_reason reason
One of the optris_sdk_pipeline_reason values.
frame_width
uint32_t frame_width
The frame geometry the choice was made on, and the threshold it was compared against -- so a report saying "CPU for a 4032-pixel frame" can be checked rather than believed.
frame_height
uint32_t frame_height
As frame_width.
frame_rate
uint32_t frame_rate
As frame_width.
gpu_min_pixels
uint32_t gpu_min_pixels
OTC_GPU_MIN_PIXELS, or the built-in 65536 when it is unset.
gpu_vendor_id
uint32_t gpu_vendor_id
Vendor and device ids of the GPU adapter. Zero unless kind is OPTRIS_SDK_PIPELINE_GPU.
gpu_device_id
uint32_t gpu_device_id
As gpu_vendor_id.
gpu_adapter_is_software
uint8_t gpu_adapter_is_software
Non-zero if the adapter is a software rasteriser rather than real hardware. The SDK refuses these, so this is zero in practice and present so a refusal can be reported as what it was.
reserved0
uint8_t reserved0[3]
Reserved; always zero. Named so the struct has no implicit padding.
streaming_backend_source
optris_sdk_streaming_backend_source streaming_backend_source
One of the optris_sdk_streaming_backend_source values.
reason_text
char reason_text[OPTRIS_SDK_MAX_MESSAGE]
The reason in words, naming the numbers behind it. Never empty for an open camera.
gpu_api
char gpu_api[OPTRIS_SDK_MAX_NAME]
"D3D12", "Vulkan", "Metal", "OpenGL", or empty.
gpu_adapter
char gpu_adapter[OPTRIS_SDK_MAX_NAME]
The adapter's own name, e.g. "NVIDIA RTX A1000". Empty unless kind is OPTRIS_SDK_PIPELINE_GPU.
streaming_backend
char streaming_backend[OPTRIS_SDK_MAX_NAME]
The backend actually carrying frames: "hal-mf", "directshow", "hal-v4l2", "hal-libusb", "v4l2", "usb-bulk", "udp", "simulated". This is what was built, not what was asked for.
streaming_backend_requested
char streaming_backend_requested[OPTRIS_SDK_MAX_NAME]
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.