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

QImage::Format_RGBA8888 does not compare correctly with itself

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.15.1
    • Image formats
    • None
    • Linux/X11

    Description

      If one creates an image out of framebuffer written in RGBA8888 (physically red is the first byte, then green, etc.) format, saves it to a .png, loads it to another QImage and compares, they are different.

      This behaviour is different from ARGB32, where a framebuffer written in ARGB32 (physically alpha is the first byte, then red, etc...) is saved to a .png, then loaded to another QImage and compared, the comparison succeeds.

      Example code attached.

      Attachments

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

        Activity

          People

            vgt Eirik Aavitsland
            jani.launonen Jani Launonen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes