MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF / zlib_compress

Function zlib_compress

dependency/densecrf/examples/lodepng.cpp:2230–2241  ·  view source on GitHub ↗

compress using the default or custom zlib function */

Source from the content-addressed store, hash-verified

2228
2229/* compress using the default or custom zlib function */
2230static unsigned zlib_compress(unsigned char** out, size_t* outsize, const unsigned char* in,
2231 size_t insize, const LodePNGCompressSettings* settings)
2232{
2233 if(settings->custom_zlib)
2234 {
2235 return settings->custom_zlib(out, outsize, in, insize, settings);
2236 }
2237 else
2238 {
2239 return lodepng_zlib_compress(out, outsize, in, insize, settings);
2240 }
2241}
2242
2243#endif /*LODEPNG_COMPILE_ENCODER*/
2244

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