mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 17:45:11 +02:00
7afd02e7e0
There's decompression speed tradeoffs at some levels.
15 lines
462 B
C++
15 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);
|