Index:
[thread]
[date]
[subject]
[author]
From: Steve Cheng <elmert@ipoline.com>
To : ggi-develop@eskimo.com
Date: Thu, 27 Aug 1998 13:49:08 -0400 (EDT)
Re: libggi doc changes
On Fri, 28 Aug 1998, Andrew Apted wrote:
> Marcus writes:
>
> > The Xlib target uses an XImage for the Get/Put functions, and
> > XImages always have stride%4 == 0 when the pixel-size is 3 bytes.
> > There may also be other hardware accelerated targets that has
> > such requirements in the future.
>
> So do we mess up the now-nice get/put buffer API to accommodate crap
> like this ? I'd rather we didn't, since the more complicated we make
> the API becomes the harder it is to write programs to use it properly.
>
> I guess just exporting a `stride' field (like what is already in the
> pixellinearbuffer) would be OK, but IMHO that's where it's gotta end
> otherwise we may as well go back to using the nasty old DirectBuffer.
How about
ggiDBGetBuffer(vis, GETPUT_BUFFER)
to get a ggi_directbuffer for get/put buffers, with stride and all, and even
possible to have planar get/put buffers (!)
But I agree it's complicated, at least don't do it now.
--
Steve Cheng
email: steve@ggi-project.org
www: <http://shell.ipoline.com/~elmert/>
Index:
[thread]
[date]
[subject]
[author]