compress using the default or custom zlib function */
| 2228 | |
| 2229 | /* compress using the default or custom zlib function */ |
| 2230 | static 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 |
no test coverage detected