TimelineSpan
public sealed record TimelineSpan : IEquatable<TimelineSpan>
One span of history on disk.
TimelineSpan.From and TimelineSpan.To are on the camera's clock (the same domain the per-frame telemetry carries) because that is what ThermalCamera.SaveClip(…) takes its in and out points in.
The open segment is included, with its TimelineSpan.To at the last frame written, so a timeline widget can draw up to the present rather than stopping a segment short. It cannot be cut from until it closes.
TimelineSpan: constructors
public TimelineSpan(string Path, TimeSpan From, TimeSpan To, Nullable<DateTimeOffset> UnixTime, ulong Frames, ulong SegmentBytes, bool AllIntra)
One span of history on disk.
Path: Absolute path of the segment file.From: Capture time of its first frame.To: Capture time of its last frame.UnixTime: Host wall clock when its first frame was written. A label for a transport bar, not a seek key;nullfor a segment adopted from a run whose catalog did not survive.Frames: Frames in it, counted from the container.SegmentBytes: Its size on disk.AllIntra: Whether every frame in it is a seek anchor, so a cut inside it needs no snapping back. Read from the container rather than from the setting that was in force, so a history spanning a settings change describes each segment correctly.
TimelineSpan.From and TimelineSpan.To are on the camera's clock (the same domain the per-frame telemetry carries) because that is what ThermalCamera.SaveClip(…) takes its in and out points in.
The open segment is included, with its TimelineSpan.To at the last frame written, so a timeline widget can draw up to the present rather than stopping a segment short. It cannot be cut from until it closes.
TimelineSpan: properties
public bool AllIntra { get; init; }
Whether every frame in it is a seek anchor, so a cut inside it needs no snapping back. Read from the container rather than from the setting that was in force, so a history spanning a settings change describes each segment correctly.
public ulong Frames { get; init; }
Frames in it, counted from the container.
public TimeSpan From { get; init; }
Capture time of its first frame.
public string Path { get; init; }
Absolute path of the segment file.
public ulong SegmentBytes { get; init; }
Its size on disk.
public TimeSpan To { get; init; }
Capture time of its last frame.
public Nullable<DateTimeOffset> UnixTime { get; init; }
Host wall clock when its first frame was written. A label for a transport bar, not a seek key; null for a segment adopted from a run whose catalog did not survive.