Re: Inlining pixbufs



Havoc Pennington <hp@redhat.com> writes:

> Pixbuf doesn't support these, when it does we could come up with some
> convention.
>  
> > i think it's be better to define a 4 byte type field that also leaves
> > room for enhancements like RLE:
> > 
> ...  
> >   /* generate Pixbuf from C source saved structure */
> >   GdkPixbuf* gdk_pixbuf_new_from_pixdata (const GdkPixdata *pixdata);
> >   
> >   /* generate Pixbuf from byte stream, ignores GDK_PIXDATA_MEMTYPE_STATIC */
> >   GdkPixbuf* gdk_pixbuf_new_from_stream  (const guint8 *pixdata_stream);
> > 
> > (the functions would share the same decoder backend of course)

Why do we need both? if your GdkPixData thing is properly endian-neutral,
etc, and in a fixed format, than it is pretty much a stream already.

                                                  Owen




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