Repository navigation
feat(ocio): pick the OCIO display and view for the presentation and footage - #161
Merged
Merged
Conversation
mcoliver
force-pushed
the
feat/ocio-auto-display-view
branch
from
October 25, 2026 04:53
f860c20 to
bbade8e
Compare
…ootage (#161) Turning an OCIO display on used the config's default display and view (sRGB, ACES SDR) whatever the macOS presentation mode and the footage. In HDR PQ presentation that encoded sRGB into a PQ surface. The display now matches the surface's color space: sRGB for SDR and EDR (the EDR surface is extended sRGB), Rec.2100-PQ for PQ and Rec.2100-HLG for HLG. The view follows the current source's color space: Video (colorimetric) for display-referred video, the ACES 2.0 SDR or HDR 1000 nits view for scene-referred media. Anything the config lacks falls back to its defaults, and choosing a display or view in the menu still wins. The OCIODisplay node is also kept off while its display and view are set, as the menu already does, so it never builds a transform from a view the display doesn't have. Part of #155. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Michael Oliver <mcoliver@gmail.com>
mcoliver
force-pushed
the
feat/ocio-auto-display-view
branch
from
October 26, 2026 02:48
bbade8e to
a592c82
Compare
mcoliver
added a commit
that referenced
this pull request
Oct 27, 2026
…es on OCIO 2.6 With the macOS presentation set to HDR PQ or HLG and no OCIO display chosen, an sRGB still went through the built-in sRGB display onto a surface that expects Rec.2100, so it came out oversaturated and too bright. The main window's display now switches to OCIO when a source loads in those modes, which picks the Rec.2100 display and the view for the footage (#161). A display the user turns OCIO off for stays off. Two fixes on the way: - PyOpenColorIO 2.6 returns (color space, rule index) from getColorSpaceFromFilepath(), and that tuple was used as the color space name. Sources classified by the file rules (a PNG, for example) got an OCIO input with an empty color space and the scene-referred view. They now get e.g. sRGB - Display and Video (colorimetric). - The presentation mode only applies to the main window. NDI, SDI and other outputs got the Rec.2100-PQ display too; they now get the config's default display and no presentation warnings. Signed-off-by: Michael Oliver <mcoliver@gmail.com>
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #155.
Turning an OCIO display on (OCIO > Displays > device > Active) used the config's default display and view, sRGB with the ACES SDR view, whatever the macOS presentation mode or the footage. In HDR PQ presentation that put sRGB values into a PQ surface.
What it picks
RV_DISABLE_METAL_VIEWsdr-video,hdr-video,edr-videoordisplay-linear)MetalViewreads it (UTV_MACOS_PRESENTATION, then the Display/macosPresentation preference), because the view only picks up a change after a restart.ocio_node_from_mediathroughrv_ocio_setupkeep their own choice. The source's color space is passed to it asattributes["input_colorspace"].The OCIODisplay node is also kept off while its display and view are set, as
ocioDisplayEventalready does. Before, setting the view before the display loggedDisplayViewTransform error. The display 'sRGB - Display' does not have view ....Tested
Dev build on macOS, display turned on through the Active menu code path, with each presentation mode × synthetic PQ Rec.2020 / SDR Rec.709 / linear EXR:
Not covered: the per-window display when a window moves to another screen, following the view when the current source changes, and EDR tone mapping (#151).