optris::sdk::rec::Telemetry
Mirrors the optris::sdk::FrameMetadata fields that the recorder serializes as JSON alongside each video frame.
Units: Units As a replay hands it out (the frame and picture callbacks of Player and SessionPlayer), its temperatures are in the SDK's temperature unit (Celsius unless SetTemperatureUnit() chose Fahrenheit), and so are those of render and flag_policy. In the file and in FrameRecord, the file's own record, they are Celsius, by design.
Public attributes
sequence
uint32_t sequence = 0
Sequence number assigned by the SDK at capture.
timestamp_us
uint64_t timestamp_us = 0
Capture timestamp in microseconds.
flag_temp_c
std::optional< float > flag_temp_c
Shutter flag temperature at capture, when the camera reported one.
Absent means the frame carried no flag reading, not "unknown" and not "zero". 0 C is a temperature a shutter can be at, and it is also what a camera whose telemetry row never decodes leaves behind -- measured on the PI 160x120 @ 100 Hz, which is the one format of seventy in packaging/Formats.def with too few metadata pixels to carry a row. A reader of such a recording could not tell a cold shutter from no shutter reading at all.
Written as flag_temp_c in the per-frame JSON, and present in every file written before this was optional, because the writer put the key there unconditionally. So an existing recording reads back as carrying a reading, which is exactly what it was presented as when it was made -- the same default, for the same reason, as chip_temp_c below.
A replay turns this into FrameMetadata::flag_temp_known, so an application asks a recording the same question it asks a camera.
box_temp_c
std::optional< float > box_temp_c
Camera housing temperature at capture, when the camera reported one. The housing's half of flag_temp_c, on the same rule and for the same reason; written as box_temp_c.
chip_temp_c
std::optional< float > chip_temp_c
The detector temperature at capture, when the camera had one.
Absent means the frame carried no detector reading, not "unknown" and not "zero". The detector is the one probe whose telemetry row does not state a temperature -- it is a raw ADC count through a shared curve and this unit's own affine correction -- and on a camera whose finished value lands outside the band a detector can physically be at there is no reading to record. Measured on a PI 450 hw 410 and a PI 640i hw 602.
Written as chip_temp_c in the per-frame JSON, and present in every file written before this was optional, because the writer put the key there unconditionally. So an existing recording reads back as carrying a reading, which is exactly what it was presented as when it was made -- the opposite default from is_repeated_frame below, and for the opposite reason: that key genuinely was missing from older files.
A replay turns this into FrameMetadata::chip_temp_known, so an application asks a recording the same question it asks a camera.
flag_open
bool flag_open = true
Whether the shutter flag is open at capture time.
is_repeated_frame
bool is_repeated_frame = false
Whether the SDK held the previous frame and delivered it again rather than converting this one, at capture time.
Mirrors FrameMetadata::is_repeated_frame, and exists so a replay answers the same question a live camera does. Without it a consumer that trusts the bit would get one answer from a camera and a different one from a recording of that camera, with nothing to compare -- the same shape as the defect where EnumerateDevices() said 0 x 0 while opening the same camera gave 160 x 120.
Written as is_repeated_frame in the per-frame JSON. Absent in files written before this existed, and false is the right answer for them: nothing held a frame in a way the file could record, so every frame in such a file was converted from its own pixels.
ambient_temp_c
std::optional< float > ambient_temp_c
The ambient temperature that this frame's measurement used.
Written as ambient_temp_c in the per-frame JSON, and present only when the camera reported a valid one -- which it does whenever an ambient is in force at all, estimated or pinned.
This is the frame-level half of what FileMetadata::radiation.ambient_temp_c says once for the file, and it exists because the two can differ. The file-level value is the ambient in force when the recording started; with estimation on, the camera reworks its own estimate from the housing probe as the session goes, so a long recording ends on a different ambient than it began with and the file said nothing about it. A replay of an estimating camera could not say which ambient any given frame had been measured against.
Absent means the frame carried none: a recording made before this field existed, one from another writer, or a camera with estimation off and no ambient ever configured. A reader falls back to the file-level value then, which is what Player::GetEffectiveAmbientTemperature() does -- so absent here is "the file's one answer still applies", the same rule render keeps, and not "unknown".
render
std::optional< RenderMeta > render
How this frame's colours were chosen, when the file says so and the file-level answer would have been wrong for this frame.
Absent has one meaning and it is not "unknown": the file-level RenderMeta still applies here. It is therefore absent on every frame of a fixed-range recording, on every frame before the first change of a recording that changed later, and on every frame of every recording written before this field existed -- in all three cases a reader falls back to FileMetadata::render and is right.
Present means the file-level value would have been wrong for this frame, and this block is the complete answer for it: no field of it is a delta against anything.
flag_policy
std::optional< FlagPolicyMeta > flag_policy
Whether the camera refused a due shutter correction while this frame was being recorded, and the drift it refused against.
Present means this frame's temperatures are degraded, by roughly the drift_c it carries, and permanently: a recording stores finished temperatures, so no reprocessing on replay takes the drift out. It is the frame-level half of what FileMetadata::flag_policy says once for the file.
Absent means nothing was held back on this frame -- a complete answer on its own, needing no fallback to the file-level block, which is how it differs from render. Absent on every frame of every recording made at the default policy, and on every frame of every recording written before the setting existed.
See optris::sdk::FlagWhileRecording for what causes this and why anyone would ask for it.
gap
std::optional< RecordingGap > gap
Present on the first frame after a hole in the recording, and on no other frame. See RecordingGap.
Present means the frames either side of this one are not contiguous: the camera stopped delivering in between. Absent means the join is sound, which is the complete answer on its own -- the same rule as flag_policy and for the same reason, and not render's, where absence sends a reader to the file-level block.
Absent on every frame of every recording written before this existed, and on every frame of every recording that ran without an outage.