MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / lodepng_compress_settings_init

Function lodepng_compress_settings_init

src/lodepng.cpp:2219–2232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2217#define DEFAULT_WINDOWSIZE 2048
2218
2219void 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
2234const LodePNGCompressSettings lodepng_default_compress_settings = {2, 1, DEFAULT_WINDOWSIZE, 3, 128, 1, 0, 0, 0};
2235

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected