C# Class UpkManager.Dds.Compression.DdsSquish

Mostra file Open project: stricq/UPKManager

Public Methods

Method Description
CompressImage ( byte rgba, int width, int height, SquishFlags flags, int>.Action progressFn ) : byte[]
DecompressImage ( int width, int height, byte blocks, SquishFlags flags, int>.Action progressFn ) : byte[]

Private Methods

Method Description
compressAlphaDxt3 ( byte rgba, int mask, byte block ) : void
compressAlphaDxt5 ( byte rgba, int mask, byte block ) : void
compressMasked ( byte rgba, int mask, byte block, SquishFlags flags ) : void
decompress ( byte rgba, byte block, SquishFlags flags ) : void
decompressAlphaDxt3 ( byte rgba, byte block ) : void
decompressAlphaDxt5 ( byte rgba, byte block ) : void
decompressColour ( byte rgba, byte block, bool isDxt1 ) : void
fitCodes ( byte rgba, int mask, byte codes, byte indices ) : int
fixFlags ( SquishFlags flags ) : SquishFlags
fixRange ( int &min, int &max, int steps ) : void
unpack565 ( byte packed, byte colour ) : int
writeAlphaBlock ( int alpha0, int alpha1, byte indices, byte block ) : void
writeAlphaBlock5 ( int alpha0, int alpha1, byte indices, byte block ) : void
writeAlphaBlock7 ( int alpha0, int alpha1, byte indices, byte block ) : void

Method Details

CompressImage() public static method

public static CompressImage ( byte rgba, int width, int height, SquishFlags flags, int>.Action progressFn ) : byte[]
rgba byte
width int
height int
flags SquishFlags
progressFn int>.Action
return byte[]

DecompressImage() public static method

public static DecompressImage ( int width, int height, byte blocks, SquishFlags flags, int>.Action progressFn ) : byte[]
width int
height int
blocks byte
flags SquishFlags
progressFn int>.Action
return byte[]