Add new comment

Thanks.

Thanks.
I've added this to the mem_image sample:

	printf("PIX0: image: %d/%d/%d  mem_image: %d/%d/%d\n",
	RawProcessor.imgdata.image[0][0],
	RawProcessor.imgdata.image[0][1],
	RawProcessor.imgdata.image[0][2],
	image->data[0],	image->data[1],	image->data[2]);

just after these lines:

    libraw_processed_image_t *image = RawProcessor.dcraw_make_mem_image(&ret);
    if (image)
    {

Output: PIX0: image: 1603/2064/330 mem_image: 54/64/14

The last triple is similar with your Photoshop numbers. So, it looks like your printing code is wrong.

Yellow cast is because Daylight WB is used (unless use_camera_wb is not set)

-- Alex Tutubalin @LibRaw LLC