openfl / lime

A foundational Haxe framework for cross-platform development
https://lime.openfl.org/
MIT License
761 stars 376 forks source link

Add C++ PNG encoder support, map to lime.graphics.Image.encode for performance boost #250

Closed jgranick closed 9 years ago

delahee commented 10 years ago

Hi bro,

IMVHO, this can totally be a part of some format extension, I don't really get the point of making it core lib :)

maybe I am mistaken :)

jgranick commented 10 years ago

We already have libpng and libjpeg in Lime, it's about exposing that functionality, when needed. Currently, Lime's "Image" class already has an "encode" method, but it uses the Haxe "format" library to do it, rather than using the native function calls.

In the tools, we use encoding when generating images dynamically (such as missing splash screen images for iOS), and it would be nice to speed it up more :)

delahee commented 10 years ago

Ok thanks for the subtitles, seems very cool to exploit the full native libs power !

See ya ! Le 21 oct. 2014 21:53, "Joshua Granick" notifications@github.com a écrit :

We already have libpng and libjpeg in Lime, it's about exposing that functionality, when needed. Currently, Lime's "Image" class already has an "encode" method, but it uses the Haxe "format" library to do it, rather than using the native function calls.

In the tools, we use encoding when generating images dynamically (such as missing splash screen images for iOS), and it would be nice to speed it up more :)

— Reply to this email directly or view it on GitHub https://github.com/openfl/lime/issues/250#issuecomment-59987826.