> > All that's left then, is to actually decode all the
> > frames when loading the image and to properly free
> > the memory (as needed) on object destruction.
> 
> This seems slightly more involved, as the current GIF
> loader loops and scans to the first frame image data,
> then proceeds to load and convert that image data,
> after which the file is closed. In other words, the
> code is not currently suitable for/capable of loading
> multiple frames at all. Also, the whole loader is
> inside one giant constructor method.
> 
> I guess I'll try to refactor it a bit and move some
> code into functions, before moving the image loading+
> converting into the frame scanning loop.
> 
> By the way, as one could consider GIF animations part
> of the standard, I think it makes more sense to extend
> the current GIF class with that functionality, rather
> than to derive it into an AnimatedGIF sub-class.
> 
> Would there be any chance this functionality makes
> it into FLTK? If so, are there any specific
> requirements to the code that I should be aware of?


And: Should we even be maintaining our own GIF decoder now? The (LZW)
patents have lapsed, so we could maybe incorporate libgif (or similar)
as we do libpng et al, and thus gain the ability to read and write GIF
files, and process animated GIF and so forth...?


SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to