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

Function lodepng_set_icc

depends/lodepng/lodepng.cpp:3016–3021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3014}
3015
3016unsigned lodepng_set_icc(LodePNGInfo* info, const char* name, const unsigned char* profile, unsigned profile_size) {
3017 if(info->iccp_name) lodepng_clear_icc(info);
3018 info->iccp_defined = 1;
3019
3020 return lodepng_assign_icc(info, name, profile, profile_size);
3021}
3022
3023void lodepng_clear_icc(LodePNGInfo* info) {
3024 string_cleanup(&info->iccp_name);

Callers

nothing calls this directly

Calls 2

lodepng_clear_iccFunction · 0.85
lodepng_assign_iccFunction · 0.85

Tested by

no test coverage detected