MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / lodepng_state_copy

Function lodepng_state_copy

src/lodepng.cpp:4863–4871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4861}
4862
4863void lodepng_state_copy(LodePNGState* dest, const LodePNGState* source)
4864{
4865 lodepng_state_cleanup(dest);
4866 *dest = *source;
4867 lodepng_color_mode_init(&dest->info_raw);
4868 lodepng_info_init(&dest->info_png);
4869 dest->error = lodepng_color_mode_copy(&dest->info_raw, &source->info_raw); if(dest->error) return;
4870 dest->error = lodepng_info_copy(&dest->info_png, &source->info_png); if(dest->error) return;
4871}
4872
4873#endif /* defined(LODEPNG_COMPILE_DECODER) || defined(LODEPNG_COMPILE_ENCODER) */
4874

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