Skip to content

Commit c9a17d1

Browse files
committed
[css-color-hdr] Defined the term "Absolute D65 CIE XYZ"
1 parent 450fa74 commit c9a17d1

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

css-color-hdr-1/Overview.bs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,24 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
603603
on a display with HDR headroom 1:
604604

605605
X = 243.664, Y = 275.713, Z = 244.000
606+
</div>
607+
608+
Colors are interpolated in <dfn export>Absolute D65 CIE XYZ</dfn>.
609+
610+
This is derived from ''xyz-d65''
611+
by multiplying each color component by 203 [[Rpt_BT.2408]]
612+
to convert from relative units (Y of white is 1, regardless of actual brightness)
613+
to absolute units of cd/m², also clled "nits".
614+
In the <a href="color-conversion-code">sample code</a>,
615+
this constant is denoted <var ignore=''>Yw</var>,
616+
the luminance of HDR Reference White.
617+
618+
<div class="example" id="ex-rel-to-abs">
619+
For example, the css color ''white'' is
620+
<pre class="lang-css">color(xyz-d65 0.9505 1 1.089)</pre>
606621

622+
In absolute D65 XYX this is
623+
[192.9426, 203, 221.0787]
607624
</div>
608625

609626
<h3 id="headroom-interpolation">
@@ -615,8 +632,8 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
615632
giving result color <var>cxyz</var>,
616633
when the target headroom is <var>H</var>:
617634

618-
1. Let <var>c1xyz</var> be <var>c1</var> converted to Absolute D65 CIE XYZ
619-
2. Let <var>c2xyz</var> be <var>c2</var> converted to Absolute D65 CIE XYZ
635+
1. Let <var>c1xyz</var> be <var>c1</var> converted to [=Absolute D65 CIE XYZ=]
636+
2. Let <var>c2xyz</var> be <var>c2</var> converted to [=Absolute D65 CIE XYZ=]
620637
3. Let <var> w1</var> = clamp((<var>H</var> - <var>H2</var>) / (<var>H1</var> - <var>H2</var>), 0, 1)
621638
4. Let <var> w2</var> = clamp((<var>H</var> - <var>H1</var>) / (<var>H2</var> - <var>H1</var>), 0, 1)
622639
Note that <var> w2</var> = 1 - <var> w1</var>

0 commit comments

Comments
 (0)