| 4760 | } |
| 4761 | |
| 4762 | unsigned lodepng_decode_memory(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, |
| 4763 | size_t insize, LodePNGColorType colortype, unsigned bitdepth) |
| 4764 | { |
| 4765 | unsigned error; |
| 4766 | LodePNGState state; |
| 4767 | lodepng_state_init(&state); |
| 4768 | state.info_raw.colortype = colortype; |
| 4769 | state.info_raw.bitdepth = bitdepth; |
| 4770 | error = lodepng_decode(out, w, h, &state, in, insize); |
| 4771 | lodepng_state_cleanup(&state); |
| 4772 | return error; |
| 4773 | } |
| 4774 | |
| 4775 | unsigned lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize) |
| 4776 | { |
no test coverage detected