mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-12-01 03:24:23 +01:00
28 lines
516 B
C
28 lines
516 B
C
#ifndef _TEX_COMP_H_
|
|
#define _TEX_COMP_H_
|
|
|
|
#include "ImageFile.h"
|
|
#include "CompressedImage.h"
|
|
|
|
struct SCompressionSettings {
|
|
SCompressionSettings(); // defaults
|
|
ECompressionFormat format;
|
|
bool bUseSIMD;
|
|
int iNumThreads;
|
|
int iQuality;
|
|
};
|
|
|
|
extern CompressedImage * CompressImage(
|
|
const ImageFile &,
|
|
const SCompressionSettings &settings
|
|
);
|
|
|
|
typedef void (* CompressionFunc)(
|
|
const unsigned char *inData,
|
|
unsigned char *outData,
|
|
unsigned int width,
|
|
unsigned int height
|
|
);
|
|
|
|
#endif //_TEX_COMP_H_
|