| 4779 | } |
| 4780 | |
| 4781 | unsigned lodepng_decode_memory(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, |
| 4782 | size_t insize, LodePNGColorType colortype, unsigned bitdepth) |
| 4783 | { |
| 4784 | unsigned error; |
| 4785 | LodePNGState state; |
| 4786 | lodepng_state_init(&state); |
| 4787 | state.info_raw.colortype = colortype; |
| 4788 | state.info_raw.bitdepth = bitdepth; |
| 4789 | error = lodepng_decode(out, w, h, &state, in, insize); |
| 4790 | lodepng_state_cleanup(&state); |
| 4791 | return error; |
| 4792 | } |
| 4793 | |
| 4794 | unsigned lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize) |
| 4795 | { |
no test coverage detected