CTL
CTL copied to clipboard
ACES CTL modules with main function
Hello,
I'm trying to use the CTL C++ API and noticed that the ImfCtlApplyTransforms
simplified API don't seems to work with ACES CTL anymore. The problem is that it expects a module with a function name matching the file name but the CTL define a main
function.
I looked at the ctlrender code and found that it first checks for a main function and if not present search for a function matching the module name. I'm not sure if this could apply to the ImfCtlApplyTransforms API because in it's current state it first loads all the module, then map the tasks to thread in a pool. Will this work if we load several modules with a main
function at once ?
Because I'm quite new to this codebase, is there a simple way to still use the simplified API while not modifying the CTL files ? If not I guess I should use something similar to the ctlrender code ?