/AND-WebP

A native implementation of WebP codec for devices before ICS.

Primary LanguageCApache License 2.0Apache-2.0

Introduction

Android has no support for WebP codec until ICS(4.0).

This project is a native implementation based on Chromium.

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);