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

LinuxFB: support for BGR format

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.2.0, 5.2.1, 5.3.1, 6.5.5
    • QPA: LinuxFB
    • Custom Embedded Linux distro, TI AM335x CPU which uses BGR format in 24bit configuration

      Linux FB plugin currently does not support BGR pixel format.

      The Linux FB plugin assumes always that the pixel format is RGB. QLinuxFbScreen class contains checks for BGR configuration but those checks do not actually change the data written to FB.
      Attached is a patch which "works for me", I'm not sure it is the correct approach for handling all the cases. I tested it only on a 24bit FB.

      Notes:

      • I think in Qt4 this feature was implemented and could be enabled by an option called littleendian (or similar)

        1. linuxfb_swapRGB.patch
          6 kB
          Bernhard Breinbauer
        2. linuxfb_swapRGB_2.patch
          7 kB
          Bernhard Breinbauer
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            lagocs Laszlo Agocs
            infopipe Bernhard Breinbauer
            Votes:
            6 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes