| 4861 | } |
| 4862 | |
| 4863 | void 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 |
no test coverage detected