Add new comment

Understood the problem.

Understood the problem.

make_mem_image() is not targeted to make copy of intermediate state if imgdata.image[] content.
it is targeted to create 3-component image (RGB) from 4-component imgdata.image (also, rotation, 16-8 bit conversion and gamma curve is applied).

make_mem_image() assumes that all processing is already done, so RGB image is contained in first 3 components of 4-component imgdata.image[][4] pixel.

If one need to access unmodified imgdata.image data it should be done directly.

-- Alex Tutubalin @LibRaw LLC