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

Function lodepng_decoder_settings_init

depends/lodepng/lodepng.cpp:5037–5049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5035#endif /*LODEPNG_COMPILE_DISK*/
5036
5037void lodepng_decoder_settings_init(LodePNGDecoderSettings* settings) {
5038 settings->color_convert = 1;
5039#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
5040 settings->read_text_chunks = 1;
5041 settings->remember_unknown_chunks = 0;
5042 settings->max_text_size = 16777216;
5043 settings->max_icc_size = 16777216; /* 16MB is much more than enough for any reasonable ICC profile */
5044#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
5045 settings->ignore_crc = 0;
5046 settings->ignore_critical = 0;
5047 settings->ignore_end = 0;
5048 lodepng_decompress_settings_init(&settings->zlibsettings);
5049}
5050
5051#endif /*LODEPNG_COMPILE_DECODER*/
5052

Callers 1

lodepng_state_initFunction · 0.85

Calls 1

Tested by

no test coverage detected