optris_sdk_pipeline_change
A camera's pipeline changed while it was open.
The pipeline is chosen per camera while it opens (see optris_sdk_pipeline_info) and can change afterwards without anybody asking: when the GPU pipeline fails to initialize, or has not returned within the time bound (OTC_GPU_INIT_TIMEOUT_MS, 15 s by default), the camera is moved to the CPU pipeline rather than left without a picture. That can happen at an operation-mode switch, a frame-format change or a reconnect, long after the open returned. The camera keeps streaming and keeps its processing and picture settings; what changes is which pipeline computes its frames.
Delivered through optris_sdk_imager_set_pipeline_change_callback().
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_pipeline_change).
previous
optris_sdk_pipeline_kind previous
The pipeline the camera was on; one of the optris_sdk_pipeline_kind values.
current
optris_sdk_pipeline_kind current
The pipeline it is on now. Never equal to previous.
reason
optris_sdk_pipeline_reason reason
Why it is on current, as optris_sdk_imager_get_pipeline_info() reads after the change; one of the optris_sdk_pipeline_reason values. OPTRIS_SDK_PIPELINE_REASON_GPU_INIT_FAILED for a GPU pipeline that failed or timed out, which is the one to treat as a fault.
reason_text
char reason_text[OPTRIS_SDK_MAX_MESSAGE]
The reason in words: which GPU error, which time bound. UTF-8, NUL-terminated.