From: Geert U. <ge...@li...> - 2001-06-13 13:52:39
|
On Wed, 13 Jun 2001, Romain Dolbeau wrote: > Is there a way to distinguish 15 and 16 bpp in 16bits pixels in > the fbdev/fbcon layer ? Yes, by looking at the fb_var_screeninfo.{red,green,blue}.length fields. > pm3fb support RGB565 in 16bpp, and I was just asked for 15bpp > (RGB555 + 1 bit Alpha or whatever). Do I simply reuse CFB16 > and support both internally, is there a requirement that > CFB16 is one or the other, ... ? Cfb16 is the memory organization: packed 16 bits per pixel. How a pixel looks like internally doesn't matter. So both RGB555 and RGB565 use fbcon-cfb16.c. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@li... 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 |