| 5053 | #if defined(LODEPNG_COMPILE_DECODER) || defined(LODEPNG_COMPILE_ENCODER) |
| 5054 | |
| 5055 | void lodepng_state_init(LodePNGState* state) { |
| 5056 | #ifdef LODEPNG_COMPILE_DECODER |
| 5057 | lodepng_decoder_settings_init(&state->decoder); |
| 5058 | #endif /*LODEPNG_COMPILE_DECODER*/ |
| 5059 | #ifdef LODEPNG_COMPILE_ENCODER |
| 5060 | lodepng_encoder_settings_init(&state->encoder); |
| 5061 | #endif /*LODEPNG_COMPILE_ENCODER*/ |
| 5062 | lodepng_color_mode_init(&state->info_raw); |
| 5063 | lodepng_info_init(&state->info_png); |
| 5064 | state->error = 1; |
| 5065 | } |
| 5066 | |
| 5067 | void lodepng_state_cleanup(LodePNGState* state) { |
| 5068 | lodepng_color_mode_cleanup(&state->info_raw); |
no test coverage detected