Skip to content

Commit

Permalink
Add hidden image item recommendation (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-guyon authored Oct 23, 2024
1 parent 7e5c8c7 commit d81c366
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ url: https://www.iso.org/standard/66067.html; spec: HEIF; type: dfn;
text: derived image item
text: dimg
text: grid
text: hidden image item
text: image_height
text: image_width
text: imir
Expand Down Expand Up @@ -269,7 +270,7 @@ NOTE: The values of <code>[=render_width_minus1=]</code> and <code>[=render_heig

The semantics of the clean aperture property (<code>'[=clap=]'</code>) as defined in [[!HEIF]] apply. In addition to the restrictions on transformative item property ordering specified in [[!MIAF]], the following restriction also applies:

<assert>The origin of the <code>'[=clap=]'</code> item property shall be anchored to 0,0 (top-left) of the input image unless the full, un-cropped image item is included as a secondary non-hidden image item.</assert>
<assert>The origin of the <code>'[=clap=]'</code> item property shall be anchored to 0,0 (top-left) of the input image unless the full, un-cropped image item is included as a secondary [=hidden image item|non-hidden image item=].</assert>

<h4 id="other-item-property">Other Item Properties</h4>

Expand Down Expand Up @@ -396,7 +397,7 @@ A <dfn noexport>grid derived image item</dfn> (<code>'[=grid=]'</code>) as defin

<h4 id="tone-map-derivation">Tone Map Derived Image Item</h4>

A <dfn noexport>tone map derived image item</dfn> (<code>'[=tmap=]'</code>) as defined in [[!HEIF]] may be used in an [=AVIF file=]. <assert>When present, the base image item and the <code>'[=tmap=]'</code> image item should be grouped together by an <code>'[=altr=]'</code> (see [[#altr-group]]) entity group as recommended in [[!HEIF]].</assert>
A <dfn noexport>tone map derived image item</dfn> (<code>'[=tmap=]'</code>) as defined in [[!HEIF]] may be used in an [=AVIF file=]. <assert>When present, the base image item and the <code>'[=tmap=]'</code> image item should be grouped together by an <code>'[=altr=]'</code> (see [[#altr-group]]) entity group as recommended in [[!HEIF]].</assert> <assert>When present, the gainmap image item should be a [=hidden image item=].</assert>

<h4 id="sample-transform">Sample Transform Derived Image Item</h4>

Expand Down Expand Up @@ -1323,6 +1324,7 @@ The "Version(s)" column in the following table lists the version(s) of the boxes
- EDITORIAL: <a href="https://github.com/AOMediaCodec/av1-avif/pull/266">Indent notes as the list items they refer to</a>
- EDITORIAL: <a href="https://github.com/AOMediaCodec/av1-avif/pull/267">Remove inconsistent dots in 9.1.2</a>
- <a href="https://github.com/AOMediaCodec/av1-avif/pull/273">Change structure of optional table of boxes</a>
- <a href="https://github.com/AOMediaCodec/av1-avif/pull/288">Add hidden image item recommendation</a>

<h2 id="sato-examples">Appendix A: (informative) Sample Transform Derived Image Item Examples</h2>

Expand Down Expand Up @@ -1361,6 +1363,8 @@ Each output sample is equal to the sum of a sample of the first input image item

NOTE: If the first input image item is the [=primary image item=] and is enclosed in an <code>'[=altr=]'</code> group (see [[#altr-group]]) with the [=Sample Transform Derived Image Item=], the first input image item is also a backward-compatible 8-bit regular coded image item that can be used by readers that do not support [=Sample Transform Derived Image Items=] or do not need extra precision.

NOTE: The second input image item can be marked as [=hidden image item|hidden=] to prevent readers from surfacing it to users.

NOTE: The second input image item loses its meaning of least significant part if any of the most significant bits changes, so the first input image item has to be losslessly encoded. The second input image item supports reasonable loss during encoding.

NOTE: This pattern can be used for reconstructed bit depths beyond 16 by combining more than two input image items or with various input bit depth configurations and operations.
Expand Down Expand Up @@ -1403,6 +1407,8 @@ Each output sample is equal to the sum of a sample of the first input image item

NOTE: If the first input image item is the [=primary image item=] and is enclosed in an <code>'[=altr=]'</code> group (see [[#altr-group]]) with the derived image item, the first input image item is also a backward-compatible 12-bit regular coded image item that can be used by decoding contexts that do not support [=Sample Transform Derived Image Items=] or do not need extra precision.

NOTE: The second input image item can be marked as [=hidden image item|hidden=] to prevent readers from surfacing it to users.

NOTE: The first input image item supports reasonable loss during encoding because the second input image item "overlaps" by 4 bits to correct the loss. The second input image item supports reasonable loss during encoding.

NOTE: This pattern can be used for reconstructed bit depths beyond 16 by combining more than two input image items or with various input bit depth configurations and operations.

0 comments on commit d81c366

Please sign in to comment.