Skip to content

Commit 9529077

Browse files
authored
deps: Support for OpenColorIO 2.5 (#4916)
A test needed updating because the set of color spaces in the built-in config are different than for 2.4. Fixes #4915 Signed-off-by: Larry Gritz <[email protected]>
1 parent 0e5c5a5 commit 9529077

File tree

3 files changed

+47
-3
lines changed

3 files changed

+47
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ jobs:
483483
cxx_compiler: g++-13
484484
cxx_std: 20
485485
fmt_ver: 12.0.0
486-
opencolorio_ver: v2.4.2
486+
opencolorio_ver: v2.5.0
487487
openexr_ver: v3.4.0
488488
pybind11_ver: v3.0.1
489489
python_ver: "3.12"
@@ -591,7 +591,7 @@ jobs:
591591
cxx_compiler: g++-14
592592
cxx_std: 20
593593
fmt_ver: 12.0.0
594-
opencolorio_ver: v2.4.2
594+
opencolorio_ver: v2.5.0
595595
openexr_ver: v3.4.0
596596
pybind11_ver: v3.0.1
597597
python_ver: "3.12"

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ NEW or CHANGED MINIMUM dependencies since the last major release are **bold**.
2323
* Imath >= 3.1 (tested through 3.2 and main)
2424
* OpenEXR >= 3.1 (tested through 3.4 and main)
2525
* libTIFF >= 4.0 (tested through 4.7 and master)
26-
* *OpenColorIO >= 2.3* (tested through 2.4 and main)
26+
* *OpenColorIO >= 2.3* (tested through 2.5 and main)
2727
* libjpeg >= 8 (tested through jpeg9e), or libjpeg-turbo >= 2.1 (tested
2828
through 3.1)
2929
* zlib >= 1.2.7 (tested through 1.3.1)
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
getNumColorSpaces = 25
2+
getColorSpaceNames = ['sRGB - Display', 'Gamma 2.2 Rec.709 - Display', 'Display P3 - Display', 'Display P3 HDR - Display', 'P3-D65 - Display', 'Rec.1886 Rec.709 - Display', 'Rec.2100-PQ - Display', 'ST2084-P3-D65 - Display', 'ACES2065-1', 'ACEScc', 'ACEScct', 'ACEScg', 'sRGB Encoded Rec.709 (sRGB)', 'Gamma 1.8 Encoded Rec.709', 'Gamma 2.2 Encoded Rec.709', 'Gamma 2.4 Encoded Rec.709', 'sRGB Encoded P3-D65', 'Gamma 2.2 Encoded AdobeRGB', 'sRGB Encoded AP1', 'Gamma 2.2 Encoded AP1', 'Linear AdobeRGB', 'Linear P3-D65', 'Linear Rec.2020', 'Linear Rec.709 (sRGB)', 'Raw']
3+
Index of 'lin_srgb' = 23
4+
Index of 'unknown' = -1
5+
Name of color space 2 = Display P3 - Display
6+
getNumLooks = 1
7+
getLookNames = ['ACES 1.3 Reference Gamut Compression']
8+
getNumDisplays = 8
9+
getDisplayNames = ['sRGB - Display', 'Display P3 - Display', 'Display P3 HDR - Display', 'Gamma 2.2 Rec.709 - Display', 'P3-D65 - Display', 'Rec.1886 Rec.709 - Display', 'Rec.2100-PQ - Display', 'ST2084-P3-D65 - Display']
10+
getDefaultDisplayName = sRGB - Display
11+
getNumViews = 4
12+
getViewNames = ['ACES 2.0 - SDR 100 nits (Rec.709)', 'Un-tone-mapped', 'Video (colorimetric)', 'Raw']
13+
getDefaultViewName = ACES 2.0 - SDR 100 nits (Rec.709)
14+
getNumRoles = 9
15+
getRoles = ['aces_interchange', 'cie_xyz_d65_interchange', 'color_picking', 'color_timing', 'compositing_log', 'data', 'matte_paint', 'scene_linear', 'texture_paint']
16+
aliases of 'scene_linear' are ['ACES - ACEScg', 'lin_ap1', 'lin_ap1_scene']
17+
resolve('foo'): foo
18+
resolve('linear'): Linear Rec.709 (sRGB)
19+
resolve('scene_linear'): ACEScg
20+
resolve('lin_srgb'): Linear Rec.709 (sRGB)
21+
resolve('srgb'): sRGB Encoded Rec.709 (sRGB)
22+
resolve('ACEScg'): ACEScg
23+
equivalent('lin_srgb', 'srgb'): False
24+
equivalent('scene_linear', 'srgb'): False
25+
equivalent('linear', 'lin_srgb'): False
26+
equivalent('scene_linear', 'lin_srgb'): False
27+
equivalent('ACEScg', 'scene_linear'): True
28+
equivalent('lnf', 'scene_linear'): False
29+
30+
Loaded test OCIO config: oiio_test_v0.9.2.ocio
31+
Parsed color space for filepath 'foo_lin_ap1.exr': ACEScg
32+
Default color space: lin_rec709
33+
Default display: sRGB (~2.22) - Display
34+
Default view for sRGB (~2.22) - Display (from lin_rec709): ACES 1.0 - SDR Video
35+
Default view for sRGB (~2.22) - Display (from 'srgb_tx'): Colorimetry
36+
Color space name from DisplayView transform referencing Shared View: sRGB (~2.22) - Display
37+
Test buffer -- initial values: [[[0.1 0.5 0.9]]] (ACEScg)
38+
ociodisplay #1 (apply default display/view): [[[-2.123 0.671 0.8037]]] (sRGB (~2.22) - Display)
39+
ociodisplay #2 (apply default display/view again): [[[-2.123 0.671 0.8037]]] (sRGB (~2.22) - Display)
40+
ociodisplay #3 (inverse look): [[[-2.252 0.6714 0.8037]]] (sRGB (~2.22) - Display)
41+
ociodisplay #4 (forwards look): [[[-2.123 0.671 0.8037]]] (sRGB (~2.22) - Display)
42+
ociodisplay #5 (inverse look + forwards look): [[[-2.123 0.671 0.8037]]] (sRGB (~2.22) - Display)
43+
44+
Done.

0 commit comments

Comments
 (0)