Files
rk35xx-android14/external/glide/third_party/gif_decoder
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00
..

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.