MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / zlib_compress

Function zlib_compress

src/lodepng.cpp:2176–2187  ·  view source on GitHub ↗

compress using the default or custom zlib function */

Source from the content-addressed store, hash-verified

2174
2175/* compress using the default or custom zlib function */
2176static unsigned zlib_compress(unsigned char** out, size_t* outsize, const unsigned char* in,
2177 size_t insize, const LodePNGCompressSettings* settings)
2178{
2179 if(settings->custom_zlib)
2180 {
2181 return settings->custom_zlib(out, outsize, in, insize, settings);
2182 }
2183 else
2184 {
2185 return lodepng_zlib_compress(out, outsize, in, insize, settings);
2186 }
2187}
2188
2189#endif /*LODEPNG_COMPILE_ENCODER*/
2190

Callers 5

addChunk_IDATFunction · 0.85
addChunk_zTXtFunction · 0.85
addChunk_iTXtFunction · 0.85
filterFunction · 0.85
compressFunction · 0.85

Calls 1

lodepng_zlib_compressFunction · 0.85

Tested by

no test coverage detected