Skip to content

Commit

Permalink
Recommend using extended transfer functions to handle negative values,
Browse files Browse the repository at this point in the history
…fix #420
  • Loading branch information
svgeesus committed Mar 4, 2024
1 parent 256cb44 commit 9a7225c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions index.html
Expand Up @@ -3727,6 +3727,17 @@ <h2><span class="chunk">cICP</span> Coding-independent code points for video sig
PNG format, it should be noted that this format is not part of the [[ITU-R-BT.709]] standard.
</aside>

<p>If <code>Video Full Range Flag</code> is <code>0</code>
(a <a>narrow-range image</a>), recommended practice
is to define transfer functions
such as EOTF or inverse OETF
over the extended range,
so as to include negative values.
This is done as follows:
</p>

<pre>out = sign(in) * TransferFunction(abs(in))</pre>

<p>The <span class="chunk">cICP</span> chunk MUST come before the <a class="chunk" href="#11PLTE">PLTE</a> and <a class=
"chunk" href="#11IDAT">IDAT</a> chunks.</p>

Expand Down

0 comments on commit 9a7225c

Please sign in to comment.