• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1URL: https://gist.githubusercontent.com/devunwired/4479231/raw/df2725be4ae0f12f5265deaf0a769936ea94950b/GifDecoder.java
2Version: df2725be4ae0f12f5265deaf0a769936ea94950b
3License: MIT
4License File: LICENSE
5
6Description:
7Implementation of GifDecoder that is more memory efficient to animate for
8Android devices. This implementation does not house in memory a Bitmap for
9every image frame. Images are instead decoded on-the-fly, and only the minimum
10data to create the next frame in the sequence is kept. The implementation has
11also been adapted to reduce memory allocations in the decoding process to
12reduce time to render each frame.
13
14Adapted from:
15http://show.docjava.com/book/cgij/exportToHTML/ip/gif/stills/GifDecoder.java.html
16
17Local Modifications:
18Broke headers and frames out into separate files and added ability to share
19headers between multiple decoders. Added interface for reusing bitmaps each
20frame. Bugfixes.
21