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. How to change the bit order of the data writen into the framebuffer by qt
Forum Updated to NodeBB v4.3 + New Features

How to change the bit order of the data writen into the framebuffer by qt

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 815 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.
  • M Offline
    M Offline
    miaoyuwf
    wrote on last edited by
    #1

    I have got a special used:my system is 4bit color depths,so I config the qt depths 4.But the data in the frame buffer is like this:
    pix1(4bit),pix2(4bit),pix3(4bit),pix4(4bit),…………., pix1(4bit) and pix2(4bit) are put together into one byte , and pix1(4bit) take the high 4 bit position , pix2(4bit) take

    the low 4 bit position , so was pix3 and pixel4 , pixel5 and pixel6 ................... .
    actually , I need the data order like this :
    pix2(4bit),pix1(4bit),pix4(4bit),pix3(4bit),………… , pix1(4bit) and pix2(4bit) are put together into one byte , and pix2(4bit) take the high 4 bit position , pix1(4bit) take

    the low 4 bit position , so was pix4 and pixel3 , pixel6 and pixel5 ................... .
    Is there a good way to deal with it ?

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

      Hi and welcome to devnet,

      For such a low level question you might better ask on the mailing list, you'll find more developer/maintainer there. This form is more user oriented.

      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

      • Login

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