16 bit conversion from CR3 raw files


I am trying to extract 16 bit information from new cr3 raw files. Somehow, the conversion only works when output_bps=8. If I set it to 16, the output array is garbled and the pixel values still only take values up to 8 bits.

Hope you can help!