squish.h File Reference

Go to the source code of this file.


Namespaces

namespace  squish
 All squish API functions live in this namespace.

Typedefs

typedef unsigned char squish::u8
 Typedef a quantity that is a single unsigned byte.

Enumerations

enum  {
  squish::kDxt1 = ( 1 << 0 ), squish::kDxt3 = ( 1 << 1 ), squish::kDxt5 = ( 1 << 2 ), squish::kColourIterativeClusterFit = ( 1 << 8 ),
  squish::kColourClusterFit = ( 1 << 3 ), squish::kColourRangeFit = ( 1 << 4 ), squish::kColourMetricPerceptual = ( 1 << 5 ), squish::kColourMetricUniform = ( 1 << 6 ),
  squish::kWeightColourByAlpha = ( 1 << 7 )
}

Functions

void squish::Compress (u8 const *rgba, void *block, int flags)
 Compresses a 4x4 block of pixels.
void squish::CompressMasked (u8 const *rgba, int mask, void *block, int flags)
 Compresses a 4x4 block of pixels.
void squish::Decompress (u8 *rgba, void const *block, int flags)
 Decompresses a 4x4 block of pixels.
int squish::GetStorageRequirements (int width, int height, int flags)
 Computes the amount of compressed storage required.
void squish::CompressImage (u8 const *rgba, int width, int height, void *blocks, int flags)
 Compresses an image in memory.
void squish::DecompressImage (u8 *rgba, int width, int height, void const *blocks, int flags)
 Decompresses an image in memory.


Generated on Fri Jul 10 12:25:27 2009 for squish by  doxygen 1.5.8