OptrisOptrisDocumentation

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

optris::sdk::rec::SessionSourceConfig

One camera's place in a session.

Public attributes

stream

StreamConfig stream

Dimensions and nominal frame rate, as for a single-camera recording. StreamConfig::title is filled in from name when it is left empty, so the container's track carries the operator's name for the camera.

name

std::string name

What the operator calls this camera -- "Furnace north", "Line 3 inspection". Free text, written into the session document and used as the track title. May be empty.

device

DeviceMeta device

Which camera this is. Written per source, which is the thing a single-camera file's FileMetadata::device cannot do for N cameras.

extra_json

std::string extra_json

Caller-supplied JSON object, carried verbatim under this source's entry. Empty or invalid JSON is ignored.

kind

SessionSourceKind kind = SessionSourceKind::kThermal

Thermal or visual. See SessionSourceKind.

It decides which write call this source takes: a kThermal source accepts SessionRecorder::WriteFrame() and refuses WriteColorFrame(), and a kColor source the other way round. Refused rather than converted, because the two are not the same measurement and a file that mixed them up would read back as one.

timestamp_source

SessionTimestampSource timestamp_source = SessionTimestampSource::kHandover

Where this source's frames get their session time. See SessionTimestampSource; the default is the moment of hand-over, which is what every caller that does not queue frames means.