FasTC/Core/include/TexComp.h

31 lines
612 B
C
Raw Normal View History

2012-08-27 17:36:59 +00:00
#ifndef _TEX_COMP_H_
#define _TEX_COMP_H_
2012-08-27 22:34:37 +00:00
#include "ImageFile.h"
#include "CompressedImage.h"
struct SCompressionSettings {
SCompressionSettings(); // defaults
ECompressionFormat format;
bool bUseSIMD;
int iNumThreads;
int iQuality;
int iNumCompressions;
2012-08-27 22:34:37 +00:00
};
extern CompressedImage * CompressImage(
2012-08-27 22:34:37 +00:00
const ImageFile &,
const SCompressionSettings &settings
);
typedef void (* CompressionFunc)(
const unsigned char *inData,
unsigned char *outData,
unsigned int width,
unsigned int height
);
2012-09-18 23:00:20 +00:00
extern double ComputePSNR(const CompressedImage &, const ImageFile &);
2012-08-27 17:36:59 +00:00
#endif //_TEX_COMP_H_