Skip to content

Commit 6068966

Browse files
committed
[css-color-hdr] Remove absolute and relative HDR concepts, stress scene-referred and display-referred. Anchor media white, and allow color re-rendering #10460
1 parent e8f95bd commit 6068966

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

css-color-hdr-1/Overview.bs

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ One stop is a doubling of luminance.
151151
}
152152
</xmp>
153153

154-
<dfn export>Media white</dfn>
154+
<dfn export>Media white</dfn>,
155+
also called HDR Reference White,
155156
is the color of a normal white background,
156157
or of white text on a dark background.
157158
It can be comfortably viewed, over the whole screen.
@@ -210,8 +211,12 @@ while the luminance of media white remains constant.
210211
Thus, the encoded dynamic range is 23.3 stops.
211212
</div>
212213

213-
When [[#Compositing-SDR-HDR]], the media white for SDR content
214-
should be anchored at <strong>203 cd/m²</strong>
214+
Issue: add a diagram showing SDR and HDR dynamic ranges on a log scale
215+
216+
When [[#Compositing-SDR-HDR]],
217+
and for color space conversion,
218+
the media white for SDR content
219+
should be anchored at <strong>203 cd/m²</strong> [[!Rpt_BT.2408]]
215220
so that that the media white level
216221
of the inputs to compositing
217222
will end up at the media white level
@@ -220,7 +225,7 @@ of the combined signal.
220225
When displaying HDR (or mixed SDR and HDR) content,
221226
for displays which are less capable than the reference mastering display,
222227
and for viewing conditions different to the standard ones,
223-
a <dfn export>color re-rendering</dfn> step will be performed.
228+
a <dfn export>color re-rendering</dfn> step ((OOTF) will be performed.
224229
This may result in a media white being displayed
225230
at a value lower or higher than 203 cd/m².
226231

@@ -477,11 +482,6 @@ Predefined color spaces for HDR: {#predefined-HDR}
477482

478483
ITU Reference 2100 is used for HDR 4k and 8k television.
479484

480-
In contrast to SDR color spaces and some HDR color spaces,
481-
the PQ values are <em>absolute</em> rather than relative.
482-
483-
Issue: add a diagram showing SDR and HDR dynamic ranges on a log scale
484-
485485
It has the following characteristics:
486486
(The display primaries are the same as [[!Rec.2020]]):
487487

@@ -547,16 +547,18 @@ Predefined color spaces for HDR: {#predefined-HDR}
547547

548548
Issue: add other examples, including encoding of sRGB red, green, blue and P3 red, green, blue.
549549

550-
Linear-light RGB signals are converted to PQ encoded as follows. An absolute luminance scale is used, so the luminance of diffuse (media) white is required to scale relative luminances. The maximum encodable value (peak, small-area white) in PQ is 10,000 cd/m². Media white is 203 cd/m² [[!Rpt_BT.2408]].
550+
Linear-light RGB signals are converted to PQ encoded as follows.
551+
The maximum encodable value (peak, small-area white) in PQ is 10,000 cd/m².
552+
Media white is 203 cd/m² [[!Rpt_BT.2408]].
551553

552554
<!-- From Froehlich p.42
553555
and BT.2100 Table 4 p.4 Reference PQ OETF
554556
-->
555557

556558
<pre class="lang-javascript">
557559
var Er; // the red, green or blue component, [0, 1] for SDR, [0, 70ish] for HDR
558-
var Yw = 203; // the absolute luminance of diffuse white, cd/m²
559-
var x = Er * Yw / 10000; // absolute luminance of peak white is 10,000 cd/m².
560+
var Yw = 203; // the luminance of diffuse white, cd/m²
561+
var x = Er * Yw / 10000; // luminance of peak white is 10,000 cd/m².
560562
const n = 2610 / (2 ** 14);
561563
const m = 2523 / (2 ** 5);
562564
const c1 = 3424 / (2 ** 12);
@@ -579,8 +581,8 @@ Predefined color spaces for HDR: {#predefined-HDR}
579581
const c2 = 2413 / (2 ** 7);
580582
const c3 = 2392 / (2 ** 7);
581583
var x = (((Math.max(((xPQ ** minv) - c1), 0) / (c2 - (c3 * (xPQ ** minv)))) ** ninv);
582-
var Yw = 203; // the absolute luminance of diffuse white, cd/m²
583-
var Ea = x * 10000; // absolute luminance, [0, 10,000].
584+
var Yw = 203; // the luminance of diffuse white, cd/m²
585+
var Ea = x * 10000; // luminance, [0, 10,000].
584586
var Er = x * 10000 / Yw; // luminance relative to diffuse white, [0, 70 or so].
585587
</pre>
586588

@@ -705,7 +707,7 @@ Predefined color spaces for HDR: {#predefined-HDR}
705707
regardless of the actual bit depth (10 or 12 bits per component).
706708

707709
The color with red, green and blue all at 1.0
708-
represents HDR Reference White with an absolute luminance of
710+
represents [=media white=] with a luminance of
709711
203 cd/m².
710712

711713
<pre class="lang-css">color(rec2100-linear 1 1 1)</pre>
@@ -716,7 +718,7 @@ Predefined color spaces for HDR: {#predefined-HDR}
716718
<pre class="lang-css">color(rec2100-linear 9.852 9.852 9.852)</pre>
717719

718720
represents a white highlight
719-
with an absolute luminance
721+
with a luminance
720722
of 9.852 × 203 = 1,999 cd/m².
721723
</div>
722724

@@ -952,19 +954,20 @@ are correctly handled
952954
and not clipped or gamut mapped until
953955
the final transfer to the device color space.
954956

955-
Relative HDR, using the HLG transfer function,
957+
HDR using the HLG transfer function,
956958
must map SDR media white
957959
to the same luminance as is used
958960
to display the 75% HLG value. [[!SMPTE-ST-2084]]
959961

960962
For further details, see also tables 3 and 4 in ITU Rpt_BT.2408-0 [[!Rpt_BT.2408]]
961963

962-
Absolute HDR, using the PQ transfer function,
964+
HDR using the PQ transfer function,
963965
should map SDR media white
964966
to 203 cd/m², the same luminance as is used
965-
to display the 58% PQ value. [[!SMPTE-ST-2084]]
967+
to display the 58% PQ value. [[!SMPTE-ST-2084]].
968+
966969
However, implementations may chose to incorporate
967-
a color re-rendering step (OOTF)
970+
a color re-rendering step
968971
to account for non-reference viewing conditions.
969972

970973
<!--

0 commit comments

Comments
 (0)