MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / lodepng_decode_memory

Function lodepng_decode_memory

samples/shared/lodepng.cpp:4631–4642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4629}
4630
4631unsigned lodepng_decode_memory(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in,
4632 size_t insize, LodePNGColorType colortype, unsigned bitdepth)
4633{
4634 unsigned error;
4635 LodePNGState state;
4636 lodepng_state_init(&state);
4637 state.info_raw.colortype = colortype;
4638 state.info_raw.bitdepth = bitdepth;
4639 error = lodepng_decode(out, w, h, &state, in, insize);
4640 lodepng_state_cleanup(&state);
4641 return error;
4642}
4643
4644unsigned lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize)
4645{

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