All of lore.kernel.org
 help / color / mirror / Atom feed
* Opinions about YUV framebuffers
@ 2005-08-07  7:01 Nishant Kamat
  2005-08-07  9:52 ` Antonino A. Daplas
  2005-08-07  9:58 ` Geert Uytterhoeven
  0 siblings, 2 replies; 3+ messages in thread
From: Nishant Kamat @ 2005-08-07  7:01 UTC (permalink / raw)
  To: linux-fbdev-devel

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
require lot of change to make it work with YUV data? Can X be run on
YUV framebuffers?

Any comments would help!

Thanks,
Nishant


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Opinions about YUV framebuffers
  2005-08-07  7:01 Opinions about YUV framebuffers Nishant Kamat
@ 2005-08-07  9:52 ` Antonino A. Daplas
  2005-08-07  9:58 ` Geert Uytterhoeven
  1 sibling, 0 replies; 3+ messages in thread
From: Antonino A. Daplas @ 2005-08-07  9:52 UTC (permalink / raw)
  To: linux-fbdev-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Opinions about YUV framebuffers
  2005-08-07  7:01 Opinions about YUV framebuffers Nishant Kamat
  2005-08-07  9:52 ` Antonino A. Daplas
@ 2005-08-07  9:58 ` Geert Uytterhoeven
  1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2005-08-07  9:58 UTC (permalink / raw)
  To: Linux Frame Buffer Device Development

On Sun, 7 Aug 2005, Nishant Kamat wrote:
> 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

Just add an additional #define FB_VISUAL_* for your YUV format to <linux/fb.h>.
Been there, done that.

> written to work only for RGB framebuffers. Is that correct? Would it

In 2.6, if you provide an fb_imageblit() routine that converts from 256 color
CLUT to YUV, you should have a text console and a penguin.

In 2.4, getting a text console (and penguin) on YUV is much more work.

> require lot of change to make it work with YUV data? Can X be run on
> YUV framebuffers?

I'm afraid X doesn't support YUV yet.

But if you use the shadow buffer feature in recent X code, you can run the X
server in e.g. RGB565 or RGB888, and write an update routine to convert a
rectangular area from RGB565 resp. RGB888 to YUV. After that you'll have X
running.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-08-07 10:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-07  7:01 Opinions about YUV framebuffers Nishant Kamat
2005-08-07  9:52 ` Antonino A. Daplas
2005-08-07  9:58 ` Geert Uytterhoeven

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.