Twilight Princess
Remastered version of the GameCube game
Loading...
Searching...
No Matches
DDSCompressor Class Reference

Static Public Member Functions

static Bitmap DecompressBC1 (byte[] data, int width, int height, bool IsSRGB)
 
static Bitmap DecompressBC3 (byte[] data, int width, int height, bool IsSRGB)
 
static Bitmap DecompressBC4 (byte[] data, int width, int height, bool IsSNORM)
 
static byte[] DecompressBC5 (byte[] data, int width, int height, bool IsSNORM, bool IsByteArray)
 
static Bitmap DecompressBC5 (byte[] data, int width, int height, bool IsSNORM)
 
static unsafe byte[] DecompressBlock (byte[] data, int width, int height, DDS.DXGI_FORMAT format)
 
static byte[] DecodePixelBlock (byte[] data, int width, int height, DDS.DXGI_FORMAT format, float AlphaRef=0.5f)
 
static byte[] Convert (byte[] data, int width, int height, DXGI_FORMAT inputFormat, DXGI_FORMAT outputFormat)
 
static int Get16 (byte[] Data, int Address)
 
static int Get32 (byte[] Data, int Address)
 

Static Private Member Functions

static byte[] BCnDecodeTile (byte[] Input, int Offset, bool IsBC1)
 
static Color DecodeRGB565 (int Value)
 
static Color CalculateCLUT2 (Color C0, Color C1, int c0, int c1, bool IsBC1)
 
static Color CalculateCLUT3 (Color C0, Color C1, int c0, int c1, bool IsBC1)
 
static byte Clamp (float Value)
 
static void CalculateBC3Alpha (byte[] Alpha)
 
static void CalculateBC3AlphaS (byte[] Alpha)
 

Member Function Documentation

◆ BCnDecodeTile()

static byte[] DDSCompressor.BCnDecodeTile ( byte[] Input,
int Offset,
bool IsBC1 )
staticprivate

◆ CalculateBC3Alpha()

static void DDSCompressor.CalculateBC3Alpha ( byte[] Alpha)
staticprivate

◆ CalculateBC3AlphaS()

static void DDSCompressor.CalculateBC3AlphaS ( byte[] Alpha)
staticprivate

◆ CalculateCLUT2()

static Color DDSCompressor.CalculateCLUT2 ( Color C0,
Color C1,
int c0,
int c1,
bool IsBC1 )
staticprivate

◆ CalculateCLUT3()

static Color DDSCompressor.CalculateCLUT3 ( Color C0,
Color C1,
int c0,
int c1,
bool IsBC1 )
staticprivate

◆ Clamp()

static byte DDSCompressor.Clamp ( float Value)
staticprivate

◆ Convert()

static byte[] DDSCompressor.Convert ( byte[] data,
int width,
int height,
DXGI_FORMAT inputFormat,
DXGI_FORMAT outputFormat )
static

◆ DecodePixelBlock()

static byte[] DDSCompressor.DecodePixelBlock ( byte[] data,
int width,
int height,
DDS.DXGI_FORMAT format,
float AlphaRef = 0::5f )
static

◆ DecodeRGB565()

static Color DDSCompressor.DecodeRGB565 ( int Value)
staticprivate

◆ DecompressBC1()

static Bitmap DDSCompressor.DecompressBC1 ( byte[] data,
int width,
int height,
bool IsSRGB )
static

◆ DecompressBC3()

static Bitmap DDSCompressor.DecompressBC3 ( byte[] data,
int width,
int height,
bool IsSRGB )
static

◆ DecompressBC4()

static Bitmap DDSCompressor.DecompressBC4 ( byte[] data,
int width,
int height,
bool IsSNORM )
static

◆ DecompressBC5() [1/2]

static Bitmap DDSCompressor.DecompressBC5 ( byte[] data,
int width,
int height,
bool IsSNORM )
static

◆ DecompressBC5() [2/2]

static byte[] DDSCompressor.DecompressBC5 ( byte[] data,
int width,
int height,
bool IsSNORM,
bool IsByteArray )
static

◆ DecompressBlock()

static unsafe byte[] DDSCompressor.DecompressBlock ( byte[] data,
int width,
int height,
DDS.DXGI_FORMAT format )
static

◆ Get16()

static int DDSCompressor.Get16 ( byte[] Data,
int Address )
static

◆ Get32()

static int DDSCompressor.Get32 ( byte[] Data,
int Address )
static

The documentation for this class was generated from the following file: