copy_mem_image() is called copy_mem_image() is called from dcraw_make_mem_image() with bgr parameter set to 0. So, the order is always RGB -- Alex Tutubalin @LibRaw LLC reply
copy_mem_image() is called from dcraw_make_mem_image() with bgr parameter set to 0.
So, the order is always RGB