linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fb_imageblit()
@ 2003-01-05 16:38 Geert Uytterhoeven
  2003-01-05 18:06 ` fb_imageblit() Antonino Daplas
  0 siblings, 1 reply; 15+ messages in thread
From: Geert Uytterhoeven @ 2003-01-05 16:38 UTC (permalink / raw)
  To: Linux Frame Buffer Device Development


I have a few questions and comments related to fb_imageblit().

 1. Why is the logo data in fb_image.data stored in an `unpacked' way? I.e.
    each byte of the logo data corresponds to one pixel of the image,
    irrespective of the depth of the image.

    However, I do see one good reason: it makes life easier for planar
    displays, since a fast c2p (chunky-to-planar) convertor doesn't have to
    care about the image depth, the source data is always 1 byte per pixel.

 2. If fb_image.depth == 1, how can fb_imageblit() distinguish between drawing
    a monochrome image (e.g. penguin logo) and color expanding a monochrome
    image (e.g. drawing text)? It's not possible to handle them the same, since
    image data for color expansion is packed, while image data for monochrome
    image drawing is not.
    
    If monochrome image data would be packed as well, it could be handled by
    setting fb_image.fg_color = 1 and fb_image.bg_color = 0 (or vice versa for
    mono10), and fb_set_logo() becomes simpler as well.

    If we retain the unpacked data for images, we need some other flag to
    indicate color expansion. Perhaps setting fb_image.depth to 0?

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



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

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

end of thread, other threads:[~2003-01-11  5:21 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-05 16:38 fb_imageblit() Geert Uytterhoeven
2003-01-05 18:06 ` fb_imageblit() Antonino Daplas
2003-01-05 18:59   ` fb_imageblit() Geert Uytterhoeven
2003-01-07 22:23   ` fb_imageblit() James Simmons
2003-01-08  2:41     ` fb_imageblit() Antonino Daplas
2003-01-08 15:15       ` fb_imageblit() Geert Uytterhoeven
2003-01-08 16:25         ` fb_imageblit() Antonino Daplas
2003-01-08 16:49           ` fb_imageblit() Geert Uytterhoeven
2003-01-10 18:37             ` fb_imageblit() James Simmons
2003-01-09  9:50           ` fb_imageblit() Geert Uytterhoeven
2003-01-09 11:44             ` fb_imageblit() Antonino Daplas
2003-01-10 18:47               ` fb_imageblit() James Simmons
2003-01-10 19:23       ` fb_imageblit() James Simmons
2003-01-10 19:41         ` fb_imageblit() Geert Uytterhoeven
2003-01-11  5:11         ` fb_imageblit() Antonino Daplas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).