optris_sdk_session_config
Session-wide settings.
Call optris_sdk_session_config_init() first.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_session_config).
max_segment_duration_sec
uint32_t max_segment_duration_sec
Roll over into the next file after this much session time, in seconds. 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.
max_segment_bytes
uint64_t max_segment_bytes
Roll over before a file would pass this size. Zero disables it. Any number you like; a session reaches a given size N times faster than one camera does.
A ceiling for the finished file, trailer included; see: :optris_sdk_recording_options::max_segment_bytes.
output_path
const char * output_path
Output file path (.mkv recommended). Required. Borrowed for the duration of the create call; the SDK copies it.
write_preview
int32_t write_preview
Non-zero to 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.
queue_depth
uint32_t queue_depth
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 640x480 sensor is about 20 MB. Must be at least 1.
backlog_policy
int32_t backlog_policy
What to do when that queue is full. See optris_sdk_session_backlog_policy.
stall_timeout_ms
uint32_t stall_timeout_ms
How long a source may go without a frame before optris_sdk_session_recorder_get_source_state() calls it stalled. 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.