1 #pragma once
2 
3 #include <cstdio>
4 #include <cstdint>
5 
6 // For the type enums etc.
7 #include "Common/Data/Format/ZIMLoad.h"
8 
9 // SaveZIM's responsibility:
10 // * Write the ZIM format
11 // * Generate mipmaps if requested
12 // * Convert images to the requested format
13 // Input image is always 8888 RGBA. SaveZIM takes care of downsampling and mipmap generation.
14 void SaveZIM(FILE *f, int width, int height, int pitch, int format, const uint8_t *image, int compressLevel = 0);
15