#include <string.h>
#include "squish.h"
#include "colourset.h"
#include "maths.h"
#include "rangefit.h"
#include "clusterfit.h"
#include "colourblock.h"
#include "alpha.h"
#include "singlecolourfit.h"
namespace squish {
static int FixFlags( int flags )
{ … }
void CompressMasked( u8 const* rgba, int mask, void* block, int flags, float* metric )
{ … }
void Decompress( u8* rgba, void const* block, int flags )
{ … }
int GetStorageRequirements( int width, int height, int flags )
{ … }
void CopyRGBA( u8 const* source, u8* dest, int flags )
{ … }
void CompressImage( u8 const* rgba, int width, int height, int pitch, void* blocks, int flags, float* metric )
{ … }
void CompressImage( u8 const* rgba, int width, int height, void* blocks, int flags, float* metric )
{ … }
void DecompressImage( u8* rgba, int width, int height, int pitch, void const* blocks, int flags )
{ … }
void DecompressImage( u8* rgba, int width, int height, void const* blocks, int flags )
{ … }
static double ErrorSq(double x, double y)
{ … }
static void ComputeBlockWMSE(u8 const *original, u8 const *compressed, unsigned int w, unsigned int h, double &cmse, double &amse)
{ … }
void ComputeMSE( u8 const *rgba, int width, int height, int pitch, u8 const *dxt, int flags, double &colourMSE, double &alphaMSE )
{ … }
void ComputeMSE( u8 const *rgba, int width, int height, u8 const *dxt, int flags, double &colourMSE, double &alphaMSE )
{ … }
}