Repository navigation
feat(ocio): show graded video unchanged through any OCIO view - #163
Merged
mcoliver merged 2 commits intoOct 26, 2026
Merged
Conversation
The OCIO display has one view for every source, so a timeline mixing graded video and scene-referred media had to pick: Video (colorimetric) showed EXRs and log footage un-tone-mapped, and an ACES view tone-mapped the already graded video a second time. The OCIO node's color function gets an ocio_color.invertView option: it converts the input to the display/view's display color space and inverts the view into the working space, so the display's forward view gives the input back. UTV turns it on for the display-referred sources it assigned an input to, following the main window's display and view, so video comes through unchanged (within the view's gamut and peak) while scene-referred media still gets the view's tone mapping. A source whose input the user changes is left alone. With that, the view is chosen for the session: an ACES view as soon as there is scene-referred media, Video (colorimetric) for video only. A source added later switches a view UTV chose, unless the user has changed it. An unknown ocio.function now logs an error instead of dereferencing a null processor. Part of #155. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Michael Oliver <mcoliver@gmail.com>
…163) Graded video goes back through the inverse of the view, so the view's gamut has to hold it. With the P3-limited ACES HDR view, Rec.2020 HDR video lost its colors outside P3 (a Rec.2020 green patch was 33 codes off). When the session has Rec.2020 PQ or HLG video, prefer ACES 2.0 - HDR 1000 nits (Rec.2020). 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-display-warnings
branch
from
October 26, 2026 02:48
b016ab5 to
55ef990
Compare
mcoliver
force-pushed
the
feat/ocio-video-through-view
branch
from
October 26, 2026 02:48
81bc685 to
aa8840b
Compare
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. Stacked on #162 → #161. Merge those first and this retargets to
main.Problem: mixed media in one timeline
The OCIO display has one view for every source. A timeline mixing graded video with EXR or log footage had to pick one:
Fix
OCIOIPNode): thecolorfunction gets anocio_color.invertViewoption. With it on, the node converts its input to theocio_display.display/viewdisplay colour space, then inverts that view into the working space. The display's forward view then gives the input back unchanged, within the view's gamut and peak.colorrather than a newocio.function, so older builds opening a session that uses it fall back to the normal conversion instead of failing.ocio.functionalso used to dereference a null processor. It now logs an error.ocio_source_setup):invertView, following the main window's display/view. A display or view change re-syncs them, debounced. Scene-referred sources go through the view as before.Tested
OCIO numerics (PyOpenColorIO 2.6, bundled ACES 2.0 config): inverting the view, then applying it forwards, matches the input:
Branch build on macOS, snapshots compared with a video-only reference:
The OCIO logs had no errors. Before the Rec.2020 view preference, the P3-limited view moved a Rec.2020 green patch by 33 codes. That's why the second commit exists.
Limits