Index: [thread] [date] [subject] [author]
  From: Andreas Beck <becka@rz.uni-duesseldorf.de>
  To  : ggi-develop@eskimo.com
  Date: Thu, 13 May 1999 15:48:57 +0200

Re: Semi-Snag in PyGGI...

>   "Get/put buffers use chunky pixels, unpacked, even if their
> representation in the
>   framebuffer is packed (i.e. pixel size not multiple of 8 bits) or
> non-linear. Thus, the
>   application does not need to know how to use planar or packed pixels
> for non-direct
>   acccess. "

> ...Is this to say that not all pixels are actually of size
> (sizeof(ggi_pixel)) ?? I had thought the pixels buffers not being packed
> meant that this didn't matter... if not, could someone please show me
> the proper way to fill my buffers?

Maybe that sentence is a little ambiguous.

Get/Put buffers are packed to the pixel-size bytewise, but not bitwise. 
The pixel-size is usually smaller than sizeof(ggi_pixel), as the latter
has to take care for any possible mode, while this would waste space in
putbuffers for all modes except 32 bit ones.

ggiMapColors (mind the plural) might help you.

CU, Andy

-- 
= Andreas Beck                    |  Email :  <andreas.beck@ggi-project.org> =

Index: [thread] [date] [subject] [author]