This is a simple android gif decoder and player based on libnsgif.
- This project is for demonstrate how to plug in jni with gradle and android studio
- Compiled with ndk and cmake.
- Also you may improve it to use for production
- The main code and logic is from libnsgif: http://www.netsurf-browser.org/projects/libnsgif/
- I have put the global static fields into structures to avoid instances share same resource
- there are more powerful image libraries could support gif animations such as fresco
- Libnsgif is licensed under the MIT Licence.
dependencies {
compile 'com.hzy:nsgif:1.2.0'
}
- GitHub: https://huzongyao.github.io/
- ITEye博客:https://hzy3774.iteye.com/
- 新浪微博: https://weibo.com/hzy3774
- QQ: 377406997
- Gmail: [email protected]
- Foxmail: [email protected]
- WeChat: hzy3774