| 6102 | #ifdef LODEPNG_COMPILE_ZLIB |
| 6103 | #ifdef LODEPNG_COMPILE_DECODER |
| 6104 | unsigned decompress(std::vector<unsigned char>& out, const unsigned char* in, size_t insize, |
| 6105 | const LodePNGDecompressSettings& settings) |
| 6106 | { |
| 6107 | unsigned char* buffer = 0; |
| 6108 | size_t buffersize = 0; |
| 6109 | unsigned error = zlib_decompress(&buffer, &buffersize, in, insize, &settings); |
| 6110 | if(buffer) |
| 6111 | { |
| 6112 | out.insert(out.end(), &buffer[0], &buffer[buffersize]); |
| 6113 | lodepng_free(buffer); |
| 6114 | } |
| 6115 | return error; |
| 6116 | } |
| 6117 | |
| 6118 | unsigned decompress(std::vector<unsigned char>& out, const std::vector<unsigned char>& in, |
| 6119 | const LodePNGDecompressSettings& settings) |
nothing calls this directly
no test coverage detected