Problem with Samsung NX300 files with LibRaw+RawSpeed


If you compile LibRaw with RawSpeed and extract a tiff for a NX300 file you will see that the developed image is different as compared to the developed image with LibRaw without RawSpeed. By different I mean very different, blues become orange, yellows become blue etc. You can see this problem in the NX300 sample in the rawsamples website

By inspecting the uncompressed data, it looks like with RawSpeed we are getting data in a GBRB pattern, while without RawSpeed the data is in GRBG pattern. This would be OK, except that the cdesc field in imgdata is not changed to reflect this change in the pattern.

Are we missing something? Is there a different place we can check to tell that RawSpeed decompressed this (or any other file) into a different pattern?



I do not see any problems

I do not see any problems with RawSpeed and RAW_SAMSUNG_NX300.SRW sample.

What RawSpeed version do you use?

-- Alex Tutubalin @LibRaw LLC

I'm using LibRaw 0.18.2 and rawspeed-master, the old version

I downloaded both packages again today (0.18.2 and rawspeed-master) and recompiled them from scratch in two separate folder with and without rawspeed. The tiff generated by dcraw_emu.exe with RawSpeed shows a blue sunflower, while the one without RawSpeed shows a proper yellow sunflower.

I did not change anything in the configurations except whatever was needed to get it to compile.

Here is a comparison image, from left to right original, with rawspeed and without.

I could zip up my working folder and upload it if that would help.