optris::sdk::PipelineChange
A camera's pipeline changed while it was open.
The pipeline is chosen per camera while it opens (see PipelineInfo), and it 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, at a frame-format change and on a reconnect, long after the open returned. The camera keeps streaming and keeps every processing and picture setting; what changes is which pipeline computes its frames.
Delivered through Processing::SetPipelineChangeCallback(), once per change, on the frame thread, before the first frame the new pipeline computed. Processing::Info() answers the same question at any time; this is how an application learns that the answer moved without asking it on every frame.
Public attributes
previous
PipelineKind previous = PipelineKind::kNone
The pipeline the camera was on.
current
PipelineKind current = PipelineKind::kNone
The pipeline it is on now. Never equal to previous.
reason
PipelineReason reason = PipelineReason::kNotApplicable
Why it is on current: PipelineInfo::reason as it reads after the change. kGpuInitFailed for a GPU pipeline that failed or timed out, which is the one an application should treat as a fault.
explanation
std::string explanation
The reason in words, as PipelineInfo::explanation reads after the change: which GPU error, which time bound.