MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / lodepng_compress_settings_init

Function lodepng_compress_settings_init

samples/shared/lodepng.cpp:2243–2256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2241#define DEFAULT_WINDOWSIZE 2048
2242
2243void 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
2258const LodePNGCompressSettings lodepng_default_compress_settings = {2, 1, DEFAULT_WINDOWSIZE, 3, 128, 1, 0, 0, 0};
2259

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected