Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement support for Sony S-Log2. #95

Open
KelSolaar opened this issue Feb 23, 2023 · 3 comments
Open

Implement support for Sony S-Log2. #95

KelSolaar opened this issue Feb 23, 2023 · 3 comments
Labels
configs for separation purposes

Comments

@KelSolaar
Copy link
Contributor

KelSolaar commented Feb 23, 2023

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

image

References

@doug-walker
Copy link
Contributor

doug-walker commented Jul 29, 2023

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

@KelSolaar
Copy link
Contributor Author

Thank you!

@doug-walker
Copy link
Contributor

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.

@carolalynn carolalynn added the configs for separation purposes label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configs for separation purposes
Projects
None yet
Development

No branches or pull requests

3 participants