OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C API referencev12.0

optris_sdk_session_source_stats

What one source of a running -- or just-finished -- session did.

Call optris_sdk_session_source_stats_init() first.

Public attributes

struct_size

uint32_t struct_size

Set to sizeof(optris_sdk_session_source_stats).

reserved0

uint32_t reserved0

Padding. Set to zero.

frames_written

uint64_t frames_written

Frames the session has taken into the file for this source.

As for optris_sdk_recording_stats::frames_written: a frame counts here once the container has accepted it, which is a moment before its bytes are necessarily on the disk. Stopping the session is what makes the file complete.

frames_dimension_mismatch

uint64_t frames_dimension_mismatch

Frames refused because they were not the size the source was declared with. Every one is a frame missing from the file.

frames_write_error

uint64_t frames_write_error

Frames lost to a write or encode failure.

frames_dropped_backlog

uint64_t frames_dropped_backlog

Frames refused because the hand-over queue was full under OPTRIS_SDK_SESSION_BACKLOG_DROP_NEWEST.

frames_pts_repaired

uint64_t frames_pts_repaired

Frames whose session stamp did not advance past the previous one's. Each is written at the millisecond after the previous frame's, because a recording keeps whole milliseconds; a frame that advanced by less than a millisecond is moved the same way and is not counted. A large count means the clock has resolution the session cannot use.

frames_from_own_stamp

uint64_t frames_from_own_stamp

Frames whose session time came from the frame's own arrival stamp. Always zero under OPTRIS_SDK_SESSION_STAMP_HANDOVER; see OPTRIS_SDK_SESSION_STAMP_FRAME for why it is worth reading.

first_frame_us

uint64_t first_frame_us

Session time of this source's first frame, in microseconds from the start of the session. Zero before its first frame.

last_frame_us

uint64_t last_frame_us

Session time of its most recent frame. Zero before its first.

max_gap_us

uint64_t max_gap_us

The longest run of session time this source went without delivering a frame, after its first.

outages

uint64_t outages

How many times this source was reported lost, whether or not the camera came back.

outage_total_us

uint64_t outage_total_us

Total session time, in microseconds, spent disconnected. An outage still open when the session stopped counts up to the moment it stopped.

Not the same as max_gap_us, which is the largest hole whatever caused it. This is only the time somebody said the camera was gone.

last_error

char last_error[OPTRIS_SDK_MAX_MESSAGE]

The most recent write failure for this source, or an empty string.