MCPcopy Create free account
hub / github.com/creatale/node-dv / lodepng_decode_memory

Function lodepng_decode_memory

deps/lodepng/lodepng.cpp:4835–4846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4833}
4834
4835unsigned 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
4848unsigned lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize)
4849{

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