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

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Oct 6, 2024

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 legacy 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.

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 lgritz changed the base branch from main to dev-3.0 October 7, 2024 17:16
@lgritz
Copy link
Collaborator Author

lgritz commented Oct 8, 2024

No comments here, but on chat and elsewhere, I've gotten positive feedback on this, so let's do it.

@lgritz lgritz merged commit a946288 into AcademySoftwareFoundation:dev-3.0 Oct 8, 2024
28 of 29 checks passed
@lgritz lgritz deleted the lg-colorspacenames branch October 8, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant