Again this is only for the camera to produce its jpg…raw data is raw data of the sensor demosaiced and then converted by a matrix into usable RGB… here is ground zero Developing a RAW photo file 'by hand' - Part 1 Part two of this gets more to this discussion…