Re: Opinions about YUV framebuffers
flat view
From: "Antonino A. Daplas" <adaplas@gmail.com>
Date: 2005-08-07 09:52:26
Nishant Kamat wrote:
Hi experts, I'd like to solicit some opinions about using the fbdev API for a display controller that accepts data in YUV format. fbcon seems to be written to work only for RGB framebuffers. Is that correct? Would it
No support for YUV formats but fbcon can be made to work with YUV formats. For packed pixel, all you need to do is add another define in struct fb_fix_screeninfo.visual (ie FB_VISUAL_YUV_PACKED, FB_VISUAL_YUV_PLANAR), set info->pseudo_palette entries properly (in fb_setcolreg), do little adjustments to cfb_* generic drawing functions so they recognize your new visual formats and that's it. For planar formats, you need to write your own imageblit, copyarea and fillrect.
require lot of change to make it work with YUV data? Can X be run on YUV framebuffers?
I don't know if X supports YUV formats, and I also don't know how difficult it will be to add support for it in X. You can start with X's fbdev driver. Tony ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf