Skip to content

krilnon/as3lytro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

An ActionScript library for all things Lytro

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

About

An ActionScript library for all things Lytro.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published