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) 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 ? -
Please don't post the same question on multiple sub forum, one is enough
"Duplicate":http://qt-project.org/forums/viewthread/30040/