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

Function lodepng_encode_file

dependency/densecrf/examples/lodepng.cpp:5854–5863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5852
5853#ifdef LODEPNG_COMPILE_DISK
5854unsigned lodepng_encode_file(const char* filename, const unsigned char* image, unsigned w, unsigned h,
5855 LodePNGColorType colortype, unsigned bitdepth)
5856{
5857 unsigned char* buffer;
5858 size_t buffersize;
5859 unsigned error = lodepng_encode_memory(&buffer, &buffersize, image, w, h, colortype, bitdepth);
5860 if(!error) error = lodepng_save_file(buffer, buffersize, filename);
5861 lodepng_free(buffer);
5862 return error;
5863}
5864
5865unsigned lodepng_encode32_file(const char* filename, const unsigned char* image, unsigned w, unsigned h)
5866{

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