OptrisOptrisDocumentation

Documentation/OTC SDK/Optris.Sdk — C# API referencev12.0

SessionOptions

public sealed record SessionOptions : IEquatable<SessionOptions>

Session-wide settings.

Every value here has the default a C++ caller gets from a default-constructed SessionConfig, so a session created with nothing but a path behaves identically in both languages.

SessionOptions: constructors

public SessionOptions()

SessionOptions: properties

public SessionBacklogPolicy BacklogPolicy { get; init; }

What to do when that queue is full.

public ulong MaxSegmentBytes { get; init; }

Roll over before a file would pass this size. Zero disables it. Any size you like; a session reaches a given size N times faster than one camera does.

A ceiling for the finished file, trailer included; see RecordingOptions.MaxSegmentBytes.

public TimeSpan MaxSegmentDuration { get; init; }

Roll over into the next file after this much session time. TimeSpan.Zero disables duration segmentation.

Measured on the session clock and not on any camera's stamp: two cameras' stamps are not on one clock, so segmenting on one of them would cut the file at a moment that means nothing to the other.

public uint QueueDepth { get; init; }

How deep the hand-over queue is, in frames, across all sources.

Every queued frame is a full copy of the pixels, so this is a memory setting as much as a latency one: 32 frames of a 640×480 sensor is about 20 MB. Must be at least 1.

public TimeSpan StallTimeout { get; init; }

How long a source may go without a frame before RecordingSession.GetSourceState(…) calls it stalled. TimeSpan.Zero, the default, means never.

Nothing acts on this. It changes what a getter reports and nothing else: a stalled camera is a fact about the world, and the SDK is not in a position to decide whether the operator wants the session abandoned over it.

public bool WritePreview { get; init; }

Write a cover image into every file this session produces.

The picture is of the first frame the file receives, which in a session is whichever source delivers first. A session is several cameras of one scene, so one of them is a fair preview of the file; which one is not chosen, because the moment the container's header can still take an attachment is the moment the first frame arrives and no later.