Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Unbreak input profile : add log profile #1730
Warning : This is my first code contribution in dt and the first time I use C and work with GUIs.
This adds a new mode of tone-mapping before color profile correction, using the same approach as video encoding Log profiles (S-log, N-log, etc.). Details and example can be seen here : https://discuss.pixls.us/t/solving-dynamic-range-problems-in-a-linear-way/9006
It retains the previous gamma method and takes care of the legacy params.
It adds an auto solver to automatically compute the pest settings, namely the dynamic range, according to the target grey and the measurements from the color sampler.
It adds masking/blending options and the ability to add in styles.
The OpenCL code is given but does not work at this point. I need help to debug it. OpenCL is enabled for the gamma method and disabled for now on the log method. See https://firstname.lastname@example.org/msg03355.html
Please find a full step-by-step tutorial of this module with examples here : https://discuss.pixls.us/t/solving-dynamic-range-problems-in-a-linear-way/9006/63?u=aurelienpierre
Aurélien, I will close this PR. There is 60 commits, many merges with master, it is possible to merge locally but impossible to rebase due to conflicts.
I have squashed all those commits into a single one and will propose a new PR with this. A cleaner start for the integration.