Fix the depth decoding for the Mares Nemo Wide.
The depth is reduced to a 11 bit value. The meaning of the now unused bit is still unknown.
This commit is contained in:
parent
f526cdd3d9
commit
b57423cc54
@ -298,7 +298,7 @@ mares_nemo_parser_samples_foreach (parser_t *abstract, sample_callback_t callbac
|
||||
|
||||
unsigned int idx = 2 + parser->sample_size * i;
|
||||
unsigned int value = array_uint16_le (data + idx);
|
||||
unsigned int depth = value & 0x0FFF;
|
||||
unsigned int depth = value & 0x07FF;
|
||||
unsigned int ascent = (value & 0xC000) >> 14;
|
||||
unsigned int violation = (value & 0x2000) >> 13;
|
||||
unsigned int deco = (value & 0x1000) >> 12;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user