2012-08-27 19:36:59 +02:00
|
|
|
#ifndef _TEX_COMP_H_
|
|
|
|
#define _TEX_COMP_H_
|
|
|
|
|
2012-08-28 00:34:37 +02:00
|
|
|
#include "ImageFile.h"
|
|
|
|
#include "CompressedImage.h"
|
|
|
|
|
|
|
|
struct SCompressionSettings {
|
|
|
|
SCompressionSettings(); // defaults
|
|
|
|
ECompressionFormat format;
|
|
|
|
bool bUseSIMD;
|
|
|
|
int iNumThreads;
|
2012-08-30 23:46:34 +02:00
|
|
|
int iQuality;
|
2012-09-15 16:29:36 +02:00
|
|
|
int iNumCompressions;
|
2012-08-28 00:34:37 +02:00
|
|
|
};
|
|
|
|
|
2012-08-28 04:49:00 +02:00
|
|
|
extern CompressedImage * CompressImage(
|
2012-08-28 00:34:37 +02:00
|
|
|
const ImageFile &,
|
|
|
|
const SCompressionSettings &settings
|
|
|
|
);
|
|
|
|
|
|
|
|
typedef void (* CompressionFunc)(
|
|
|
|
const unsigned char *inData,
|
|
|
|
unsigned char *outData,
|
|
|
|
unsigned int width,
|
|
|
|
unsigned int height
|
|
|
|
);
|
|
|
|
|
2012-08-27 19:36:59 +02:00
|
|
|
#endif //_TEX_COMP_H_
|