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

Function lodepng_decode_file

src/lodepng.cpp:4805–4815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4803
4804#ifdef LODEPNG_COMPILE_DISK
4805unsigned lodepng_decode_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename,
4806 LodePNGColorType colortype, unsigned bitdepth)
4807{
4808 unsigned char* buffer;
4809 size_t buffersize;
4810 unsigned error;
4811 error = lodepng_load_file(&buffer, &buffersize, filename);
4812 if(!error) error = lodepng_decode_memory(out, w, h, buffer, buffersize, colortype, bitdepth);
4813 lodepng_free(buffer);
4814 return error;
4815}
4816
4817unsigned lodepng_decode32_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename)
4818{

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