SkillAgentSearch skills...

As3lytro

An ActionScript library for all things Lytro.

Install / Use

/learn @krilnon/As3lytro
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

Related Skills

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated3y ago
Forks0

Languages

ActionScript

Security Score

55/100

Audited on Oct 13, 2022

No findings