richgel999 / miniz

miniz: Single C source file zlib-replacement library, originally from code.google.com/p/miniz
MIT License
2.22k stars 324 forks source link

I can't work with this library without documentation. #222

Open robotman2412 opened 2 years ago

robotman2412 commented 2 years ago

I'm trying to create a PNG codec, but i can't for the life of me get the tinfl_decompress_mem_to_mem call to work. The only documentation i seem to get is the comments in miniz.h.

I must use this function because my environment has only this library and only the barebones decompression functions.

robotman2412 commented 2 years ago

Relevant line of code: https://github.com/robotman2412/pax-codecs/blob/main/src/pax_codecs.c#L269

Parent library: https://github.com/robotman2412/pax-graphics

Full program: https://github.com/robotman2412/mch2022-badge-tests

Opioid commented 2 years ago

So you don't have mz_inflate() available?

robotman2412 commented 2 years ago

I do not.