OptrisOptrisDocumentation

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

optris_sdk_snapshot_options

How to write the file, as opposed to what is in it.

Public attributes

struct_size

uint32_t struct_size

Set to sizeof(optris_sdk_snapshot_options), or call optris_sdk_snapshot_options_init().

compression_level

int32_t compression_level

zlib level, 0-9. Applies to the PNG image data, the compressed metadata text, the attachment payloads and the TIFF's DEFLATE strips alike. 6 by default.

tiff_int16

int32_t tiff_int16

TIFF only. Non-zero writes uint16 on the same grid as the PNG instead of float32 Kelvin, for readers that cannot handle floating-point samples.

scale

double scale

Kelvin per count. 0.0 picks the finest rung that covers the camera's range maximum; otherwise must be exactly 0.01, 0.025 or 0.05. A scale that cannot represent the frame's own minimum or maximum is refused with OPTRIS_SDK_ERROR_INVALID_ARGUMENT rather than silently clipping a measurement.

software_override

char software_override[OPTRIS_SDK_MAX_NAME]

Overrides the Software string written into the file. Empty means "OTC.SDK <version>". Set this only when the output has to be byte-reproducible across SDK versions.

jpeg_quality

int32_t jpeg_quality

OPTRIS_SDK_SNAPSHOT_JPEG only. 2 (best) to 31 (worst), as FFmpeg's mjpeg encoder scales it. Ignored by every other format.

4 by default, deliberately near the top of the range: a thermal picture carries its information in the colour, and JPEG's quantisation reaches the chroma first.

Appended after software_override. A caller compiled against an older header passes its own smaller struct_size and this field is not read, so such a caller gets the default -- which is the only thing it could have meant, having no field to say otherwise.

reserved0

int32_t reserved0

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