| 4691 | #if defined(LODEPNG_COMPILE_DECODER) || defined(LODEPNG_COMPILE_ENCODER) |
| 4692 | |
| 4693 | void lodepng_state_init(LodePNGState* state) |
| 4694 | { |
| 4695 | #ifdef LODEPNG_COMPILE_DECODER |
| 4696 | lodepng_decoder_settings_init(&state->decoder); |
| 4697 | #endif /*LODEPNG_COMPILE_DECODER*/ |
| 4698 | #ifdef LODEPNG_COMPILE_ENCODER |
| 4699 | lodepng_encoder_settings_init(&state->encoder); |
| 4700 | #endif /*LODEPNG_COMPILE_ENCODER*/ |
| 4701 | lodepng_color_mode_init(&state->info_raw); |
| 4702 | lodepng_info_init(&state->info_png); |
| 4703 | state->error = 1; |
| 4704 | } |
| 4705 | |
| 4706 | void lodepng_state_cleanup(LodePNGState* state) |
| 4707 | { |
no test coverage detected