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. Qt QWS with 18-bit Linux frame buffer
Forum Updated to NodeBB v4.3 + New Features

Qt QWS with 18-bit Linux frame buffer

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 3 Posters 2.2k Views 1 Watching
  • 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.
  • O Offline
    O Offline
    ortogonal
    wrote on last edited by
    #1

    Hi!

    I have a silly problem that I would like to fix. I'm using an embedded system with a 32 bit frame buffer. But we are using only a 18-bit LCD. Due to an error in the electric schematic the LCD is connected to the lower 18-bits of the 32-bits. Unfortionatly we have order quit many of these cards and I would like to get them up and running to save us some money.

    My problem is that my kernel driver is 32-bit but I need Qt to back the data as 18-bit. I need every pixel to look like this:
    --------------BBBBBBGGGGGGRRRRRR
    So what I need is a stride of four bytes per pixel but packing the 6-bit data in the lower 18-bits.

    Is it possible to change Qt so it will pack my data in this way?

    Best regards and happy hacking!
    /Erik

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zhxt
      wrote on last edited by
      #2

      there is a config option to handle this:

      -depths <list> ...... Comma-separated list of supported bit-per-pixel
                            depths, from: 1, 4, 8, 12, 15, 16, 18, 24, 32 and 'all'.
      

      Qt Developer

      1 Reply Last reply
      0
      • B Offline
        B Offline
        boymaster
        wrote on last edited by
        #3

        The whitepaper says that
        "Linear frame-buffers with 1, 4, 8, 15, 16, 24 and 32 bit depths and VGA16
        are supported. "

        But when configuring qt-everywhere-opensource-4.7.4, there is no options to select
        1bpp pixel-depth.

        QtE doesn't support 1bpp frame buffer?
        If it can, how can I configure?

        Thanks in advance.

        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