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

ociodisplay gets an inverse control #3650

Merged
merged 1 commit into from
Nov 10, 2022

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Nov 3, 2022

Fixes #3648

Copy link

@doug-walker doug-walker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this Larry!

@@ -1848,7 +1876,7 @@ bool
ImageBufAlgo::ociodisplay(ImageBuf& dst, const ImageBuf& src,
string_view display, string_view view,
string_view from, string_view looks, bool unpremult,
string_view key, string_view value,
bool inverse, string_view key, string_view value,
ColorConfig* colorconfig, ROI roi, int nthreads)
{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't know how to select the line 1872, but don't you want to pass inverse there too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I think you're right

{
ImageBuf result;
bool ok = ociodisplay(result, src, display, view, from, looks, unpremult,
key, value, colorconfig, roi, nthreads);
unpremult, key, value, colorconfig, roi, nthreads);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unpremult --> inverse

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ouch, yes

@lgritz
Copy link
Collaborator Author

lgritz commented Nov 5, 2022

Updated the PRs to address @doug-walker's suggestions.

Copy link

@doug-walker doug-walker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@lgritz
Copy link
Collaborator Author

lgritz commented Nov 5, 2022

Because this isn't tested, I'm going to hold off on a merge while I do a little tinkering...

I'm exploring more direct support for OpenColorIO 2.2 and its built-in configs, which will allow me to test display transforms (merely because it has some, unlike the sample config that's in the testsuite now).

If minimal support of this is easy to achieve, I'll add it to this PR (even if the full range of tests only work when we're building against OCIO 2.2). But if that looks like a bigger job that doesn't make sense to append here, I'll merge this PR first (despite not being tested) and the follow up with a separate one with 2.2 support and more testing.

@lgritz
Copy link
Collaborator Author

lgritz commented Nov 10, 2022

I'm going to merge this now, because the follow-on has grown to be more complex.

@lgritz lgritz merged commit d9f326f into AcademySoftwareFoundation:master Nov 10, 2022
@lgritz lgritz deleted the lg-ociodisplay branch November 10, 2022 06:16
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.

[FEATURE REQUEST] Add an inverse modifier to oiiotool's --ociodisplay option
2 participants