You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
928 B
21 lines
928 B
URL: https://gist.githubusercontent.com/devunwired/4479231/raw/df2725be4ae0f12f5265deaf0a769936ea94950b/GifDecoder.java
|
|
Version: df2725be4ae0f12f5265deaf0a769936ea94950b
|
|
License: MIT
|
|
License File: LICENSE
|
|
|
|
Description:
|
|
Implementation of GifDecoder that is more memory efficient to animate for
|
|
Android devices. This implementation does not house in memory a Bitmap for
|
|
every image frame. Images are instead decoded on-the-fly, and only the minimum
|
|
data to create the next frame in the sequence is kept. The implementation has
|
|
also been adapted to reduce memory allocations in the decoding process to
|
|
reduce time to render each frame.
|
|
|
|
Adapted from:
|
|
http://show.docjava.com/book/cgij/exportToHTML/ip/gif/stills/GifDecoder.java.html
|
|
|
|
Local Modifications:
|
|
Broke headers and frames out into separate files and added ability to share
|
|
headers between multiple decoders. Added interface for reusing bitmaps each
|
|
frame. Bugfixes.
|