Copy missing sample values from the previous sample.
Copy missing sample values from the previous sample.

The Uwatec Smart stores a sample value only when it's diffent from the
previous value. While this compressed format does save some space on the
device, it is less practical for use in an application. The original
uncompressed data can easily be obtained by copying missing sample
values from the previous sample.

The implementation uses a two pass approach. In the first pass, all
sample values that are explicitly stored in the profile date are
collected. Any sample value that is not present, will automatically
retain the value from the previous sample. In the second pass, all
sample values are passed back to the application. The presence of an
absolute value is used to decide which sample types are present in the
data.

josh-wambua/libdivecomputer,glance-/libdivecomputer,venkateshshukla/libdivecomputer,henrik242/libdivecomputer,henrik242/libdivecomputer,venkateshshukla/libdivecomputer,glance-/libdivecomputer,josh-wambua/libdivecomputer,Poltsi/libdivecomputer-vms