| 2241 | #define DEFAULT_WINDOWSIZE 2048 |
| 2242 | |
| 2243 | void lodepng_compress_settings_init(LodePNGCompressSettings* settings) |
| 2244 | { |
| 2245 | /*compress with dynamic huffman tree (not in the mathematical sense, just not the predefined one)*/ |
| 2246 | settings->btype = 2; |
| 2247 | settings->use_lz77 = 1; |
| 2248 | settings->windowsize = DEFAULT_WINDOWSIZE; |
| 2249 | settings->minmatch = 3; |
| 2250 | settings->nicematch = 128; |
| 2251 | settings->lazymatching = 1; |
| 2252 | |
| 2253 | settings->custom_zlib = 0; |
| 2254 | settings->custom_deflate = 0; |
| 2255 | settings->custom_context = 0; |
| 2256 | } |
| 2257 | |
| 2258 | const LodePNGCompressSettings lodepng_default_compress_settings = {2, 1, DEFAULT_WINDOWSIZE, 3, 128, 1, 0, 0, 0}; |
| 2259 |
no outgoing calls
no test coverage detected