| 4897 | #if defined(LODEPNG_COMPILE_DECODER) || defined(LODEPNG_COMPILE_ENCODER) |
| 4898 | |
| 4899 | void lodepng_state_init(LodePNGState* state) |
| 4900 | { |
| 4901 | #ifdef LODEPNG_COMPILE_DECODER |
| 4902 | lodepng_decoder_settings_init(&state->decoder); |
| 4903 | #endif /*LODEPNG_COMPILE_DECODER*/ |
| 4904 | #ifdef LODEPNG_COMPILE_ENCODER |
| 4905 | lodepng_encoder_settings_init(&state->encoder); |
| 4906 | #endif /*LODEPNG_COMPILE_ENCODER*/ |
| 4907 | lodepng_color_mode_init(&state->info_raw); |
| 4908 | lodepng_info_init(&state->info_png); |
| 4909 | state->error = 1; |
| 4910 | } |
| 4911 | |
| 4912 | void lodepng_state_cleanup(LodePNGState* state) |
| 4913 | { |
no test coverage detected