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

Static Public Member Functions

static byte[] ETC1Decompress (byte[] Input, int Width, int Height, bool Alpha)
 
static void EncodeETC1Block (FileWriter writer, int blockX, int blockY, byte[] Input, long IOffset, long OOffset, bool Alpha)
 

Static Private Member Functions

static ulong Swap64 (ulong Value)
 
static byte[] ETC1Tile (ulong Block)
 
static Color ETC1Pixel (uint R, uint G, uint B, int X, int Y, uint Block, uint Table)
 
static byte Saturate (int Value)
 

Static Private Attributes

static byte[] XT = { 0, 4, 0, 4 }
 
static byte[] YT = { 0, 0, 4, 4 }
 
static int[,] ETC1LUT
 

Member Function Documentation

◆ EncodeETC1Block()

static void ETC1.EncodeETC1Block ( FileWriter writer,
int blockX,
int blockY,
byte[] Input,
long IOffset,
long OOffset,
bool Alpha )
static

◆ ETC1Decompress()

static byte[] ETC1.ETC1Decompress ( byte[] Input,
int Width,
int Height,
bool Alpha )
static

◆ ETC1Pixel()

static Color ETC1.ETC1Pixel ( uint R,
uint G,
uint B,
int X,
int Y,
uint Block,
uint Table )
staticprivate

◆ ETC1Tile()

static byte[] ETC1.ETC1Tile ( ulong Block)
staticprivate

◆ Saturate()

static byte ETC1.Saturate ( int Value)
staticprivate

◆ Swap64()

static ulong ETC1.Swap64 ( ulong Value)
staticprivate

Member Data Documentation

◆ ETC1LUT

int [,] ETC1.ETC1LUT
staticprivate
Initial value:
=
{
{ 2, 8, -2, -8 },
{ 5, 17, -5, -17 },
{ 9, 29, -9, -29 },
{ 13, 42, -13, -42 },
{ 18, 60, -18, -60 },
{ 24, 80, -24, -80 },
{ 33, 106, -33, -106 },
{ 47, 183, -47, -183 }
}

◆ XT

byte [] ETC1.XT = { 0, 4, 0, 4 }
staticprivate

◆ YT

byte [] ETC1.YT = { 0, 0, 4, 4 }
staticprivate

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