Open Bug 1539685 (HDR) Opened 5 years ago Updated 12 days ago

[meta] Add HDR support to Gecko

Categories

(Core :: Audio/Video: Playback, enhancement)

enhancement

Tracking

()

People

(Reporter: jya, Unassigned)

References

(Depends on 3 open bugs, Blocks 1 open bug)

Details

(Keywords: meta)

This is a meta bug to track what it would take to support HDR content in Firefox/Gecko

Depends on: 1539686
Depends on: wr-video-color
No longer depends on: 1539686
Depends on: 1539686
Depends on: 1284861
No longer depends on: 1284861
Depends on: 1239510
Blocks: 1576020
Depends on: 1580695
Depends on: 1664855
Depends on: 1671018
Depends on: 1679927
Blocks: 1722790
See Also: → 1702365
Depends on: 1743824
Depends on: hdr-macos
No longer depends on: 1679927
Severity: normal → S3

Is this meta-bug only for video, or are HDR still images (f.ex. in AVIF format) also in scope?
Many people today have OLED HDR-capable screens on their smartphone, and I think support for HDR video can be important among especially young people. But personally, I'm just as interested in still image support. HDR-capable desktop displays are probably not so common yet, but my guess is that the number of HDR-capable desktop display soon will start to climb pretty fast with increased interest in HDR images (and video) to follow as a consequence.
There's not much software yet to produce/process HDR still images, but just wanted to tip about the work Nicholas Hayes has started on his AVIF Photoshop plugin. Release notes from his latest beta-release:

Added support for loading and saving monochrome images as grayscale documents.
Added support for loading and saving some of the AVIF HDR formats.
    The supported HDR transfer characteristics are Rec. 2100 PQ and SMPTE 428-1.
    See the README for more details.
Removed the bit-depth restrictions on lossless compression.
    10-bit and 12-bit images can now be saved using lossless compression.
Generate an ICC profile from supported NCLX profiles when loading images without an embedded ICC profile
Automatically convert the saved image to the Rec. 2020 or sRGB color space if necessary
    Rec. 2020 is required for HDR images saved as Rec. 2100 PQ or SMPTE 428-1
    SDR images without an embedded color profile will be converted to sRGB and tagged as such in the CICP metadata
Fixed a few issues with the plug-in scripting support

Known issues
The Rec. 2100 HLG transfer characteristic is not currently supported, these images will be loaded as SDR 16-bits-per-channel documents.

The discussion/issue that probably triggered Nicholas' latest development: https://github.com/0xC0000054/avif-format/issues/8

(In reply to Stig Nygaard from comment #11)

Is this meta-bug only for video, or are HDR still images (f.ex. in AVIF format) also in scope?

We'll use this metabug for HDR still image work, also. We probably haven't filed as many of those Bugs, and we definitely haven't connected them to this metabug, but they should be blockers.

Is there a roadmap for HDR photo support in FireFox? There is now true HDR support in Chrome, Brave, and Opera. Safari now supports tone mapping (currently in Tech Preview).

Bug for HDR images: https://bugzilla.mozilla.org/show_bug.cgi?id=1793091

(In reply to Stig Nygaard from comment #11)

There's not much software yet to produce/process HDR still images, but just wanted to tip about the work Nicholas Hayes has started on his AVIF Photoshop plugin. Release notes from his latest beta-release:

Adobe Camera RAW (ACR) v15.1 also added support to export HDR AVIF images. Here's an example of how to use ACR to create an HDR AVIF: https://gregbenzphotography.com/other/acr-v15-1-adds-avif-exports-and-hdro-support-for-windows/

ACR's exports include HDR metadata which helps provide improved tonemapping.

Example HDR metadata:
Ccv primaries xy : 0.7079,0.2920,0.1700,0.7970,0.1310,0.0460
Ccv white xy : 0.3127,0.3290
Ccv min luminance nits : 1.083943
Ccv max luminance nits : 932.613141
Ccv avg luminance nits : 59.356759

Support for this metadata was added in Chrome 110 back in February, and it shows clear benefits over the previous tone mapping approach (it matches the original image extremely well and avoids rendering the image a bit dark).

So Windows has HDR, and Nvidia just came out with a new update to Their RTX drivers an "AI SDR to HDR" for video. Does that make it easier to get HDR video in Firefox? I think AMD has something similar. I don't do Intel CPUs so I don't know about them.

Gamescope and KDE Plasma now have some basic HDR support under Linux. Official Wayland implementation is currently in development

Using KDE Plasma 6 and would love to see Firefox support HDR on GNU/Linux

What's going on here? Another year has passed and Firefox still doesn't have HDR support. Is adding this functionality so unimportant or is it just so difficult to implement?

Is it not a priority for Mozilla, or is it simply too difficult to implement? Seriously...

Linux depends on HDR support on system level which is not ready yet:
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/14

Right, but 85% of Firefox users use Windows. Do you know what the holdup is there?

You need to log in before you can comment on or make changes to this bug.