Split GIF into frames
<p>Trying to play animated GIFs on Android here (see <a href="http://stackoverflow.com/questions/809878/android-how-do-a-display-a-large-animated-gif-given-a-url">http://stackoverflow.com/questions/809878/android-how-do-a-display-a-large-animated-gif-given-a-url</a>). It's anything but smooth. On Android 1.5, the Movie.decodeStream()/decodeFile() returns a null. On Android 1.6, with the GIF files I've got, it returns a zero-sized movie with zero duration - clearly not adequate.</p>

<p>The referenced question suggests splitting the GIF into frames (and then rendering these). How exactly do i accomplish that, please?</p>

<p>EDIT: tried opening one of my GIFs with GNU giflib in Windows. It choked on the very first frame. The GIF itself is all right, all browsers (save Android's) display and animate it fine.</p>

<p>EDIT2: worked with giflib 4.1.4. Not sure what was broken in 4.1.6, but there you go. Next step: build giflib for Android via NDK, somehow integrate with the Bitmap class.</p>

<p>EDIT3: giflib it is. In conjuction with Bitmap.copyPixelsFromBuffer. The colors are all askew right now, but the basic design seems workable.</p>
