Re: gdk_pixbuf_loader_write and short files
- From: "Matthias Clasen" <matthiasc poet de>
- To: <gtk-devel-list gnome org>
- Subject: Re: gdk_pixbuf_loader_write and short files
- Date: Fri, 24 Aug 2001 17:14:32 +0200
----- Original Message -----
From: "Havoc Pennington" <hp redhat com>
To: "Matthias Clasen" <matthiasc poet de>
Cc: <gtk-devel-list gnome org>
Sent: Friday, August 24, 2001 5:07 PM
Subject: Re: gdk_pixbuf_loader_write and short files
>
> "Matthias Clasen" <matthiasc poet de> writes:
> > The pixbuf loader interface has problems with small images.
> > If the complete image file is shorter than
> >
> > #define LOADER_HEADER_SIZE 128
> >
> > than load_increment is never called by gdk_pixbuf_loader_write
> > and consequently, the pixbuf is not created. To see this problem in
> > action, run gtk+/demos/testpixbuf on the appended pbm file.
> >
> > I admit that images this small are rapidly becoming extinct in this
> > world of multi-megabyte machines, but we could still try to handle them
> > correctly.
> >
>
> Agreed, can't we just force a load_increment when the loader is
> closed?
I don't know. Can we ? But it won't help for testpixbuf.c, since it tries to
get
the pixbuf from the loader before calling close (see update_timeout).
Is that allowed behaviour ?
Matthias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]