| 6063 | #ifdef LODEPNG_COMPILE_ZLIB |
| 6064 | #ifdef LODEPNG_COMPILE_DECODER |
| 6065 | unsigned decompress(std::vector<unsigned char>& out, const unsigned char* in, size_t insize, |
| 6066 | const LodePNGDecompressSettings& settings) |
| 6067 | { |
| 6068 | unsigned char* buffer = 0; |
| 6069 | size_t buffersize = 0; |
| 6070 | unsigned error = zlib_decompress(&buffer, &buffersize, in, insize, &settings); |
| 6071 | if(buffer) |
| 6072 | { |
| 6073 | out.insert(out.end(), &buffer[0], &buffer[buffersize]); |
| 6074 | lodepng_free(buffer); |
| 6075 | } |
| 6076 | return error; |
| 6077 | } |
| 6078 | |
| 6079 | unsigned decompress(std::vector<unsigned char>& out, const std::vector<unsigned char>& in, |
| 6080 | const LodePNGDecompressSettings& settings) |
nothing calls this directly
no test coverage detected