OpenColorIO-Config-ACES icon indicating copy to clipboard operation
OpenColorIO-Config-ACES copied to clipboard

Implement support for Sony S-Log2.

Open KelSolaar opened this issue 2 years ago • 3 comments

There have been user requests for Sony S-Log 2 support on Slack:

image

References

  • #87

KelSolaar avatar Feb 23 '23 19:02 KelSolaar

Here are the parameters to use with an OCIO CameraLogTransform to implement the SLog2 function. These values are generated by starting with the CTL implementation and rearranging terms. All numeric constants used here come from the CTL, which I'm assuming is the definitive reference.

    b = 64. / 1023.
    w = 940. / 1023.
    ab = 90. / 1023.
    linSideSlope = 155. / (0.9 * 219.)
    linSideOffset = 0.037584
    logSideSlope = 0.432699 * (w - b)
    logSideOffset = (0.616596 + 0.03) * (w - b) + b
    linearSlope = 3.53881278538813 * (w - b) / 0.9
    base = 10.0
    logSideBreak = ab
    linSideBreak = ( np.power( base, (logSideBreak - logSideOffset) / logSideSlope ) - linSideOffset ) / linSideSlope

doug-walker avatar Jul 29 '23 06:07 doug-walker

Thank you!

KelSolaar avatar Jul 30 '23 07:07 KelSolaar

One of the challenges with adding an S-Log2 color space is that there are actually three S-Log2 color spaces in the OCIO v1 ACES configs. The working group has decided to postpone adding this until we get a more specific proposal/request for what flavor of S-Log2 to add.

doug-walker avatar Aug 21 '23 22:08 doug-walker