aosp12/external/glide/third_party/gif_decoder
hcl 7be3fd486c init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
..
src/main init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
LICENSE init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
README.third_party init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
lint.xml init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00

README.third_party

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.