| 4842 | #if defined(LODEPNG_COMPILE_DECODER) || defined(LODEPNG_COMPILE_ENCODER) |
| 4843 | |
| 4844 | void lodepng_state_init(LodePNGState* state) |
| 4845 | { |
| 4846 | #ifdef LODEPNG_COMPILE_DECODER |
| 4847 | lodepng_decoder_settings_init(&state->decoder); |
| 4848 | #endif /*LODEPNG_COMPILE_DECODER*/ |
| 4849 | #ifdef LODEPNG_COMPILE_ENCODER |
| 4850 | lodepng_encoder_settings_init(&state->encoder); |
| 4851 | #endif /*LODEPNG_COMPILE_ENCODER*/ |
| 4852 | lodepng_color_mode_init(&state->info_raw); |
| 4853 | lodepng_info_init(&state->info_png); |
| 4854 | state->error = 1; |
| 4855 | } |
| 4856 | |
| 4857 | void lodepng_state_cleanup(LodePNGState* state) |
| 4858 | { |
no test coverage detected