optris_sdk_session_source_info
What a session file says about one of its sources, plus what a scan of the file found out about it.
Call optris_sdk_session_source_info_init() first.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_session_source_info).
index
int32_t index
Source index, matching the recording side.
video_stream_index
int32_t video_stream_index
The container's stream index for this source's video track, for anyone correlating with ffprobe output, or -1.
kind
int32_t kind
Thermal or visual. See optris_sdk_session_source_kind. Check this before reading a temperature: a visual source has none.
width
uint32_t width
Frame width in pixels.
height
uint32_t height
Frame height in pixels.
frame_rate
float frame_rate
Nominal frame rate as the container declares it. What the source actually delivered is frame_count over the span between first_frame_us and last_frame_us, and on a camera that drifts the two differ -- which is what sessions exist for.
reserved0
uint32_t reserved0
Padding. Set to zero.
frame_count
uint64_t frame_count
Frames this source has in the file, counted when it was opened.
first_frame_us
uint64_t first_frame_us
Session time of its first frame, in microseconds. A source that joined late has one well past zero, and that is real rather than an artefact -- it is when the camera actually started.
last_frame_us
uint64_t last_frame_us
Session time of its last frame. A source that ended early has one well short of the session duration, for the same reason.
max_gap_us
uint64_t max_gap_us
The longest hole in this track, in microseconds.
Worth reading before playing anything -- but a hole does not say why. Use optris_sdk_session_player_get_outage_count() for the spans somebody recorded a reason for.
name
char name[OPTRIS_SDK_MAX_NAME]
What the operator called this camera, or an empty string.
model
char model[OPTRIS_SDK_MAX_MODEL]
Camera model, or an empty string.
serial
char serial[OPTRIS_SDK_MAX_SERIAL]
Camera serial, or an empty string.