MCPcopy Create free account
hub / github.com/DFHack/dfhack / lodepng_compress_settings_init

Function lodepng_compress_settings_init

depends/lodepng/lodepng.cpp:2333–2345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2331#define DEFAULT_WINDOWSIZE 2048
2332
2333void lodepng_compress_settings_init(LodePNGCompressSettings* settings) {
2334 /*compress with dynamic huffman tree (not in the mathematical sense, just not the predefined one)*/
2335 settings->btype = 2;
2336 settings->use_lz77 = 1;
2337 settings->windowsize = DEFAULT_WINDOWSIZE;
2338 settings->minmatch = 3;
2339 settings->nicematch = 128;
2340 settings->lazymatching = 1;
2341
2342 settings->custom_zlib = 0;
2343 settings->custom_deflate = 0;
2344 settings->custom_context = 0;
2345}
2346
2347const LodePNGCompressSettings lodepng_default_compress_settings = {2, 1, DEFAULT_WINDOWSIZE, 3, 128, 1, 0, 0, 0};
2348

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected