Re: Commit: GDK-Pixbuf images (Gnome Only)


Subject: Re: Commit: GDK-Pixbuf images (Gnome Only)
From: Dom Lachowicz (cinamod@hotmail.com)
Date: Thu Apr 19 2001 - 10:13:17 CDT


>Dom Lachowicz écrit:
>
>>GDK-Pixbuf rendering of images, only on Gnome. Requires a 1-line patch to
>>gdk-pixbuf-loader.h (because of an opaque void * struct member named
>>'private').
>>
>>I need to get our internal code smarter to actually know how to
>>load/handle different image types besides PNG and BMP.
>
>As far as I can understand the code, gdk-pixbuf support is here for
>rastering support: it replace the code found in gr_unixImage.cpp that
>actually does the job of uncompressing the PNG stream using libpng to
>display it.
>That is really a different matter from what my JPEG importer does: acually
>handling buffer conversion from JPEG to PNG to pass it on. I have traced a
>little bit and it appears that the process of importing a JPEG still goes
>thru my filter first (because we still does not support JPEG internally) to
>provide a PNG stream.

GdkPixbuf can handle lots of raster image types currently. I'm looking into
adding vector image support (WMF and SVG) to it too, which would be pretty
cool.

The idea of using GdkPixbuf or IM or any other library, however, isn't to
load an image and transform it into a PNG buffer. That seems silly, at least
to me.

The GdkPixbuf loader will handle JPG/BMP/Tiff/etc... images once we clean up
a *lot* of cruft internally with regard to how we handle images. I think
that I'll volunteer to do this.

Dom

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com



This archive was generated by hypermail 2b25 : Thu Apr 19 2001 - 10:13:23 CDT