| 4833 | } |
| 4834 | |
| 4835 | unsigned lodepng_decode_memory(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, |
| 4836 | size_t insize, LodePNGColorType colortype, unsigned bitdepth) |
| 4837 | { |
| 4838 | unsigned error; |
| 4839 | LodePNGState state; |
| 4840 | lodepng_state_init(&state); |
| 4841 | state.info_raw.colortype = colortype; |
| 4842 | state.info_raw.bitdepth = bitdepth; |
| 4843 | error = lodepng_decode(out, w, h, &state, in, insize); |
| 4844 | lodepng_state_cleanup(&state); |
| 4845 | return error; |
| 4846 | } |
| 4847 | |
| 4848 | unsigned lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize) |
| 4849 | { |
no test coverage detected