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

QImage::Format_RGBA8888 does not compare correctly with itself

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.15.1
    • Fix Version/s: None
    • Component/s: Image formats
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            vgt Eirik Aavitsland
            Reporter:
            jani.launonen Jani Launonen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes