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

Function lodepng_encode_file

src/lodepng.cpp:5882–5891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5880
5881#ifdef LODEPNG_COMPILE_DISK
5882unsigned lodepng_encode_file(const char* filename, const unsigned char* image, unsigned w, unsigned h,
5883 LodePNGColorType colortype, unsigned bitdepth)
5884{
5885 unsigned char* buffer;
5886 size_t buffersize;
5887 unsigned error = lodepng_encode_memory(&buffer, &buffersize, image, w, h, colortype, bitdepth);
5888 if(!error) error = lodepng_save_file(buffer, buffersize, filename);
5889 lodepng_free(buffer);
5890 return error;
5891}
5892
5893unsigned lodepng_encode32_file(const char* filename, const unsigned char* image, unsigned w, unsigned h)
5894{

Callers 2

lodepng_encode32_fileFunction · 0.85
lodepng_encode24_fileFunction · 0.85

Calls 3

lodepng_encode_memoryFunction · 0.85
lodepng_save_fileFunction · 0.85
lodepng_freeFunction · 0.85

Tested by

no test coverage detected