-
Notifications
You must be signed in to change notification settings - Fork 684
feat: Support display color space interop IDs in I/O #4972
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
base: main
Are you sure you want to change the base?
Changes from all commits
07ee76e
df9357b
934de72
3a23e94
a9ce0c7
a1da725
68ec7eb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2849,12 +2849,14 @@ Color space conversion | |||||||||||||
| .. code-tab:: c++ | ||||||||||||||
|
|
||||||||||||||
| ImageBuf Src ("tahoe.jpg"); | ||||||||||||||
| ImageBuf Dst = ImageBufAlgo::colorconvert (Src, "sRGB", "acescg", true); | ||||||||||||||
| ImageBuf Dst = ImageBufAlgo::colorconvert (Src, "srgb_rec709_scene", | ||||||||||||||
| "acescg", true); | ||||||||||||||
|
|
||||||||||||||
| .. code-tab:: py | ||||||||||||||
|
|
||||||||||||||
| Src = ImageBuf("tahoe.jpg") | ||||||||||||||
| Dst = ImageBufAlgo.colorconvert (Src, "sRGB", "acescg", True) | ||||||||||||||
| Dst = ImageBufAlgo.colorconvert (Src, "srgb_rec709_scene", "acescg", | ||||||||||||||
| True) | ||||||||||||||
|
|
||||||||||||||
| .. code-tab:: bash oiiotool | ||||||||||||||
|
|
||||||||||||||
|
|
@@ -2950,14 +2952,15 @@ Color space conversion | |||||||||||||
| .. code-tab:: c++ | ||||||||||||||
|
|
||||||||||||||
| ImageBuf Src ("tahoe.exr"); | ||||||||||||||
| ImageBuf Dst = ImageBufAlgo::ociodisplay (Src, "sRGB", "Film", "lnf", | ||||||||||||||
| "", true, "SHOT", "pe0012"); | ||||||||||||||
| ImageBuf Dst = ImageBufAlgo::ociodisplay (Src, "srgb_rec709_scene", | ||||||||||||||
| "Film", "lnf", "", true, | ||||||||||||||
| "SHOT", "pe0012"); | ||||||||||||||
|
Comment on lines
+2955
to
+2957
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In this example, "sRGB" is actually the name of the display, not the source color space, so it doesn't make sense to replace with "srgb_rec709_scene" here... however, I wouldn't mind replacing "lnf" (the source color space) with "srgb_rec709_scene".
Suggested change
|
||||||||||||||
|
|
||||||||||||||
| .. code-tab:: py | ||||||||||||||
|
|
||||||||||||||
| Src = ImageBuf("tahoe.jpg") | ||||||||||||||
| Dst = ImageBufAlgo.ociodisplay (Src, "sRGB", "Film", "lnf", | ||||||||||||||
| "", True, "SHOT", "pe0012") | ||||||||||||||
| Dst = ImageBufAlgo.ociodisplay (Src, "srgb_rec709_scene", "Film", | ||||||||||||||
| "lnf", "", True, "SHOT", "pe0012") | ||||||||||||||
|
Comment on lines
+2962
to
+2963
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above, "sRGB" is supposed to be the name of the display. This suggestion is a twist on the above; it resolves the default view for the default display when the input color space ~= "srgb_rec709_scene"
Suggested change
|
||||||||||||||
|
|
||||||||||||||
| .. code-tab:: bash oiiotool | ||||||||||||||
|
|
||||||||||||||
|
|
||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3610,7 +3610,8 @@ Color manipulation | |||||
| .. code-block:: python | ||||||
|
|
||||||
| Src = ImageBuf ("tahoe.jpg") | ||||||
| Dst = ImageBufAlgo.colorconvert (Src, "sRGB", "scene_linear") | ||||||
| Dst = ImageBufAlgo.colorconvert (Src, "srgb_rec709_scene", | ||||||
| "scene_linear") | ||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -3660,7 +3661,7 @@ Color manipulation | |||||
| .. code-block:: python | ||||||
|
|
||||||
| Src = ImageBuf ("tahoe.exr") | ||||||
| Dst = ImageBufAlgo.ociodisplay (Src, "sRGB", "Film", "lnf", | ||||||
| Dst = ImageBufAlgo.ociodisplay (Src, "srgb_rec709_scene", "Film", "lnf", | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another twist: resolve the default view for the "sRGB" display when the input color space ~= "srgb_rec709_scene"
Suggested change
|
||||||
| context_key="SHOT", context_value="pe0012") | ||||||
|
|
||||||
|
|
||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(config-agnostic behavior)