An ActionScript library for all things Lytro
November 9, 2011 ยท View on GitHub
Right now, it reads .lft files and you can display the various bitmaps within in Flash Player.
In the future, it'll hopefully be able to do more than Lytro's own viewer.
Based off of the two existing, open-source .lfp parsers that were around when this AS3 version began:
Usage
Synchronous Decoding
var pic:LightFieldPicture = LFPDecoder.decode(bytes)
var s:LightFieldSprite = new LightFieldSprite(pic)
addChild(s)
Asynchronous Decoding
LFPDecoder.decodeAsync(bytes, onLFPComplete)
function onLFPComplete(picture:LightFieldPicture):void {
var s:LightFieldSprite = new LightFieldSprite(picture)
addChild(s)
}