OptrisOptrisDocumentation

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

optris::sdk::rec::SeriesView

A multipart recording, discovered from any one of its parts.

What this is, and what it deliberately is not: What this is, and what it deliberately is not A view: it answers what the parts are, where they are, how long the whole thing runs and which parts are missing. It opens no decoder, advances no position and performs no seek. Playing a series as one timeline is a separate piece of work above this one, and it is larger: rec::Player holds one container and one video stream through its decode, seek and region-replay paths, and that per-file correctness is an asset to keep rather than a thing to rewrite.

Grouping is by id, not by name: Grouping is by id, not by name The file names are how the candidates are found, and series.id is what decides whether a candidate belongs. A name is a guess -- that is the whole reason _001 became _partNNN -- and a check keyed on the name alone will happily group two generations of file, or two recordings that happen to share a stem, and report a confident wrong answer. Measured: a glob of parted*.mkv across two naming generations reported five parts, two ids and part numbers [0, 1, 2, 1, 2].

A whole recording is a one-part series: A whole recording is a one-part series A file with no series block is not an error and not an empty result: is_series is false and parts holds that one file. A caller can then treat every recording the same way instead of branching, which is the shape that stops "did you handle the single-file case" being a question anybody has to ask.

Public attributes

id

std::string id

Shared by every part. Empty for a whole recording.

is_series

bool is_series = false

Whether the file opened is part of a multipart recording. False means a whole recording, with one entry in parts.

parts

std::vector< SeriesPart > parts

Every part from 0 to the highest found, holes included and in part order. A hole has present == false.

missing

std::vector< uint32_t > missing

Part numbers with no file. Empty when the series is complete.

Separate from parts so that "is anything missing" is one check rather than a scan, because the answer changes what an application should tell its user.

duration_us

uint64_t duration_us = 0

The whole recording's length: the sum of the parts that are present. A series with a hole reports less than it spans, which is the honest answer -- the missing frames are not there to play.

opened_part

uint32_t opened_part = 0

Which part the caller actually named.