ppsspp/Common/Data/Format/ZIMSave.h
Unknown W. Brackets 7afd02e7e0 Tools: Make ZimTool able to use ZSTD/specify level.
There's decompression speed tradeoffs at some levels.
2021-05-16 09:39:39 -07:00

14 lines
462 B
C++

#pragma once
#include <cstdio>
#include <cstdint>
// For the type enums etc.
#include "Common/Data/Format/ZIMLoad.h"
// 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);