SnapshotOptions
public sealed record SnapshotOptions : IEquatable<SnapshotOptions>
How a snapshot is written, as opposed to what is in it.
Separate from SnapshotInfo because the two answer different questions and have different lifetimes: the metadata describes a capture, these settings describe an encoder. Every property is null or empty by default, meaning "the SDK's own default", so an instance you have not touched writes exactly the file the two-argument overload would.
SnapshotOptions: constructors
public SnapshotOptions()
SnapshotOptions: properties
public Nullable<int> CompressionLevel { get; init; }
zlib level, 0 to 9, or null for the SDK's default of 6.
It applies to the image data, the metadata text, the attachment payloads and a TIFF's DEFLATE strips alike, so one number covers the whole file.
public Nullable<int> JpegQuality { get; init; }
SnapshotFormat.Jpeg only: quality from 2 (best) to 31 (worst), or null for the SDK's default of 4.
The scale is FFmpeg's mjpeg quantiser, so lower is better. The default sits deliberately near the top of the range: a thermal picture carries its information in the colour, and JPEG's quantisation reaches the chroma first. Ignored by every other format.
public Nullable<double> Scale { get; init; }
Kelvin per count, or null for the finest rung that covers the camera's range.
Must be exactly 0.01, 0.025 or 0.05 when set. A scale that cannot represent the frame's own minimum or maximum is refused with SdkConfigurationException rather than silently clipping a measurement.
public string SoftwareOverride { get; init; }
Overrides the Software string written into the file. Empty writes OTC.SDK <version>.
Set this only when the output has to be byte-reproducible across SDK versions: a regression test that compares files, typically. Anything else is better off recording which version wrote the file.
public bool WriteTiffAsInt16 { get; init; }
TIFF only: write 16-bit integers on the same grid as the PNG rather than 32-bit floating-point Kelvin.
For readers that cannot handle floating-point samples. It costs nothing in accuracy (the grid is the SDK's own internal representation), but the reader then has to apply the scale from the metadata itself.