first I'd like to say thanks for the great library.
I am creating a software tool for extracting the raw image data from Canon and Nikon cameras for further processing in scientific automation applications. I realized the sensor data extraction without problems. Now I would like to also extract all data that was stored by the camera. It is not so clear to me, what in the structure libraw_colordata_t was written by the camera and what is calculated by the library. Could you please give me some details on this for Canon and Nikon. Especially on cam_xyz, cam_mul, pre_mul, rgb_cam and curve.