DCP-based processing workflow in RawTherapee - a question

Dear RT experts, I am currently trying to “extract” the DCP code from RT, to use it in PhotoFlow and eventually make it available for other projects…
On this respect, I would have a question concerning the processing steps involved in the DCP conversion.

In RT, a first part of the conversion takes place in RawImageSource::colorSpaceConversion_(), where the hsdApply() function is called for the Hue-Saturation map, and then the RGB data is converted to the working colorspace.

The second part of the conversion takes place in ImProcFunctions::rgbProc(), where the hsdApply() function is called again for the “look” table, and then the DCP tone curve is finally applied.

My question is: what processing steps are applied between the first and the second part of the DCP conversion?

Thanks!

At least channel mixer, Shadows/Highlights and highlight compression if I remember correctly.
For the why you have to ask here :wink:

Thanks Ingo! I suppose this is due to the tone curve that is applied by the DCP profile, while the channel mixer, Shadows/Highlights and highlight compression tools require linear RGB values?