Re: GdkPixbuf image depth



On Sat, Jan 11, 2003 at 12:04:36PM +0000, Chris Garrett wrote:
Sorry, I meant bits-per-sample rather than bits-per-pixel.

Is it possible to use 16 or 24 bits?  If not with GdkPixbuf, then is there 
another way of directly manipulating pixel data with more than 8 bits per 
sample, and subsequently rendering it to a gnome canvas or a drawing area?

One major purpose of GdkPixbuf is to be limited to a single format -
GdkImage is the thing that comes in multiple formats.  But of course
that's why GdkImage doesn't support any kind of convenient
manipulation, because doing anything with it involves the giant list
of special cases as found in gdkrgb.c or gdkpixbuf-drawable.c.

If GdkPixbuf supported M formats and GdkImage supported N formats,
then gdkrgb.c and gdkpixbuf-drawable.c would contain M*N special cases
intead of just the N that are in there now - ouch. ;-) And the scaling
and compositing code would contain M cases instead of 1.

Anyway, just explaining why this stuff isn't there. Basically you have
to write your own 16-bit-sample-data-to-GdkImage converter.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]