Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve decoding of GIFs larger than max size? #15

Open
embedded-creations opened this issue Nov 20, 2017 · 1 comment
Open

Improve decoding of GIFs larger than max size? #15

embedded-creations opened this issue Nov 20, 2017 · 1 comment

Comments

@embedded-creations
Copy link
Contributor

It appears that a non-interlaced 64x64 GIF can be decoded by AnimatedGIFs set with a smaller max size (definitely 64x32, possibly 32x32). Interlaced GIFs have issues. Can the interlaced code be improved to throw out the extra pixels in a larger GIF?

@marcmerlin
Copy link
Contributor

So, when I display on neomatrix, decoding of a gif bigger than my display area works fine, and then I have this offset to tell it what part of it to display:
https://github.com/marcmerlin/AnimatedGIFs/blob/master/neomatrix_config.h#L87
Sure, a bit of CPU time is used to decode more GIF surface than can be displayed, but compared to the 36ms taken by a 1024 neopixel screen redraw, that CPU time doesn't seem that important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants