CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
hrydgard

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: hrydgard/ppsspp
Path: blob/master/Common/Data/Format/ZIMSave.h
Views: 1401
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
16