Files
ppsspp/Common/Data/Format/ZIMSave.h

15 lines
462 B
C
Raw Permalink Normal View History

2012-03-24 23:39:19 +01:00
#pragma once
2020-02-29 15:24:22 +01:00
#include <cstdio>
#include <cstdint>
2020-02-29 15:24:22 +01:00
// For the type enums etc.
#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.
void SaveZIM(FILE *f, int width, int height, int pitch, int format, const uint8_t *image, int compressLevel = 0);