Skip to content

Commit

Permalink
colorspace: remove DCDM chromatic adaptation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kasper93 committed Nov 25, 2024
1 parent 860dcbf commit cfe45e6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/colorspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cfe45e6

Please sign in to comment.