Skip to content
forked from R1NC/AND-WebP

A native solution of coding/encoding WebP image for Android.It's compatible with devices before ICS.

License

Notifications You must be signed in to change notification settings

Coding4Me/Roid-WebP

 
 

Repository files navigation

Introduction

Google's origin Android API doesn't support WebP until ICS(Android 4.0).
This project is a native(C++) implementation based on Google's open source project Chromium. So you need not to care about the compatibility. Features

public static native Bitmap nativeDecodeByteArray(byte[] data, BitmapFactory.Options options);

public static native byte[] nativeEncodeBitmap(Bitmap bitmap, int quality);

public static boolean isWebP(byte[] data);

Usage

Just build the cpp files under jni folder with NDK. And then enjoy it!

About

A native solution of coding/encoding WebP image for Android.It's compatible with devices before ICS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 95.6%
  • C++ 2.9%
  • Java 1.3%
  • Makefile 0.2%