| 5070 | } |
| 5071 | |
| 5072 | void 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 |
no test coverage detected