From cfe45e67a5eb5a7d2ba7e64631beaa93c2cd1e2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Thu, 29 Feb 2024 19:48:24 +0100 Subject: [PATCH] colorspace: remove DCDM chromatic adaptation The colors are encoded in XYZ with EE white point, but this is only the encoding part. Displayed white point is at code poit X'=3794 Y'=3960 Z'=3890. Reference projector is expected to produce DCI white for those values. Although SMPTE standard does not enforce specific white point. For example ACES uses D60 instead. But the workflow for reference projector to be DCI compliant and it is on encoders to ensure the content looks good. So this is what we do. Decode DCDM X'Y'Z into DCI-P3 RGB. --- src/colorspace.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/colorspace.c b/src/colorspace.c index 5e8f8585..8221eb89 100644 --- a/src/colorspace.c +++ b/src/colorspace.c @@ -1714,8 +1714,6 @@ pl_transform3x3 pl_color_repr_decode(struct pl_color_repr *repr, // DCI-P3 primaries, which is a reasonable assumption. const struct pl_raw_primaries *dst = pl_raw_primaries_get(PL_COLOR_PRIM_DCI_P3); m = pl_get_xyz2rgb_matrix(dst); - // DCDM X'Y'Z' is expected to have equal energy white point (EG 432-1 Annex H) - apply_chromatic_adaptation((struct pl_cie_xy)CIE_E, dst->white, &m); break; } case PL_COLOR_SYSTEM_COUNT: