Add new comment

And also:

And also:
data field in libraw_processed_image_t is 'unsigned char', while you're using 16-bit output.
So you dump 8-bit wise pieces, not real 16-bit values.

-- Alex Tutubalin @LibRaw LLC