[Development] How to change the bit order of the data writen into the framebuffer by Qt

miaoyuwf miaoyuwf at 163.com
Wed Jul 17 08:09:01 CEST 2013


hi,
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 ? 




Thanks & Regards,


****************************************************************************
Miao yu
Mobile:  +86-15951652750
Mail:       miaoyuwf at 163.com
***************************************************************************** 
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130717/b193ba0e/attachment.html>


More information about the Development mailing list