darktable-org/darktable — pull request #650 by pedrocr (2014-08-14 21:09:38+00:00)
Title: Swap red/blue pixels on the NX300 so demosaic works properly

Either the red and blue pixels are swapped in the data when compared to their physical positions or the dcraw decoding method produces an image with that swap that then needs to be undone. The rawspeed code seems to be a cleaner version of the dcraw code but without the final swap step.