OptrisOptrisDocumentation

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

optris::sdk::rec::RingBuffer::Buffered

One buffered frame, and the state that was true as it arrived.

Why the frame is not enough on its own: Why the frame is not enough on its own A buffered frame used to be stored alone, and the flush queued it as {frame, {}, nullopt, nullopt} -- so the whole pre-roll of a recording went into the file with no region record, no render block and no flag-policy block. Measured with one rectangle region, 3 s of pre-roll and 3 s live: 192 frames, 96 of them with "regions" in their telemetry, the first being frame 96 -- the first live one.

Two consequences, both of them the pre-roll failing at the one job it has. A replay has no region state across the pre-roll, so a region that moved during it replays wrong. And under a percentile or sigma auto-scale the pre-roll's colours are stamped with the file-level range rather than with the range that was in force -- which is the one value in the file a reader cannot work out from the pixels, because the filter that produced it has memory.

It costs what the reporter said it would: the record is built on every frame while pre-roll is armed rather than only while recording, about 260 B of telemetry a frame with one rectangle (153 B without a region, 414 B with one), against the 38 KB the frame itself is.

Public attributes

frame

optris::sdk::ThermalFrame frame

The frame itself, pixels and telemetry, deep-copied.

region_record

std::string region_record

The region record, as frame_record_json.h spells it.

render

std::optional< RenderMeta > render

What the colours meant when this frame arrived.

flag_policy

std::optional< FlagPolicyMeta > flag_policy

Whether the shutter policy was holding a correction back.

gap

std::optional< RecordingGap > gap

Set when the camera had been away immediately before this frame, so that a recording started afterwards carries the marker of the gap rather than joining the two silently. See RecordingGap.