MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF / lodepng_decode_memory

Function lodepng_decode_memory

dependency/densecrf/examples/lodepng.cpp:4762–4773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4760}
4761
4762unsigned 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
4775unsigned lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize)
4776{

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