Method | Description | |
---|---|---|
Compress ( byte rgba, SquishFlags flags ) : byte[] |
Compress a 4x4 pixel block using the parameters specified in flags.
|
|
Compress ( |
Compress a 4x4 pixel block using the parameters specified in flags.
|
|
CompressImage ( byte rgba, int width, int height, SquishFlags flags ) : byte[] |
Compresses an image using the parameters specified in flags.
|
|
CompressImage ( |
Compresses an image using the parameters specified in flags.
|
|
CompressMasked ( byte rgba, int mask, SquishFlags flags ) : byte[] |
Compress a 4x4 pixel block using the parameters specified in flags. The mask parameter is a used as a bit mask to specifify what pixels are valid for compression, corresponding the lowest bit to the first pixel.
|
|
CompressMasked ( |
Compress a 4x4 pixel block using the parameters specified in flags. The mask parameter is a used as a bit mask to specifify what pixels are valid for compression, corresponding the lowest bit to the first pixel.
|
|
Decompress ( byte block, SquishFlags flags ) : byte[] |
Decompresses a 4x4 pixel block using the parameters specified in flags.
|
|
Decompress ( |
Decompresses a 4x4 pixel block using the parameters specified in flags.
|
|
DecompressImage ( byte blocks, int width, int height, SquishFlags flags ) : byte[] |
Decompresses an image using the parameters specified in flags.
|
|
DecompressImage ( |
Decompresses an image using the parameters specified in flags.
|
|
GetStorageRequirements ( int width, int height, SquishFlags flags ) : int |
Returns the final size in bytes of DXT data compressed with the parameters specified in flags.
|
Method | Description | |
---|---|---|
Getx64Delegates ( ) : void | ||
Getx86Delegates ( ) : void | ||
Squish ( ) : System |
public static Compress ( byte rgba, SquishFlags flags ) : byte[] | ||
rgba | byte | Source RGBA block. |
flags | SquishFlags | Compression flags. |
return | byte[] |
public static Compress ( |
||
rgba | Source RGBA block. | |
block | Output DXT compressed block. | |
flags | SquishFlags | Compression flags. |
return | void |
public static CompressImage ( byte rgba, int width, int height, SquishFlags flags ) : byte[] | ||
rgba | byte | Source RGBA image. |
width | int | Width of the image. |
height | int | Height of the image. |
flags | SquishFlags | Compression flags. |
return | byte[] |
public static CompressImage ( |
||
rgba | Source RGBA image. | |
width | int | Width of the image. |
height | int | Height of the image. |
blocks | Output DXT compressed image. | |
flags | SquishFlags | Compression flags. |
return | void |
public static CompressMasked ( byte rgba, int mask, SquishFlags flags ) : byte[] | ||
rgba | byte | Source RGBA block. |
mask | int | Pixel bit mask. |
flags | SquishFlags | Compression flags. |
return | byte[] |
public static CompressMasked ( |
||
rgba | Source RGBA block. | |
mask | int | Pixel bit mask. |
block | Output DXT compressed block. | |
flags | SquishFlags | Compression flags. |
return | void |
public static Decompress ( byte block, SquishFlags flags ) : byte[] | ||
block | byte | Source DXT block. |
flags | SquishFlags | Decompression flags. |
return | byte[] |
public static Decompress ( |
||
rgba | Output RGBA decompressed block. | |
block | Source DXT block. | |
flags | SquishFlags | Decompression flags. |
return | void |
public static DecompressImage ( byte blocks, int width, int height, SquishFlags flags ) : byte[] | ||
blocks | byte | Source DXT compressed image. |
width | int | Width of the image. |
height | int | Height of the image. |
flags | SquishFlags | Decompression flags. |
return | byte[] |
public static DecompressImage ( |
||
rgba | Output RGBA decompressed image. | |
width | int | Width of the image. |
height | int | Height of the image. |
blocks | Source DXT compressed image. | |
flags | SquishFlags | Decompression flags. |
return | void |
public static GetStorageRequirements ( int width, int height, SquishFlags flags ) : int | ||
width | int | Source image width. |
height | int | Source image height. |
flags | SquishFlags | Compression parameters. |
return | int |