> Dear All, > As I know, fltk can take bmp, xpm, jpg, png format picture as > it's accept image. Now I want to transfer a YUV data as the > FLTK image. how can I do?
You will need to write some code (or use google to find some code - there is plenty out there) that can convert the YUV data into RGB data. Fltk can only handle RGB data. Once you have the data in RGB format, displaying it is straight forward. > I try to rename a YUV data to a bmp suffix, such as yuv.bmp, > and add a bmp header to this file, then transfer this image > to SharedImage::get() API, and then dump the data, found that > the data it write to framebuffer is not my original YUV data. Why? Because YUV data is in YUV format, but bmp data is in RGB format. SELEX Sensors and Airborne Systems Limited Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
