From: Geert U. <ge...@li...> - 2003-01-05 16:39:49
|
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 -- 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 |