lvandeve / lodepng

PNG encoder and decoder in C and C++.
zlib License
2.04k stars 420 forks source link

Miniz integration #129

Closed julianxhokaxhiu closed 4 years ago

julianxhokaxhiu commented 4 years ago

Hi,

I found out that LodePNG allows us to customize the zlib decoding/encoding functions in the state struct, although there is no example on how that should be implemented.

I was trying to integrate miniz as default decompression speed is too slow compared to libpng/zlib, so I was hoping to get back the same speed using miniz.

Can you please help me figure out the direction to follow? Or would you be able to add Miniz support OOB through defines? That would be a big plus on this library.

Thank you in advance and best regards, Julian

julianxhokaxhiu commented 4 years ago

Nvm I figured it out the integration, although for some unknown reason the performance is still not on par with libpng/zlib.

Thanks anyway, cheers!