| 5927 | |
| 5928 | #ifdef LODEPNG_COMPILE_DISK |
| 5929 | unsigned lodepng_encode_file(const char* filename, const unsigned char* image, unsigned w, unsigned h, |
| 5930 | LodePNGColorType colortype, unsigned bitdepth) |
| 5931 | { |
| 5932 | unsigned char* buffer; |
| 5933 | size_t buffersize; |
| 5934 | unsigned error = lodepng_encode_memory(&buffer, &buffersize, image, w, h, colortype, bitdepth); |
| 5935 | if(!error) error = lodepng_save_file(buffer, buffersize, filename); |
| 5936 | lodepng_free(buffer); |
| 5937 | return error; |
| 5938 | } |
| 5939 | |
| 5940 | unsigned lodepng_encode32_file(const char* filename, const unsigned char* image, unsigned w, unsigned h) |
| 5941 | { |
no test coverage detected