OptrisOptrisDocumentation

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

optris_sdk_recorded_render

How a recording's picture was drawn, as the file records it.

Call optris_sdk_recorded_render_init() first.

This is what the recording was made with, which is a different question from what the handle draws with now (optris_sdk_imager_get_palette(), optris_sdk_imager_get_color_range()). They agree when a replay is opened and stop agreeing the moment the application changes the scale, and an application showing "recorded on 15..130 C" beside what it is drawing needs both.

Which block this is: Which block this is A recording is not one frame: the palette can be switched while it runs, and under the percentile and sigma modes the range is expected to move. So a file carries one block as it opened and one per frame wherever that opening value would be wrong. This answers for the frame most recently delivered, falling back to the file's own -- the reader's rule, applied for you, so a caller never has to know which of the two it got.

Public attributes

struct_size

uint32_t struct_size

Set to sizeof(optris_sdk_recorded_render).

has_range_min

uint8_t has_range_min

Non-zero when there was a low end to report. Every has_* field works this way; the value beside it is zero when it is zero.

has_range_max

uint8_t has_range_max

Non-zero when there was a high end to report.

has_overlays

uint8_t has_overlays

Non-zero when the file said whether overlays were burned in.

has_thermal_data_reliable

uint8_t has_thermal_data_reliable

Non-zero when the file said whether the temperatures were reliable at the moment it was written.

range_min_c

float range_min_c

Bottom of the colour scale, in the SDK's temperature unit (Celsius unless optris_sdk_set_temperature_unit() chose Fahrenheit) in force when it is read; the file stores Celsius.

range_max_c

float range_max_c

Top of the colour scale, in the SDK's temperature unit.

overlays

uint8_t overlays

Non-zero when overlays were drawn into the stored picture.

thermal_data_reliable

uint8_t thermal_data_reliable

Non-zero when the camera considered its temperatures reliable.

reserved0

uint8_t reserved0[2]

Reserved; always zero. Named so the struct has no implicit padding.

palette

char palette[OPTRIS_SDK_MAX_NAME]

The palette, spelled as the file spells it -- "Iron", "GrayBW", "Rainbow" and so on, or "custom" when the application supplied its own colours. These are the names optris_sdk_imager_set_palette_by_name() takes back.

palette_name

char palette_name[OPTRIS_SDK_MAX_NAME]

What the application called a "custom" palette. A label; empty for a built-in one.

auto_scale_mode

char auto_scale_mode[OPTRIS_SDK_MAX_NAME]

The auto-scale mode that chose the range: "percentile", "absolute", "sigma1", "sigma3".

Empty when a fixed range was in force, which is not the same as the file saying nothing: a fixed range has no mode, and naming one would say the operator had not pinned the scale. Read it with has_range_min and has_range_max -- empty mode plus both ends present is a fixed range, and empty mode with no ends is a file that predates this metadata.