BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Protected Member Functions | Properties | List of all members
BrawlLib.Wii.Textures.IA4 Class Reference
Inheritance diagram for BrawlLib.Wii.Textures.IA4:
BrawlLib.Wii.Textures.TextureConverter

Protected Member Functions

override void DecodeBlock (VoidPtr blockAddr, ARGBPixel *dPtr, int width)
 
override void EncodeBlock (ARGBPixel *sPtr, VoidPtr blockAddr, int width)
 
abstract void EncodeBlock (ARGBPixel *sPtr, VoidPtr blockAddr, int width)
 
abstract void DecodeBlock (VoidPtr blockAddr, ARGBPixel *destAddr, int width)
 

Properties

override int BitsPerPixel [get]
 
override int BlockWidth [get]
 
override int BlockHeight [get]
 
override WiiPixelFormat RawFormat [get]
 
- Properties inherited from BrawlLib.Wii.Textures.TextureConverter
abstract WiiPixelFormat RawFormat [get]
 
abstract int BitsPerPixel [get]
 
abstract int BlockWidth [get]
 
abstract int BlockHeight [get]
 
bool IsIndexed [get]
 

Additional Inherited Members

- Public Member Functions inherited from BrawlLib.Wii.Textures.TextureConverter
int GetMipOffset (int width, int height, int mipLevel)
 
int GetMipOffset (ref int width, ref int height, int mipLevel)
 
int GetFileSize (int width, int height, int mipLevels)
 
virtual FileMap EncodeTPLTextureIndexed (Bitmap src, int numColors, WiiPaletteFormat format, QuantizationAlgorithm algorithm, out FileMap paletteFile)
 
virtual FileMap EncodeTextureIndexed (Bitmap src, int mipLevels, int numColors, WiiPaletteFormat format, QuantizationAlgorithm algorithm, out FileMap paletteFile)
 
virtual FileMap EncodeREFTTextureIndexed (Bitmap src, int mipLevels, int numColors, WiiPaletteFormat format, QuantizationAlgorithm algorithm)
 
virtual FileMap EncodeTPLTextureIndexed (Bitmap src, int mipLevels, WiiPaletteFormat format, out FileMap paletteFile)
 
virtual FileMap EncodeREFTTextureIndexed (Bitmap src, int mipLevels, WiiPaletteFormat format)
 
virtual FileMap EncodeTEX0TextureIndexed (Bitmap src, int mipLevels, WiiPaletteFormat format, out FileMap paletteFile)
 
virtual FileMap EncodeREFTTexture (Bitmap src, int mipLevels, WiiPaletteFormat format)
 
virtual FileMap EncodeTEX0Texture (Bitmap src, int mipLevels)
 
virtual FileMap EncodeTPLTexture (Bitmap src, int mipLevels)
 
Bitmap DecodeTexture (TEX0v1 *texture)
 
virtual Bitmap DecodeTexture (TEX0v1 *texture, int mipLevel)
 
virtual Bitmap DecodeTexture (VoidPtr addr, int w, int h, int mipLevel)
 
virtual Bitmap DecodeTextureIndexed (TEX0v1 *texture, PLT0v1 *palette, int mipLevel)
 
virtual Bitmap DecodeTextureIndexed (TEX0v1 *texture, ColorPalette palette, int mipLevel)
 
virtual Bitmap DecodeTextureIndexed (VoidPtr addr, int w, int h, ColorPalette palette, int mipLevel, WiiPixelFormat fmt)
 
- Static Public Member Functions inherited from BrawlLib.Wii.Textures.TextureConverter
static Bitmap Decode (VoidPtr addr, int w, int h, int mipLevel, WiiPixelFormat fmt)
 
static TextureConverter Get (WiiPixelFormat format)
 
static Bitmap Decode (TEX0v1 *texture, int mipLevel)
 
static Bitmap DecodeIndexed (TEX0v1 *texture, PLT0v1 *palette, int mipLevel)
 
static Bitmap DecodeIndexed (TEX0v1 *texture, ColorPalette palette, int mipLevel)
 
static Bitmap DecodeIndexed (VoidPtr addr, int w, int h, ColorPalette palette, int mipLevel, WiiPixelFormat fmt)
 
static FileMap EncodePLT0Palette (ColorPalette pal, WiiPaletteFormat format)
 
static FileMap EncodeTPLPalette (ColorPalette pal, WiiPaletteFormat format)
 
static FileMap EncodePalette (ColorPalette pal, WiiPaletteFormat format)
 
static void EncodePalette (VoidPtr destAddr, ColorPalette pal, WiiPaletteFormat format)
 
static ColorPalette DecodePalette (PLT0v1 *palette)
 
static ColorPalette DecodePalette (VoidPtr address, int count, WiiPaletteFormat format)
 
- Static Public Attributes inherited from BrawlLib.Wii.Textures.TextureConverter
static readonly TextureConverter I4 = new I4()
 
static readonly TextureConverter IA4 = new IA4()
 
static readonly TextureConverter I8 = new I8()
 
static readonly TextureConverter IA8 = new IA8()
 
static readonly TextureConverter RGB565 = new RGB565()
 
static readonly TextureConverter RGB5A3 = new RGB5A3()
 
static readonly TextureConverter CI4 = new CI4()
 
static readonly TextureConverter CI8 = new CI8()
 
static readonly CMPR CMPR = new CMPR()
 
static readonly TextureConverter RGBA8 = new RGBA8()
 
- Protected Attributes inherited from BrawlLib.Wii.Textures.TextureConverter
ColorPalette _workingPalette
 

Member Function Documentation

◆ DecodeBlock()

override void BrawlLib.Wii.Textures.IA4.DecodeBlock ( VoidPtr  blockAddr,
ARGBPixel dPtr,
int  width 
)
inlineprotectedvirtual

Implements BrawlLib.Wii.Textures.TextureConverter.

19 {
20 IA4Pixel* sPtr = (IA4Pixel*) blockAddr;
21 //ARGBPixel* dPtr = (ARGBPixel*)destAddr;
22 for (int y = 0; y < BlockHeight; y++, dPtr += width)
23 {
24 for (int x = 0; x < BlockWidth;)
25 {
26 dPtr[x++] = *sPtr++;
27 }
28 }
29 }
override int BlockHeight
Definition: IA4.cs:13
override int BlockWidth
Definition: IA4.cs:11

◆ EncodeBlock()

override void BrawlLib.Wii.Textures.IA4.EncodeBlock ( ARGBPixel sPtr,
VoidPtr  blockAddr,
int  width 
)
inlineprotectedvirtual

Implements BrawlLib.Wii.Textures.TextureConverter.

32 {
33 IA4Pixel* dPtr = (IA4Pixel*) blockAddr;
34 for (int y = 0; y < BlockHeight; y++, sPtr += width)
35 {
36 for (int x = 0; x < BlockWidth;)
37 {
38 *dPtr++ = sPtr[x++];
39 }
40 }
41 }

Property Documentation

◆ BitsPerPixel

override int BrawlLib.Wii.Textures.IA4.BitsPerPixel
get

◆ BlockHeight

override int BrawlLib.Wii.Textures.IA4.BlockHeight
get

◆ BlockWidth

override int BrawlLib.Wii.Textures.IA4.BlockWidth
get

◆ RawFormat

override WiiPixelFormat BrawlLib.Wii.Textures.IA4.RawFormat
get

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