Skip to content

This is a simple android gif decoder and player based on libnsgif compiled with NDK

Notifications You must be signed in to change notification settings

huzongyao/AndroidLibnsgif

Repository files navigation

AndroidLibnsgif(安卓Gif动画解析播放)

This is a simple android gif decoder and player based on libnsgif.

Travis Travis

Screenshot

screenshot

Detail

  • 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.

Begin To Use

dependencies {
    compile 'com.hzy:nsgif:1.2.0'
}

About Me

Contact To Me

image

Others

  • 想捐助我喝杯热水(¥0.01起捐)
    donate