optris::sdk::rec::LossyMeta
What was done to the samples in this file that a lossless recording would not have done.
Why a file has to carry this: Why a file has to carry this Because 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 pixels: a temperature that reads 23.4 C may have been measured as 23.4 C or as 23.37 C. A reader months later, or an auditor, cannot recover that from the data, and a measurement whose uncertainty is unknowable is not evidence. So the writer states it.
Absent means lossless. Every recording written before this existed is lossless, so absence is a complete and correct answer for those too -- the same reasoning FlagPolicyMeta rests on.
Where it is found, and in two places on purpose: Where it is found, and in two places on purpose - FileMetadata::lossy, in otc-meta.json: the whole block. - the OTC_LOSSY container tag: a one-line summary, because a plain ffmpeg -i in.mkv -c copy out.mkv keeps top-level tags and drops attachments. A remuxed lossy recording must not come back claiming to be lossless, and without the tag it would.
Public attributes
quantize_counts
std::optional< uint32_t > quantize_counts
Samples were rounded to a multiple of this many counts. Absent when the thermal track is exact.
max_error_k
std::optional< float > max_error_k
The largest error rounding can have introduced: half a step. Written out rather than left to the reader to derive, so that a reader which knows nothing about this SDK's count encoding still learns the one number that matters.
In kelvin in the file and in FileMetadata::lossy. As optris::sdk::Player::GetRecordedLossy() hands it out, a difference in degrees of the SDK's temperature unit (kelvin-sized in Celsius, Fahrenheit-sized once SetTemperatureUnit() chose Fahrenheit).
visual_codec
std::string visual_codec
The codec a lossy visual track was encoded with, as FFmpeg names it -- "mjpeg". Absent when there is no visual track or it is lossless.
visual_quality
std::optional< int > visual_quality
That track's quality setting, on the encoder's own scale.