MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / lodepng_decode_memory

Function lodepng_decode_memory

src/lodepng.cpp:4781–4792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4779}
4780
4781unsigned 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
4794unsigned lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize)
4795{

Callers 4

lodepng_decode32Function · 0.85
lodepng_decode24Function · 0.85
lodepng_decode_fileFunction · 0.85
decodeFunction · 0.85

Calls 3

lodepng_state_initFunction · 0.85
lodepng_decodeFunction · 0.85
lodepng_state_cleanupFunction · 0.85

Tested by

no test coverage detected