Add new comment

Depending of what you do in

Depending of what you do in your code, you may prefer

- do not call raw2image()
- and use imgdata.rawdata.raw_image[] array

This way will not allocate extra (4-component per pixel) image array. It is preferred if you, for example, do own processing in floating point: image[] array is not needed in this case.

For non-bayer images:
- imgdata.rawdata.raw_image array will be NULL after unpack()
- and one of color3_image or color4_image will be not NULL.

-- Alex Tutubalin @LibRaw LLC