SnapshotOptions
pub struct SnapshotOptions
How a snapshot is written, as opposed to what is in it.
SnapshotOptions::default is the SDK's own set of defaults, read
out of optris_sdk_snapshot_options_init rather than restated
here. That matters for compression_level: a binding that
zero-initialised its way to a default would get "store", not the
documented 6, and would silently write files several times larger.
SnapshotOptions — fields
compression_level: i32
zlib level, 0-9, for the image data, the metadata text, the attachment payloads and a TIFF's DEFLATE strips alike.
tiff_int16: bool
TIFF only. Write uint16 on the same grid as the PNG instead of float32 Kelvin, for readers that cannot handle floating-point samples.
scale: f64
Kelvin per count. 0.0 picks the finest rung that covers the
camera's range maximum; otherwise it 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 Status::InvalidArgument rather than
silently clipping a measurement.
software_override: String
Overrides the Software string written into the file. Empty
means "OTC.SDK <version>".
jpeg_quality: i32
SnapshotFormat::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 SnapshotOptions::software_override, so
the field is read only by a library new enough to have it.
SnapshotFormat::Jpeg: crate::SnapshotFormat::Jpeg