Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Is there a "best" QImage::Format for Raspberry Pi?

Is there a "best" QImage::Format for Raspberry Pi?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 3 Posters 994 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    StoatPatronus
    wrote on last edited by
    #1

    I'm using Qt 5.8 and QtQuick for a Raspberry Pi-based project. I've written a custom QQuickPaintedItem that renders a QImage to draw some data on the screen. Is there a preferred format for the QImage to get the best performance out of the Pi?

    According to page 42 (Table 18) of https://web.archive.org/web/20160803202903/https://www.broadcom.com/docs/support/videocore/VideoCoreIV-AG100-R.pdf, page 42 (Table18) there are several texture formats supported by the Pi's GPU.

    Since I'm not using transparency, would using QImage::Format_RGBX8888 in my Qt project be beneficial since it's supported by the GPU? I'm already generating the QImage in a separate thread to keep the GUI responsive, so I'm not really concerned about the performance, I'm just curious.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should benchmark the various values that seem to fit.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        petere
        wrote on last edited by
        #3

        Hi @StoatPatronus ,

        i am afraid i can't help you. Actually i am rather curious about your solution on setting the Format. I've also written my own QtQuickPaintedItem. Now i can set the renderTarget as an Image, but i don't find a way to specify the render targets format.
        Please tell me how you did that.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved