MCPcopy Create free account
hub / github.com/creatale/node-dv / zlib_compress

Function zlib_compress

deps/lodepng/lodepng.cpp:2238–2249  ·  view source on GitHub ↗

compress using the default or custom zlib function */

Source from the content-addressed store, hash-verified

2236
2237/* compress using the default or custom zlib function */
2238static unsigned zlib_compress(unsigned char** out, size_t* outsize, const unsigned char* in,
2239 size_t insize, const LodePNGCompressSettings* settings)
2240{
2241 if(settings->custom_zlib)
2242 {
2243 return settings->custom_zlib(out, outsize, in, insize, settings);
2244 }
2245 else
2246 {
2247 return lodepng_zlib_compress(out, outsize, in, insize, settings);
2248 }
2249}
2250
2251#endif /*LODEPNG_COMPILE_ENCODER*/
2252

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