ImageUtil

Engine/source/gfx/bitmap/imageUtils.cpp

More...

Classes:

Public Enumerations

enum
CompressQuality {
  LowQuality 
  MediumQuality 
  HighQuality 
}

Public Functions

bool
ddsCompress(DDSFile * srcDDS, const GFXFormat compressFormat, const CompressQuality compressQuality)
bool
decompress(const U8 * src, U8 * dstRGBA, const S32 width, const S32 height, const GFXFormat srcFormat)
bool
rawCompress(const U8 * srcRGBA, U8 * dst, const S32 width, const S32 height, const GFXFormat compressFormat, const CompressQuality compressQuality)
swizzleDDS(DDSFile * srcDDS, const Swizzle< U8, 4 > & swizzle)

Detailed Description

Public Enumerations

CompressQuality

Enumerator

LowQuality
MediumQuality
HighQuality

Public Functions

_getSquishFormat(const GFXFormat compressFormat)

_getSquishQuality(const CompressQuality quality)

ddsCompress(DDSFile * srcDDS, const GFXFormat compressFormat, const CompressQuality compressQuality)

decompress(const U8 * src, U8 * dstRGBA, const S32 width, const S32 height, const GFXFormat srcFormat)

getMaxMipCount(const U32 width, const U32 height)

isAlphaFormat(const GFXFormat format)

isCompressedFormat(const GFXFormat format)

isSRGBFormat(const GFXFormat format)

rawCompress(const U8 * srcRGBA, U8 * dst, const S32 width, const S32 height, const GFXFormat compressFormat, const CompressQuality compressQuality)

swizzleDDS(DDSFile * srcDDS, const Swizzle< U8, 4 > & swizzle)

toSRGBFormat(const GFXFormat format)