| 4629 | } |
| 4630 | |
| 4631 | unsigned lodepng_decode_memory(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, |
| 4632 | size_t insize, LodePNGColorType colortype, unsigned bitdepth) |
| 4633 | { |
| 4634 | unsigned error; |
| 4635 | LodePNGState state; |
| 4636 | lodepng_state_init(&state); |
| 4637 | state.info_raw.colortype = colortype; |
| 4638 | state.info_raw.bitdepth = bitdepth; |
| 4639 | error = lodepng_decode(out, w, h, &state, in, insize); |
| 4640 | lodepng_state_cleanup(&state); |
| 4641 | return error; |
| 4642 | } |
| 4643 | |
| 4644 | unsigned lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize) |
| 4645 | { |
no test coverage detected