2012-03-24 23:39:19 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
2020-02-29 15:24:22 +01:00
|
|
|
#include <cstdio>
|
2020-09-29 12:44:47 +02:00
|
|
|
#include <cstdint>
|
2020-02-29 15:24:22 +01:00
|
|
|
|
2020-09-29 12:44:47 +02:00
|
|
|
// For the type enums etc.
|
2020-10-04 20:48:47 +02:00
|
|
|
#include "Common/Data/Format/ZIMLoad.h"
|
2012-03-24 23:39:19 +01:00
|
|
|
|
|
|
|
|
// SaveZIM's responsibility:
|
|
|
|
|
// * Write the ZIM format
|
|
|
|
|
// * Generate mipmaps if requested
|
|
|
|
|
// * Convert images to the requested format
|
|
|
|
|
// Input image is always 8888 RGBA. SaveZIM takes care of downsampling and mipmap generation.
|
2021-05-16 09:39:39 -07:00
|
|
|
void SaveZIM(FILE *f, int width, int height, int pitch, int format, const uint8_t *image, int compressLevel = 0);
|