Add new comment

BTW, is byte type signed or

BTW, is byte type signed or unsigned?

Your image sample is not bayer patten, but something strange (in bayer pattern you'll see image, may be with wrong colors or reduced brigtness, but image subject will be visible).

Most likely, this is signed/unsigned conversion problem, or wrong row stride.

Use samples/mem-image.cpp as an example of dcraw_make_mem_image() call, make sure this example can process your DNG, than modify this code for your needs.

-- Alex Tutubalin @LibRaw LLC