Skip to content

Commit c07614d

Browse files
committed
Don't map g22_rec709_display to any CICP code for now
This is unlikely meant to be written with Gamma 2.2 color metadata, so keep behavior unchanged until there is decision on what to do.
1 parent 8b4b874 commit c07614d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/libOpenImageIO/color_ocio.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,8 +2099,11 @@ constexpr ColorInteropID color_interop_ids[] = {
20992099
CICPMatrix::Rec2020_NCL },
21002100
{ "hlg_rec2020_display", CICPPrimaries::Rec2020, CICPTransfer::HLG,
21012101
CICPMatrix::Rec2020_NCL },
2102-
{ "g22_rec709_display", CICPPrimaries::Rec709, CICPTransfer::Gamma22,
2103-
CICPMatrix::BT709 },
2102+
// No CICP mapping to keep previous behavior unchanged, as Gamma 2.2
2103+
// display is more likely meant to be written as sRGB. On read the
2104+
// scene referred interop ID will be used.
2105+
{ "g22_rec709_display",
2106+
/* CICPPrimaries::Rec709, CICPTransfer::Gamma22, CICPMatrix::BT709 */ },
21042107
// No CICP code for Adobe RGB primaries.
21052108
{ "g22_adobergb_display" },
21062109
{ "g26_p3d65_display", CICPPrimaries::P3D65, CICPTransfer::Gamma26,

0 commit comments

Comments
 (0)