compress using the default or custom zlib function */
| 2236 | |
| 2237 | /* compress using the default or custom zlib function */ |
| 2238 | static 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 |
no test coverage detected