Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-133600

Investigate feasibility of supporting HDR on WebAssembly

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • None
    • QPA
    • None

      Investigate if Qt's HDR support can be made to work on Qt for WebAssembly.

      Dependencies

      • Qt RHI support for HDR for the OpenGL ES (3) backend.
      • Native browser support for HDR WebGL canvas. Note that this is distinct from image and video HDR support. At the time of writing support for HDR canvas is limited.

      Resources

      Chrome HDR test cases: https://ccameron-chromium.github.io/webgl-examples/canvas-hdr.html

      Enabling HDR Canvas  in Chrome

      In chrome://flags, set the following:

      • Experimental Web Platform features: Enabled
      • Out-of-process 2D canvas rasterization: Enabled

      Native WebGL (canvas) prototype
      https://git.qt.io/mosorvig/qt-webassembly-development/-/blob/d74b5742ec11b4535aa090e8b46225c141cd7089/hdr/html/hdr.html

      Setting the drawingBufferColorSpace on the GL context to either 'rec2100-hlg' or 'rec2100-pg' is sufficient (and neccesary) to get HDR output  in Chrome.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.webassembly qt.webassembly
            sorvig Morten Sørvig
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes