35 typedef unsigned char u8;
116 void CompressMasked( u8
const* rgba,
int mask,
void* block,
int flags,
float* metric = 0 );
157 inline void Compress( u8
const* rgba,
void* block,
int flags,
float* metric = 0 )
179 void Decompress( u8* rgba,
void const* block,
int flags );
243 void CompressImage( u8
const* rgba,
int width,
int height,
int pitch,
void* blocks,
int flags,
float* metric = 0 );
244 void CompressImage( u8
const* rgba,
int width,
int height,
void* blocks,
int flags,
float* metric = 0 );
268 void DecompressImage( u8* rgba,
int width,
int height,
int pitch,
void const* blocks,
int flags );
269 void DecompressImage( u8* rgba,
int width,
int height,
void const* blocks,
int flags );
293 void ComputeMSE(u8
const *rgba,
int width,
int height,
int pitch, u8
const *dxt,
int flags,
double &colourMSE,
double &alphaMSE);
294 void ComputeMSE(u8
const *rgba,
int width,
int height, u8
const *dxt,
int flags,
double &colourMSE,
double &alphaMSE);
300 #endif // ndef SQUISH_H void DecompressImage(u8 *rgba, int width, int height, int pitch, void const *blocks, int flags)
Decompresses an image in memory.
int GetStorageRequirements(int width, int height, int flags)
Computes the amount of compressed storage required.
void Decompress(u8 *rgba, void const *block, int flags)
Decompresses a 4x4 block of pixels.
Use DXT1 compression.
Definition: squish.h:42
Use BC4 compression.
Definition: squish.h:51
Weight the colour by alpha during cluster fit (disabled by default).
Definition: squish.h:63
void CompressMasked(u8 const *rgba, int mask, void *block, int flags, float *metric=0)
Compresses a 4x4 block of pixels.
Use a slow but high quality colour compressor (the default).
Definition: squish.h:57
Use DXT3 compression.
Definition: squish.h:45
Use a fast but low quality colour compressor.
Definition: squish.h:60
Source is BGRA rather than RGBA.
Definition: squish.h:69
unsigned char u8
Typedef a quantity that is a single unsigned byte.
Definition: squish.h:35
void Compress(u8 const *rgba, void *block, int flags, float *metric=0)
Compresses a 4x4 block of pixels.
Definition: squish.h:157
void ComputeMSE(u8 const *rgba, int width, int height, int pitch, u8 const *dxt, int flags, double &colourMSE, double &alphaMSE)
Computes MSE of an compressed image in memory.
Use BC5 compression.
Definition: squish.h:54
All squish API functions live in this namespace.
Definition: squish.h:30
Use DXT5 compression.
Definition: squish.h:48
void CompressImage(u8 const *rgba, int width, int height, int pitch, void *blocks, int flags, float *metric=0)
Compresses an image in memory.
Use a very slow but very high quality colour compressor.
Definition: squish.h:66