compress using the default or custom zlib function */
| 2174 | |
| 2175 | /* compress using the default or custom zlib function */ |
| 2176 | static 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 |
no test coverage detected