Add new comment

I thought that unpack() was

I thought that unpack() was filling imgdata.image with non demosaiced data (only one component per pixel on Bayer layouts), and that dcraw_process() was reading those values and filling the missing components in the same buffer using its demosaicing algorithm...

Is dcraw_process() reading it's non demosaiced data from another buffer than imgdata.image?