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

Function lodepng_info_init

depends/lodepng/lodepng.cpp:3032–3056  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3030#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
3031
3032void lodepng_info_init(LodePNGInfo* info) {
3033 lodepng_color_mode_init(&info->color);
3034 info->interlace_method = 0;
3035 info->compression_method = 0;
3036 info->filter_method = 0;
3037#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
3038 info->background_defined = 0;
3039 info->background_r = info->background_g = info->background_b = 0;
3040
3041 LodePNGText_init(info);
3042 LodePNGIText_init(info);
3043
3044 info->time_defined = 0;
3045 info->phys_defined = 0;
3046
3047 info->gama_defined = 0;
3048 info->chrm_defined = 0;
3049 info->srgb_defined = 0;
3050 info->iccp_defined = 0;
3051 info->iccp_name = NULL;
3052 info->iccp_profile = NULL;
3053
3054 LodePNGUnknownChunks_init(info);
3055#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
3056}
3057
3058void lodepng_info_cleanup(LodePNGInfo* info) {
3059 lodepng_color_mode_cleanup(&info->color);

Callers 4

lodepng_inspectFunction · 0.85
lodepng_state_initFunction · 0.85
lodepng_state_copyFunction · 0.85
lodepng_encodeFunction · 0.85

Calls 4

lodepng_color_mode_initFunction · 0.85
LodePNGText_initFunction · 0.85
LodePNGIText_initFunction · 0.85

Tested by

no test coverage detected