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

Function lodepng_state_copy

depends/lodepng/lodepng.cpp:5072–5079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5070}
5071
5072void lodepng_state_copy(LodePNGState* dest, const LodePNGState* source) {
5073 lodepng_state_cleanup(dest);
5074 *dest = *source;
5075 lodepng_color_mode_init(&dest->info_raw);
5076 lodepng_info_init(&dest->info_png);
5077 dest->error = lodepng_color_mode_copy(&dest->info_raw, &source->info_raw); if(dest->error) return;
5078 dest->error = lodepng_info_copy(&dest->info_png, &source->info_png); if(dest->error) return;
5079}
5080
5081#endif /* defined(LODEPNG_COMPILE_DECODER) || defined(LODEPNG_COMPILE_ENCODER) */
5082

Callers 2

StateMethod · 0.85
lodepng.cppFile · 0.85

Calls 5

lodepng_state_cleanupFunction · 0.85
lodepng_color_mode_initFunction · 0.85
lodepng_info_initFunction · 0.85
lodepng_color_mode_copyFunction · 0.85
lodepng_info_copyFunction · 0.85

Tested by

no test coverage detected