I'm using the native Flash PNGEncoder library to encode a byte array to PNG and it's taking about 300ms per image. Is there any thing I can do differently to speed it up or is there another library that is faster?
Here is my code:
http://pastebin.com/Q7MiWg9u - line 65
Note: The JPG encoder is about 10x slower than the PNG encoder but if one exists that is faster I would look into using JPG instead of PNGs.
Note: I don't have a problem using a JavaScript encoder if I can transfer the bitmap data out of Flash to the library and have it return before the AS3 library finishes.