PipelineChange
public sealed record PipelineChange : IEquatable<PipelineChange>
A camera's pipeline changed while it was open, delivered through ThermalCamera.OnPipelineChanged(…).
The pipeline is chosen per camera while it opens, 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. The camera keeps streaming and keeps its processing and picture settings.
PipelineChange: constructors
public PipelineChange(PipelineKind Previous, PipelineKind Current, PipelineReason Reason, string ReasonText)
A camera's pipeline changed while it was open, delivered through ThermalCamera.OnPipelineChanged(…).
Previous: The pipeline the camera was on.Current: The pipeline it is on now. Never equal toPrevious.Reason: Why it is onCurrent, asThermalCamera.PipelineInforeads after the change.PipelineReason.GpuInitFailedfor a GPU pipeline that failed or timed out, which is the one to treat as a fault.ReasonText: The reason in words: which GPU error, which time bound.
The pipeline is chosen per camera while it opens, 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. The camera keeps streaming and keeps its processing and picture settings.
PipelineChange: properties
public PipelineKind Current { get; init; }
The pipeline it is on now. Never equal to Previous.
public PipelineKind Previous { get; init; }
The pipeline the camera was on.
public PipelineReason Reason { get; init; }
Why it is on Current, as ThermalCamera.PipelineInfo reads after the change. PipelineReason.GpuInitFailed for a GPU pipeline that failed or timed out, which is the one to treat as a fault.
public string ReasonText { get; init; }
The reason in words: which GPU error, which time bound.