[Qt-embedded-interest] QImage Format and YCbCr Conversion

Bryce Salmi Bryce.Salmi at zoran.com
Thu Jul 16 18:23:12 CEST 2009


Qt List,

    So I finally managed to get some sort of data to the screen!  Thank
you for all the help and suggestions.  If it is of any significance
(probably not) most of the screen is green.  Anyway, my screen wants to
see YCbCr pixels so I must convert, and I do have a conversion from a
previous project that used C but not Qt.  So my questions are:

 

*	How to I know what image format is passed to the blit function?
*	Can I simply use the QImage::Format_ARGB32; or similar in the
connect member to specify?
*	What is the best way to go about ripping the R,G,and B values
from the data.

 

As long as I know what data format I am in I should be able to answer
the last one.  My C implementation was given RGB values in 24 bits
packed into an int in which I would just ignore the last byte.  There
for I could simply mask out 0xff and shift appropriately to obtain red,
green, and blue.  Any suggestions?

 

 

 

 

Sincerely,

 

Bryce

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-embedded-interest/attachments/20090716/e16c41a7/attachment.html 


More information about the Qt-embedded-interest mailing list