Load and save WEBP images on Flash using FlashCC or faster ANEs
C JavaScript ActionScript C++ PHP Shell Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ane
bin
docs
html-template
libwebp/src
sample
.gitignore
FlashRuntimeExtensions.h
FlashRuntimeExtensions.lib
README.md
as3api.c
as3api_encode.c
as3libwebp.iml
as3libwebp.ipr
buildswc.php
webp_extension.c

README.md

as3libwebp

Load and save WEBP images on Flash using FlashCC or faster ANEs

Sample

http://soywiz.github.io/as3libwebp/

ScreenShot

API

package libwebp;
function DecodeWebp(webpByteArray:ByteArray):BitmapData;
function EncodeWebp(input:BitmapData, quality:Number):ByteArray;

SWC supported on all platforms including web. It uses FlashCC so it is portable but runs ~3x-5x times slower:

  • You must include bin/libwebp.swc

ANE supported for AIR Windows and Android. It uses native libraries so it will run as fast as possible:

  • You must include bin/libwebp.ane