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

Function lodepng_decode_file

dependency/densecrf/examples/lodepng.cpp:4786–4796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4784
4785#ifdef LODEPNG_COMPILE_DISK
4786unsigned lodepng_decode_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename,
4787 LodePNGColorType colortype, unsigned bitdepth)
4788{
4789 unsigned char* buffer = 0;
4790 size_t buffersize;
4791 unsigned error;
4792 error = lodepng_load_file(&buffer, &buffersize, filename);
4793 if(!error) error = lodepng_decode_memory(out, w, h, buffer, buffersize, colortype, bitdepth);
4794 lodepng_free(buffer);
4795 return error;
4796}
4797
4798unsigned lodepng_decode32_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename)
4799{

Callers 2

lodepng_decode32_fileFunction · 0.85
lodepng_decode24_fileFunction · 0.85

Calls 3

lodepng_load_fileFunction · 0.85
lodepng_decode_memoryFunction · 0.85
lodepng_freeFunction · 0.85

Tested by

no test coverage detected