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

Color management nomenclature improvements #4479

Merged

Commits on Oct 6, 2024

  1. Color management nomenclature improvements

    A round of color management improvements (I hope).
    
    We were pretty squirrelly about what "linear" meant. Get more exact.
    Now we will treat "linear" as a semi-obsolete synonym for "lin_rec709"
    (sRGB primaries, but linear response). Change file format readers to
    say "lin_rec709" when they mean it, and not use the more generic alias
    "linear".
    
    "scene_linear", on the other hand, is the internal working color space
    for math. Which concrete color space it is an alias for is determined
    by the OCIO config in use.
    
    Use "g18_rec709" and "g22_rec709" for rec709 + gamma 1.8 or 2.2,
    respectvely.
    
    A few new API calls help out: equivalent_colorspace(),
    set_colorspace(spec,name), set_colorspace_rec709_gamma().
    
    OpenEXR always tagged files as linear by default. It was too
    aggressive about this, so with this PR, now it defaults to lin_rec709
    only for files that appear to be RGB and not have any other clues
    about the color space.
    
    Similarly, the raw reader was too eager to set the Exif:ColorSpace to
    look like sRGB even when it wasn't.
    
    Lots of reference outputs needed to be updated.
    
    This is a potentially big behavior change. But I think it's for the
    better.
    
    Signed-off-by: Larry Gritz <lg@larrygritz.com>
    lgritz committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    c4991ee View commit details
    Browse the repository at this point in the history