How to change the bit order of the data writen into the framebuffer by qt
-
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) takethe 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) takethe low 4 bit position , so was pix4 and pixel3 , pixel6 and pixel5 ................... .
Is there a good way to deal with it ? -
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.