Andy Li's Blog

28/09/2009

Pixel Bender port of Scale2x and Scale3x

Filed under: Uncategorized — Tags: , — Andy @ 3:35 am

scale2x

When I first saw the Scale2x, scale3x AS3 I am impressed. The algorithm is from scale2x sourceforge project and the as3 port is coded as a class that is very easy to reuse. Surely the AS3 port author nicoptere can make a PB port too as you may find out many PB cool stuff over his blog, but my pixel bending desire force me to do it myself :P

Here below the video shows my demo. I get a camera capture stream and used Posterizer which is downloaded from Pixel Bender Exchange to convert the image to 4-color-only, and than use the scale2x filter to enlarge the low resolution capture. The top-left corner thumbnail-like image is actually the original 1:1 input(160*120).

YouTube Preview Image

It is quite interesting to see for scale2x, PB’s version nearly doubles the performance of AS3’s. But for scale3x, there is not much different between PB and AS3. I think it is because scale3x has too many if-else which PB is not strong at.

BTW, I discovered a bug in PB while coding this. The bug make my code much longer as I work-a-round it… I reported it to the PB forum.

Demo app

Demo app’s Flex project with Pixel Bender source (The shorter but buggy versions are included too.)

19/09/2009

Presentation slide for Software Freedom Day HK 2009

Filed under: Uncategorized — Tags: — Andy @ 8:39 pm

Just get back from Software Freedom Day (Hong Kong) 2009. Very glad to be invited by Ben to join the event as a speaker :)

I am one of the speakers in the session “Open Source developers from Hong Kong”. I presented STK in AS3 (which is started by me) and a few more great open source project related to media/art. Here below is the slide I used during presentation.

Powered by WordPress