RecordedGap
public sealed record RecordedGap : IEquatable<RecordedGap>
Where a recording is discontinuous, and why.
Returned by ThermalCamera.GetRecordedGap about the frame most recently delivered by a replay. That you get one at all is the fact: the frames either side of that one are not contiguous, because the camera stopped delivering in between.
Two things put such a hole into a file, and both are a camera that stopped delivering: a recording held open across a reconnect (RecordingOptions.HoldOpenAcrossReconnect), and an armed pre-roll that spanned an outage. The pre-roll is the case as reported: the ring is deliberately not cleared when a camera drops, because those frames are real and are the history the application asked to keep, so a recording started after the camera came back begins with frames from before the outage and then frames from after it.
RecordedGap: constructors
public RecordedGap(Nullable<ulong> BeforeUs, string Message)
Where a recording is discontinuous, and why.
BeforeUs: Capture time of the last frame before the gap, in microseconds on the camera's own clock, ornullwhen the SDK had no earlier frame to name: the outage preceded the first frame this recording or pre-roll ever saw, and 0 is a legitimate capture time. Do not compute the length of the outage as the current frame's timestamp minus this. A camera's counter can restart at a re-open (that is measured), so the subtraction can come out negative or absurd. It says where the join is, not how long the camera was away.Message: What the SDK knew about the outage, for a log a person reads. Never the contract; this record's existence is. May be empty.
Returned by ThermalCamera.GetRecordedGap about the frame most recently delivered by a replay. That you get one at all is the fact: the frames either side of that one are not contiguous, because the camera stopped delivering in between.
Two things put such a hole into a file, and both are a camera that stopped delivering: a recording held open across a reconnect (RecordingOptions.HoldOpenAcrossReconnect), and an armed pre-roll that spanned an outage. The pre-roll is the case as reported: the ring is deliberately not cleared when a camera drops, because those frames are real and are the history the application asked to keep, so a recording started after the camera came back begins with frames from before the outage and then frames from after it.
RecordedGap: properties
public Nullable<ulong> BeforeUs { get; init; }
Capture time of the last frame before the gap, in microseconds on the camera's own clock, or null when the SDK had no earlier frame to name: the outage preceded the first frame this recording or pre-roll ever saw, and 0 is a legitimate capture time.
Do not compute the length of the outage as the current frame's timestamp minus this. A camera's counter can restart at a re-open (that is measured), so the subtraction can come out negative or absurd. It says where the join is, not how long the camera was away.
public string Message { get; init; }
What the SDK knew about the outage, for a log a person reads. Never the contract; this record's existence is. May be empty.