Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpreting masteringDisplayMetadata #97

Closed
palemieux opened this issue Apr 20, 2023 · 2 comments · Fixed by #98
Closed

Interpreting masteringDisplayMetadata #97

palemieux opened this issue Apr 20, 2023 · 2 comments · Fixed by #98

Comments

@palemieux
Copy link
Contributor

palemieux commented Apr 20, 2023

How should masteringDisplayMetadata be interpreted when set on a Canvas element?

Why set masteringDisplayMetadata on a Canvas element?

What happens if multiple images with different masteringDisplayMetadata are drawn on the same Canvas element:

  • image A is a rec2100-pq image with color volume A
  • image B is a rec2100-pq image with color volume B

are drawn in a Canvas configured with dataType="float16" and colorSpace="rec2100-pq".

Should masteringDisplayMetadata be set on the Canvas and, if so, to what values? For example, should masteringDisplayMetadata be set to the superset of color volume A and B?

@palemieux palemieux changed the title Practices when drawing multiple images with different Color Volume Metadata on the same Canvas Interpreting Color Volume Metadata May 3, 2023
@palemieux palemieux changed the title Interpreting Color Volume Metadata Interpreting display mastering metadata May 3, 2023
@palemieux palemieux changed the title Interpreting display mastering metadata Interpreting masteringDisplayMetadata May 3, 2023
@palemieux
Copy link
Contributor Author

palemieux commented May 3, 2023

Based on the 2023-05-03 telecon, specifying masteringDisplayMetadata on a Canvas element should allow some control over tone-mapping, if any is performed.

This requires that a metadata-driven tone-mapping method be recommended. Options include:

  1. SMPTE ST 2094-10, Annex B
  2. ITU BT.2408, Annex 5
  3. ITU BT.2446, Method A

Demo

(1) requires average image luminance in addition to max and min luminance, which would presumably need to be included in addition to masteringDisplayMetadata.

Metadata-driven tone-mapping metadata is usually more precise than methods that are independent of image statistics, and more efficient than methods that requires image statistics to be computed. They are also useful when tone-mapping sequence of images, where image statistics might fluctuate but tone-mapping should remain stable.

@ppaalanen
Copy link

Yes. I believe the metadata is also intended to guide color gamut mapping, especially from BT.2020 container format down to display native gamut.

palemieux added a commit that referenced this issue Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants