optris_sdk_recorded_lossy
What was done to a recording's samples that a lossless recording would not have done.
Call optris_sdk_recorded_lossy_init() first.
Why a reader has to be able to ask: Why a reader has to be able to ask A lossy recording and a lossless one are the same format, the same tracks and the same pixel type, and the difference is invisible in the numbers: a temperature that reads 23.4 C may have been measured as 23.4 C or as 23.37 C. Nothing in the data recovers that, and a measurement whose uncertainty is unknowable is not evidence. max_error_k is the one number to put beside a reading taken from such a file.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_recorded_lossy).
quantize_counts
uint32_t quantize_counts
Samples were rounded to a multiple of this many counts, one count being 0.1 K. Zero when the thermal track is exact.
max_error_k
float max_error_k
The largest error the rounding can have introduced: half a step, a difference in degrees of the SDK's temperature unit (kelvin in Celsius, Fahrenheit degrees in Fahrenheit, so half a 0.1 K step reads 0.05 or 0.09). No pixel of any frame in the file is further out than this -- not on average, at all.
visual_quality
int32_t visual_quality
That visual track's quality setting, on its encoder's own scale. Zero when there is none.
visual_codec
char visual_codec[OPTRIS_SDK_MAX_NAME]
The codec a lossy visual track was encoded with, as FFmpeg names it -- "mjpeg". Empty when there is no visual track or it is lossless.