Commit b5a442b
committed
feat: Support display color space interop IDs in I/O
Previously only srgb_rec709_scene was recognized as sRGB for file metadata
and display, now srgb_rec709_display and g22_rec709_display are treated
as sRGB as well.
The reason for g22_rec709_display behavior is that this type of display is
often used to correct for the discrepancy where images are encoded as sRGB but
usually decoded as gamma 2.2 by the physical display. By encoding it as gamma
2.2 and claiming it's sRGB the transfer functions cancel out exactly.
g24_rec709_display is now recognized as having gamma 2.4, and
g24_rec709_scene was replaced by ocio:g24_rec709_scene since the
former is not an official interop ID.
ocio:itu709_rec709_scene and ocio:lin_ciexyzd65_display to complete
the list of interop IDs in OCIO configs that match a CICP.
None of the other display color space interop IDs required changes.
Signed-off-by: Brecht Van Lommel <brecht@blender.org>1 parent 6e5712b commit b5a442b
File tree
5 files changed
+58
-9
lines changed- src
- libOpenImageIO
- raw.imageio
- testsuite/png
- ref
5 files changed
+58
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2087 | 2087 | | |
2088 | 2088 | | |
2089 | 2089 | | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
2090 | 2093 | | |
2091 | 2094 | | |
2092 | 2095 | | |
| |||
2099 | 2102 | | |
2100 | 2103 | | |
2101 | 2104 | | |
2102 | | - | |
2103 | | - | |
2104 | | - | |
2105 | | - | |
2106 | | - | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
2107 | 2112 | | |
2108 | 2113 | | |
2109 | 2114 | | |
| |||
2112 | 2117 | | |
2113 | 2118 | | |
2114 | 2119 | | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
2115 | 2129 | | |
2116 | 2130 | | |
2117 | 2131 | | |
| |||
2813 | 2827 | | |
2814 | 2828 | | |
2815 | 2829 | | |
2816 | | - | |
| 2830 | + | |
2817 | 2831 | | |
2818 | 2832 | | |
2819 | 2833 | | |
| |||
2849 | 2863 | | |
2850 | 2864 | | |
2851 | 2865 | | |
2852 | | - | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
2853 | 2871 | | |
2854 | 2872 | | |
2855 | 2873 | | |
| |||
2864 | 2882 | | |
2865 | 2883 | | |
2866 | 2884 | | |
| 2885 | + | |
2867 | 2886 | | |
2868 | 2887 | | |
2869 | | - | |
2870 | | - | |
| 2888 | + | |
| 2889 | + | |
2871 | 2890 | | |
| 2891 | + | |
2872 | 2892 | | |
2873 | 2893 | | |
2874 | 2894 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
| 580 | + | |
580 | 581 | | |
581 | 582 | | |
582 | 583 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
105 | 116 | | |
106 | 117 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
106 | 117 | | |
107 | 118 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
46 | 52 | | |
0 commit comments