Information about webp:
You need HAXE and OPENFL. http://www.openfl.org/
haxelib install openfl-webp
The Webp API is pretty simple. It uses ByteArray and BitmapData objects for encoding/decoding.
webp.Webp.getDecoderVersion():String
webp.Webp.getEncoderVersion():String
webp.Webp.getImageInfo(bytes:ByteArray):WebpInfo;
webp.Webp.decodeAsBitmapData(bytes:ByteArray):BitmapData;
webp.Webp.encodeBitmapData(bitmapData:BitmapData, lossless:Bool = false, quality_factor:Float = 86):ByteArray
You can obtain webp data using Assets.getBytes or sys.io.File functions (available on cpp and neko targets).
var bytes:ByteArray = openfl.Assets.getBytes("image.webp");
var bitmapData:BitmapData = webp.Webp.decodeAsBitmapData(bytes);
var bitmap:Bitmap = new Bitmap(bitmapData);
addChild(bitmap);