https://github.com/ginsweater/gif-h
一个简单的gif生成源码。
Create a GifWriter struct.
Pass the struct to GifBegin() to initialize values and write the file header.
Pass frames of the animation to GifWriteFrame().
Finally, call GifEnd() to close the file handle and free memory.
最重要的是仅仅支持RGBA8,应该留意。(A 不考虑)