You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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. g24_rec709_display is now recognized as gamma 2.4.
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.
This adds new is_colorspace_interop_srgb and get_colorspace_rec709_gamma,
functions and uses them to make logic between file formats consistent,
and fixing some existing issues with gamma metadata.
There is existing consistency in that some file formats assume an empty
oiio:ColorSpace to mean sRGB, and some don't. This inconsistency is
preserved using the default_to_rgb argument.
Signed-off-by: Brecht Van Lommel <brecht@blender.org>
0 commit comments