| 2217 | #define DEFAULT_WINDOWSIZE 2048 |
| 2218 | |
| 2219 | void lodepng_compress_settings_init(LodePNGCompressSettings* settings) |
| 2220 | { |
| 2221 | /*compress with dynamic huffman tree (not in the mathematical sense, just not the predefined one)*/ |
| 2222 | settings->btype = 2; |
| 2223 | settings->use_lz77 = 1; |
| 2224 | settings->windowsize = DEFAULT_WINDOWSIZE; |
| 2225 | settings->minmatch = 3; |
| 2226 | settings->nicematch = 128; |
| 2227 | settings->lazymatching = 1; |
| 2228 | |
| 2229 | settings->custom_zlib = 0; |
| 2230 | settings->custom_deflate = 0; |
| 2231 | settings->custom_context = 0; |
| 2232 | } |
| 2233 | |
| 2234 | const LodePNGCompressSettings lodepng_default_compress_settings = {2, 1, DEFAULT_WINDOWSIZE, 3, 128, 1, 0, 0, 0}; |
| 2235 |
no outgoing calls
no test coverage detected