I hope this question is acceptable here. I'm impressed by the results of Filmic in Blender, and I would like to do something similar in my own code, which is for processing photographs and doesn't use Blender. (My code is likely to be released as an open source project eventually.)
Because of this, I'm wondering if it's possible to learn the details of what Filmic does, in a form that would make it possible to re-implement it. Presumably that's possible by reading the source code, but that's a huge amount of work, and if the technical specifications are written up anywhere it would be very helpful to know them.
Alternatively (this might be wishful thinking), is it possible somehow to access Filmic's colour transforms from within a Python script, without working inside Blender? Then I could just use it directly instead of reimplementing it. Essentially what I want to do is take photographs, do the inverse of what Filmic does (i.e. convert them from pixel values to intensities of light), then process them in the light intensity space, then do what Filmic does to render them back as photographs with a realistic film response.