www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - png decoder

reply Lutger <lutger.blijdestijn gmail.com> writes:
Perhaps somebody finds it useful: I've ported LodePNG, a small and 
simple png decoder to D.(1 function call, life doesn't get easier than 
this). There's also an encoder part, which I have not ported yet.

You can get it here: lutger.ifastnet.com/png.d
Documentation: lutger.ifastnet.com/png.html

Port is straightforward, no attempt to change things much except some 
raw pointers to arrays and replaced zlib routine by Phobos ones. Also 
not tested much.
Jan 04 2007
next sibling parent reply Gregor Richards <Richards codu.org> writes:
Lutger wrote:
 Perhaps somebody finds it useful: I've ported LodePNG, a small and 
 simple png decoder to D.(1 function call, life doesn't get easier than 
 this). There's also an encoder part, which I have not ported yet.
 
 You can get it here: lutger.ifastnet.com/png.d
 Documentation: lutger.ifastnet.com/png.html
 
 Port is straightforward, no attempt to change things much except some 
 raw pointers to arrays and replaced zlib routine by Phobos ones. Also 
 not tested much.
Now installable via `dsss net install lodepng` - Gregor Richards
Jan 04 2007
parent reply Lutger <lutger.blijdestijn gmail.com> writes:
Gregor Richards wrote:
 Lutger wrote:
 Perhaps somebody finds it useful: I've ported LodePNG, a small and 
 simple png decoder to D.(1 function call, life doesn't get easier than 
 this). There's also an encoder part, which I have not ported yet.

 You can get it here: lutger.ifastnet.com/png.d
 Documentation: lutger.ifastnet.com/png.html

 Port is straightforward, no attempt to change things much except some 
 raw pointers to arrays and replaced zlib routine by Phobos ones. Also 
 not tested much.
Now installable via `dsss net install lodepng` - Gregor Richards
Ha, I was just figuring out DSSS. It seems that it *just works*, very nice. Two questions if I may, can I register somehow to update this thing in the future? And should I change the name and put it inside a package? Thanks for your efforts.
Jan 05 2007
parent Gregor Richards <Richards codu.org> writes:
Lutger wrote:
 Gregor Richards wrote:
 Lutger wrote:
 Perhaps somebody finds it useful: I've ported LodePNG, a small and 
 simple png decoder to D.(1 function call, life doesn't get easier 
 than this). There's also an encoder part, which I have not ported yet.

 You can get it here: lutger.ifastnet.com/png.d
 Documentation: lutger.ifastnet.com/png.html

 Port is straightforward, no attempt to change things much except some 
 raw pointers to arrays and replaced zlib routine by Phobos ones. Also 
 not tested much.
Now installable via `dsss net install lodepng` - Gregor Richards
Ha, I was just figuring out DSSS. It seems that it *just works*, very nice. Two questions if I may, can I register somehow to update this thing in the future?
/ABSOLUTELY/ http://dsss.codu.org/ is the source management interface. Register yourself then send me an email, and I'll give you access to to the source list entry for it.
 And should I change the name and put it inside a package?
I'd recommend that :)
 
 Thanks for your efforts.
My efforts are only in the direction of self-advancement, I assure you ;) - Gregor Richards
Jan 05 2007
prev sibling parent Lutger <lutger.blijdestijn gmail.com> writes:
Lutger wrote:
 Perhaps somebody finds it useful: I've ported LodePNG, a small and 
 simple png decoder to D.(1 function call, life doesn't get easier than 
 this). There's also an encoder part, which I have not ported yet.
 
 You can get it here: lutger.ifastnet.com/png.d
 Documentation: lutger.ifastnet.com/png.html
 
 Port is straightforward, no attempt to change things much except some 
 raw pointers to arrays and replaced zlib routine by Phobos ones. Also 
 not tested much.
The encoder is now ported too, along with some other improvements. It only encodes 32 bit RGBA images and if it fails, it does so without giving errors. The module is changed from png.d to lodepng.png.d. DSSS is not updated yet. This port still needs some work and testing. I will improve the code and fold in updates from the original. If you use it and find a bug or have some suggestion, do let me know.
Jan 08 2007