FLTK logo

[fltk/fltk] Animated GIF support (Fl_Anim_GIF_Image class) (PR #375)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

[fltk/fltk] Animated GIF support (Fl_Anim_GIF_Image class) (PR #375) wcout Jan 22, 2022  
 

This class is an extension to Fl_GIF_Image and allows loading and viewing of animated GIF images.

Fl_Anim_GIF_Image is a complete implementation of an FLTK image class (derived from Fl_GIF_Image) capable to be used as shared image, tiled image, scalable image, like any other FLTK image class.

Fl_GIF_Image's code has been modified to load/parse all images of an image file (instead of only the first image) when instructed.
Fl_Anim_GIF_Image utilises this and stores all images (frames) on its own as RGB images and automatically starts animating them.
It needs be told a 'canvas' widget, wherein to draw the images to.

Full docs, demo and test programs are included.


You can view, comment on, or merge this pull request online at:

  https://github.com/fltk/fltk/pull/375

Commit Summary

  • e4e10d0 +Fl_Anim_GIF_Image class and test programs - TBC
  • 53b4f73 Add missing CMake dependencies/files
  • 45a0d1c Missing include
  • 4d96b5f ~start animation immediately is the default
  • e24e610 Fix build regression from previous commit
  • ed28691 Fix build regression from previous commit ctd
  • e1ade09 Towards FLTK CMP...
  • 9e2c34b Towards FLTK CMP...
  • e8842f8 Towards FLTK CMP...
  • c01af75 Towards FLTK CMP...
  • 46022bc Towards FLTK CMP...
  • e2a16e3 move most animgifimage demo programs from 'test' to 'examples' dir
  • 3041cff move most animgifimage demo programs from 'test' to 'examples' dir ctd.
  • 91d899a Fix optimized mode scaling
  • 9aa9043 Fix bilinear scaling in resize example
  • a5e4d6a tune examples
  • b2af893 Fix/extend demo menu
  • a70ecbb Towards FLTK CMP...
  • 1feb7e4 Towards FLTK CMP...
  • 642bb10 Correction in doc
  • 3fda6c2 play example: add zoom event
  • 6309719 Load via extended FLKT Fl_GIF_Image.
  • bc754ac Cleanup Fl_GIF_Image after changes
  • 8662ef4 Fix bug (with FLTK decoding) when first frame has not screen dimensions
  • 3e644c4 remove gif_load (can be restored from archive anyway)
  • 03f3d29 remove gif_load usage
  • 8eaf64e Some reformatting/renaming/comments
  • f811978 examples: check ld()
  • 77f491e formatting
  • 240261a change some naming
  • be32ca4 minor simplification
  • 9a02b79 +Fl_Anim_GIF_Image class and test programs - TBC
  • 8a6c82a Add missing CMake dependencies/files
  • fe222ec Missing include
  • 4c883bc ~start animation immediately is the default
  • 0c258f2 Fix build regression from previous commit
  • 3c66c0f Fix build regression from previous commit ctd
  • 6bb4d54 Towards FLTK CMP...
  • 0d82fbc Towards FLTK CMP...
  • b8423a1 Towards FLTK CMP...
  • d5b06ee Towards FLTK CMP...
  • 6cc3f95 Towards FLTK CMP...
  • 18e8004 move most animgifimage demo programs from 'test' to 'examples' dir
  • 9c7389a move most animgifimage demo programs from 'test' to 'examples' dir ctd.
  • 7e13f74 Fix optimized mode scaling
  • 1e67cb7 Fix bilinear scaling in resize example
  • e2269ef tune examples
  • 2559aab Fix/extend demo menu
  • cfa527b Towards FLTK CMP...
  • 52d8e3e Towards FLTK CMP...
  • 43d9638 Correction in doc
  • 60d83a6 play example: add zoom event
  • e845108 Load via extended FLKT Fl_GIF_Image.
  • 7770c16 Cleanup Fl_GIF_Image after changes
  • c10c530 Fix bug (with FLTK decoding) when first frame has not screen dimensions
  • 634ad79 remove gif_load (can be restored from archive anyway)
  • 679e3b2 remove gif_load usage
  • d836f82 Some reformatting/renaming/comments
  • ca56852 examples: check ld()
  • e1db7d4 formatting
  • 94273f7 change some naming
  • 55faf15 minor simplification
  • 80a667b Merge branch 'Fl_Anim_GIF_Image' of github.com:wcout/fltk into Fl_Anim_GIF_Image
  • 50a66a7 naming (CMP)
  • f2ce788 restore lost comments
  • a8bfb99 document Fl_GIF_Image::animate
  • 42b9604 better diffability
  • 53e34d3 better diffability
  • bb13e2e add special coded GIF that didn't work
  • 6b7a5b1 Fix GIF's with wrong code size
  • dadd84d Code readability refactoring
  • 6de854c cosmetic
  • c16b2d0 Tune documentation
  • 363b3e5 Typo
  • dfb5772 improve code separation for new load_gif() methods in Fl_GIF_Image; add comments
  • 675caf7 Merge with master
  • 25f1e68 Fix indentation
  • aee03aa Fix single frame deaturate/color_abverage
  • 5ad86e9 Fix testprogram opening files containing '.gif' somewhere in name
  • 552ee0b show #frames in test program
  • de9889b Finally found correct way to skip bytes at end of image descriptor
  • eff077c Merge branch 'fltk:master' into Fl_Anim_GIF_Image
  • ffbb7c6 CMP Header
  • 37baf18 const
  • a968082 add statistics to testprogram when run with directory (testsuite)
  • 35c33d8 Refactor Fl_GIF_Image::load_gif_(): Move LZW decoding and XPM conversion to own method/function
  • 36bc8e8 not a widget, but a class

File Changes

(25 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/pull/375@github.com>

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.