| 5880 | |
| 5881 | #ifdef LODEPNG_COMPILE_DISK |
| 5882 | unsigned 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 | |
| 5893 | unsigned lodepng_encode32_file(const char* filename, const unsigned char* image, unsigned w, unsigned h) |
| 5894 | { |
no test coverage detected