optris_sdk_operation_mode
One configuration the camera can be put into.
A mode is a whole operating point: an optics, a temperature range, a resolution and a frame rate, which the camera's calibration supports as a set. They cannot be mixed freely -- a camera offers a fixed list and you pick one of them.
optris_sdk_imager_set_temperature_range() reaches the same machinery through the one axis most callers change. This is the whole thing, and what a settings dialogue needs to populate itself.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_operation_mode).
optics_fov
int32_t optics_fov
The number that characterises this optic. Read optics_unit to know what it means: degrees of field of view for most optics, millimetres of focal length for the rest. The name is historical and stays because this field is part of the mode's identity, below.
optics_text
char optics_text[OPTRIS_SDK_MAX_NAME]
How the optics is described on the camera, UTF-8 and possibly empty.
temp_min_c
float temp_min_c
The temperatures this mode measures between, in the SDK's temperature unit (Celsius unless optris_sdk_set_temperature_unit() chose Fahrenheit). The camera's limits are whole degrees Celsius; in Fahrenheit they read converted (-20..100 C as -4..212 F).
temp_max_c
float temp_max_c
Top of that range.
This field is part of the mode's identity, not a hint. Together with temp_min_c, optics_fov, width, height and framerate it is what optris_sdk_imager_set_active_operation_mode() matches a mode against; optics_text is deliberately not compared. So pass a mode back as you received it, in the unit it was read in, rather than assembling one -- a value rounded on the way through matches nothing.
width
uint32_t width
The frame this mode produces.
height
uint32_t height
Its height in pixels. Not necessarily the sensor's full height: a camera that offers a faster mode by reading fewer rows reports the smaller number here, so read width and height per mode rather than from optris_sdk_device_info.
framerate
uint32_t framerate
Whole frames per second, as the camera's calibration states it.
There is no fractional rate here -- the value is an integer all the way down. It is the mode's nominal rate, not the rate you will observe: optris_sdk_imager_set_subsampled_framerate() drops frames on the host and leaves the camera streaming at this one, so it never changes what this reports.
Selecting a different mode restarts the video format, so the delivered size and rate change together rather than one at a time; a registered optris_sdk_video_format_fn is told when they do.
extendable
int32_t extendable
Non-zero if the range can be stretched past its limits, less accurately. See optris_sdk_imager_set_temperature_range_extension_enabled().
high_precision_available
int32_t high_precision_available
Non-zero if this mode's calibration offers the high-precision temperature table -- Decimal 2 in the calibration, which is the camera's own statement that the range fits in the narrower span the finer table has. Nothing to do with frame rate: the frame rate is identical either way. See optris_sdk_imager_set_temperature_high_precision_enabled() for what the finer table does and does not change today.
Rare. Of the 82 calibrated ranges across the 28 cameras Optris tests with, four offer it, and in every case it is the -20..100 C range.
extended_temp_min_c
float extended_temp_min_c
What the extension in extendable is actually worth: the temperatures this mode measures between once extended, in the SDK's temperature unit. NaN when extendable is zero, which is the "there is no extended range" case -- test with isnan() rather than comparing, and do not fall back to temp_min_c / temp_max_c, which would report the normal range as though it were the extended one.
A range may extend at one end only. Then that end equals its normal limit and the other differs; both fields are still written.
These are the camera's own calibrated numbers, from the same table as temp_min_c and temp_max_c.
Added after high_precision_available. A caller compiled against an older header passes a smaller struct_size and these fields are left alone; that caller's buffer is never written past its own end.
extended_temp_max_c
float extended_temp_max_c
Top of the extended range, NaN under the same rule as extended_temp_min_c.
Equal to temp_max_c when the mode extends at the low end only, so "is there headroom above?" is answered by comparing the two, never by testing this against zero or against extended_temp_min_c.
optics_unit
optris_sdk_optics_unit optics_unit
What optics_fov is measured in, one of: :optris_sdk_optics_unit.
Per mode, not per camera: one camera can carry a wide optic measured in degrees and a long one measured in millimetres, and each is its own set of modes. Read from the camera's calibration, which states it explicitly -- there is no threshold on optics_fov at which degrees become millimetres.
Added after extended_temp_max_c, and subject to the same struct_size rule: a caller compiled against an older header passes a smaller struct_size and this field is left alone; that caller's buffer is never written past its own end.