optris::sdk::rec::CoverMeta
FlagPolicyMeta -- whether the shutter was held back while this was recorded -- lives in types.h for the same reason RenderMeta does: Telemetry has to carry one per frame, and types.h is the header Telemetry is in. It is still optris::sdk::rec::FlagPolicyMeta and this header still brings it in. What the cover image is a picture of, and what drew it.
Why this is not the file-level: Why this is not the file-level render A recording's cover is drawn from one frame chosen out of a short look-ahead -- not necessarily the first one, because the first frames of a camera are converted before the first non-uniformity correction has a reference and colorize to one flat rectangle. So the colour scale behind the cover is that frame's, and under an auto-scale mode it is not the file's: FileMetadata::render records the state as the file opened, and under "percentile" or either sigma mode it carries no range at all. A reader drawing a scale bar beside the cover has to be told, because it cannot find out -- it would have to decode the video track to the right frame, which is the whole thing the cover exists to avoid.
Absent in a file with no cover, and in every recording written before this existed.
Public attributes
name
std::string name
Attachment name, e.g. "cover.jpg". What a reader asks the container for.
pts_us
std::optional< int64_t > pts_us
Presentation time of the frame the cover shows, in microseconds from the start of this file -- the same clock the video track's PTS is on, so a player can seek to it. Absent only if the writer could not determine one.
render
std::optional< RenderMeta > render
The palette and colour scale the cover was actually drawn with. range_min_c and range_max_c are the ends of the colour bar, which is what a legend beside the picture has to show.