![]() |
Twilight Princess
Remastered version of the GameCube game
|
Inheritance diagram for DDS:
Collaboration diagram for DDS:Classes | |
| class | DX10Header |
| class | Header |
Public Member Functions | |
| void | SetFlags (DXGI_FORMAT Format, bool UseDX10=false, bool isCubeMap=false) |
| override void | SetImageData (Bitmap bitmap, int ArrayLevel) |
| bool | Identify (Stream stream) |
| void | Unload () |
| void | Save (Stream stream) |
| void | SetFourCC (DXGI_FORMAT Format) |
| DDS () | |
| DDS (byte[] data) | |
| DDS (string FileName) | |
| void | Load (BinaryDataReader reader) |
| override byte[] | GetImageData (int ArrayLevel=0, int MipLevel=0, int DepthLevel=0) |
| void | SetArrayLevel (byte[] data, int ArrayIndex, int DepthIndex=0) |
| TEX_FORMAT | GetFormat () |
| bool | IsCompressed () |
| void | Save (DDS dds, string FileName, List< Surface > data=null) |
| void | Save (DDS dds, Stream stream, List< Surface > data=null) |
Public Member Functions inherited from STGenericTexture | |
| STGenericTexture () | |
| byte[] | GetImageData (int ArrayLevel=0, int MipLevel=0, int DepthLevel=0) |
| virtual byte[] | GetPaletteData () |
| List< Surface > | Get3DSurfaces (int IndexStart=0, bool GetAllSurfaces=true, int GetSurfaceAmount=1) |
| List< Surface > | GetSurfaces (int ArrayIndexStart=0, bool GetAllSurfaces=true, int GetSurfaceAmount=1) |
| void | SetImageData (Bitmap bitmap, int ArrayLevel) |
| void | CreateGenericTexture (uint width, uint height, List< Surface > surfaces, TEX_FORMAT format) |
| string | DebugInfo () |
| Gets a Bitmap given an array and mip index. | |
| uint | GenerateMipCount (int Width, int Height) |
| byte[] | GetBitmapData () |
| Bitmap | GetBitmapWithChannel () |
| Bitmap | GetBitmap (int ArrayLevel=0, int MipLevel=0, int DepthLevel=0) |
| Gets a Bitmap given an array and mip index. | |
| void | SaveBitmap (string path) |
| void | SaveDDS (string FileName, bool ExportSurfaceLevel=false, bool ExportMipMapLevel=false, int SurfaceLevel=0, int MipLevel=0) |
| uint | GenerateMipCount (uint Width, uint Height) |
| Bitmap | GetComponentBitmap (Bitmap image, bool ShowAlpha=true) |
Static Public Member Functions | |
| static byte[] | GenerateMipsAndCompress (Bitmap bitmap, uint MipCount, TEX_FORMAT Format, bool multiThread=false, float alphaRef=0.5f, STCompressionMode CompressionMode=STCompressionMode.Fast) |
| static bool | getFormatBlock (uint fourCC) |
| static List< Surface > | GetArrayFaces (STGenericTexture tex, byte[] ImageData, uint Length) |
| static List< Surface > | GetArrayFaces (DDS dds, uint Length, int DepthLevel=0) |
| static bool | IsAtscFormat (TEX_FORMAT Format) |
| static byte[] | CompressBC1Block (byte[] data, int Width, int Height) |
| static void | ToRGBA (byte[] data, int Width, int Height, int bpp, int compSel) |
Static Public Member Functions inherited from STGenericTexture | |
| static bool | IsCompressed (TEX_FORMAT Format) |
| static bool | IsCompressed2 (TEX_FORMAT Format) |
| static uint | GetBytesPerPixel (TEX_FORMAT Format) |
| static uint | GetBlockHeight (TEX_FORMAT Format) |
| static uint | GetBlockWidth (TEX_FORMAT Format) |
| static uint | GetBlockDepth (TEX_FORMAT Format) |
| static byte[] | DecodeBlock (byte[] data, uint Width, uint Height, TEX_FORMAT Format, byte[] paletteData, ImageParameters parameters, PALETTE_FORMAT PaletteFormat=PALETTE_FORMAT.None, PlatformSwizzle PlatformSwizzle=PlatformSwizzle.None) |
| Decodes a byte array of image data given the source image in bytes, width, height, and DXGI format. | |
| static bool | IsAtscFormat (TEX_FORMAT Format) |
| static STChannelType[] | SetChannelsByFormat (TEX_FORMAT Format) |
| static int | GenerateTotalMipCount (uint Width, uint Height) |
| static string | SetNameFromPath (string path) |
| static byte[] | ConvertBgraToRgba (byte[] bytes) |
Public Attributes | |
| PixelInternalFormat | pixelInternalFormat |
| PixelFormat | pixelFormat |
| PixelType | pixelType |
| bool | IsDX10 |
| Header | header |
| DX10Header | DX10header |
| byte[] | bdata |
| List< byte[]> | mipmaps = new() |
| bool | SwitchSwizzle = false |
| bool | WiiUSwizzle = false |
Public Attributes inherited from STGenericTexture | |
| ImageParameters | Parameters = new() |
| STSurfaceType | SurfaceType = STSurfaceType.Texture2D |
| PlatformSwizzle | PlatformSwizzle |
| The swizzle method to use when decoding or encoding back a texture. | |
| STChannelType | RedChannel = STChannelType.Red |
| STChannelType | GreenChannel = STChannelType.Green |
| STChannelType | BlueChannel = STChannelType.Blue |
| STChannelType | AlphaChannel = STChannelType.Alpha |
Static Public Attributes | |
| const uint | FOURCC_DXT1 = 0x31545844 |
| const uint | FOURCC_DXT2 = 0x32545844 |
| const uint | FOURCC_DXT3 = 0x33545844 |
| const uint | FOURCC_DXT4 = 0x34545844 |
| const uint | FOURCC_DXT5 = 0x35545844 |
| const uint | FOURCC_ATI1 = 0x31495441 |
| const uint | FOURCC_BC4U = 0x55344342 |
| const uint | FOURCC_BC4S = 0x53344342 |
| const uint | FOURCC_BC5U = 0x55354342 |
| const uint | FOURCC_BC5S = 0x53354342 |
| const uint | FOURCC_DX10 = 0x30315844 |
| const uint | FOURCC_ATI2 = 0x32495441 |
| const uint | FOURCC_RXGB = 0x42475852 |
Properties | |
| STGenericTexture | IconTexture [get] |
| override TEX_FORMAT[] | SupportedFormats [get] |
| override bool | CanEdit = true [get, set] |
| bool | CanSave = false [get, set] |
| bool | FileIsEdited = false [get, set] |
| bool | FileIsCompressed = false [get, set] |
| string[] | Description = new string[] { "Microsoft DDS" } [get, set] |
| string[] | Extension = new string[] { "*.dds" } [get, set] |
| string | FileName [get, set] |
| bool | IsActive = false [get, set] |
| bool | UseEditMenu = false [get, set] |
| int | Alignment = 0 [get, set] |
| string | FilePath [get, set] |
| Type[] | Types [get] |
Properties inherited from STGenericTexture | |
| bool | IsCubemap [get] |
| bool | IsSwizzled = true [get, set] |
| bool | IsEdited = false [get, set] |
| Is the texture edited or not. Used for the image editor for saving changes. | |
| EditedBitmap[] | EditedImages [get, set] |
| An array of EditedBitmap from the image editor to be saved back. | |
| bool | CanEdit [get, set] |
| long | DataSizeInBytes [get] |
| The total length of all the bytes given from GetImageData. | |
| uint | ArrayCount [get, set] |
| The total amount of surfaces for the texture. | |
| uint | MipCount [get, set] |
| The total amount of mipmaps for the texture. | |
| uint | Width [get, set] |
| The width of the image in pixels. | |
| uint | Height [get, set] |
| The height of the image in pixels. | |
| uint | Depth [get, set] |
| The depth of the image in pixels. Used for 3D types. | |
| TEX_FORMAT | Format = TEX_FORMAT.R8G8B8A8_UNORM [get, set] |
| The TEX_FORMAT Format of the image. | |
| TEX_FORMAT[] | SupportedFormats [get] |
| The PALETTE_FORMAT Format of the image. | |
| Properties | GenericProperties [get] |
Private Member Functions | |
| TEX_FORMAT | GetUncompressedType (DDS dds, byte[] Components, bool IsRGB, bool HasAlpha, bool HasLuminance, Header.DDS_PixelFormat header) |
| void | ReadDX10Header (BinaryDataReader reader) |
| void | WriteDX10Header (BinaryDataWriter writer) |
Static Private Member Functions | |
| static byte[] | ConvertRgb8ToRgbx8 (byte[] bytes) |
| static byte[] | ConvertToRgba (DDS dds, string Format, int bpp, byte[] compSel) |
| static byte[] | GetComponentsFromPixel (string Format, int pixel, byte[] comp) |
| static byte[] | ConvertBgraToRgba (byte[] bytes) |
Static Private Attributes | |
| static int[] | A1R5G5B5_MASKS = { 0x7C00, 0x03E0, 0x001F, 0x8000 } |
| static int[] | X1R5G5B5_MASKS = { 0x7C00, 0x03E0, 0x001F, 0x0000 } |
| static int[] | A4R4G4B4_MASKS = { 0x0F00, 0x00F0, 0x000F, 0xF000 } |
| static int[] | X4R4G4B4_MASKS = { 0x0F00, 0x00F0, 0x000F, 0x0000 } |
| static int[] | R5G6B5_MASKS = { 0xF800, 0x07E0, 0x001F, 0x0000 } |
| static int[] | R8G8B8_MASKS = { 0xFF0000, 0x00FF00, 0x0000FF, 0x000000 } |
| static uint[] | A8B8G8R8_MASKS = { 0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000 } |
| static int[] | X8B8G8R8_MASKS = { 0x000000FF, 0x0000FF00, 0x00FF0000, 0x00000000 } |
| static uint[] | A8R8G8B8_MASKS = { 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000 } |
| static int[] | X8R8G8B8_MASKS = { 0x00FF0000, 0x0000FF00, 0x000000FF, 0x00000000 } |
| static int[] | L8_MASKS = { 0x000000FF, 0x0000 } |
| static int[] | A8L8_MASKS = { 0x000000FF, 0x0F00 } |
| enum DDS.CubemapFace |
| enum DDS.DDPF : uint |
| enum DDS.DDSCAPS : uint |
| enum DDS.DDSCAPS2 : uint |
| enum DDS.DDSD : uint |
| enum DDS.DXGI_ASTC_FORMAT |
| enum DDS.DXGI_FORMAT : uint |
| DDS.DDS | ( | ) |
| DDS.DDS | ( | byte[] | data | ) |
| DDS.DDS | ( | string | FileName | ) |
|
static |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
|
static |
|
staticprivate |
| TEX_FORMAT DDS.GetFormat | ( | ) |
|
static |
| override byte[] DDS.GetImageData | ( | int | ArrayLevel = 0, |
| int | MipLevel = 0, | ||
| int | DepthLevel = 0 ) |
|
private |
| bool DDS.Identify | ( | Stream | stream | ) |
|
static |
| bool DDS.IsCompressed | ( | ) |
| void DDS.Load | ( | BinaryDataReader | reader | ) |
|
private |
| void DDS.Save | ( | Stream | stream | ) |
| void DDS.SetArrayLevel | ( | byte[] | data, |
| int | ArrayIndex, | ||
| int | DepthIndex = 0 ) |
| void DDS.SetFlags | ( | DXGI_FORMAT | Format, |
| bool | UseDX10 = false, | ||
| bool | isCubeMap = false ) |
| void DDS.SetFourCC | ( | DXGI_FORMAT | Format | ) |
| override void DDS.SetImageData | ( | Bitmap | bitmap, |
| int | ArrayLevel ) |
|
static |
| void DDS.Unload | ( | ) |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
| byte [] DDS.bdata |
| DX10Header DDS.DX10header |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| Header DDS.header |
| bool DDS.IsDX10 |
|
staticprivate |
| List<byte[]> DDS.mipmaps = new() |
| PixelFormat DDS.pixelFormat |
| PixelInternalFormat DDS.pixelInternalFormat |
| PixelType DDS.pixelType |
|
staticprivate |
|
staticprivate |
| bool DDS.SwitchSwizzle = false |
| bool DDS.WiiUSwizzle = false |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
get |
|
getset |
|
get |
|
get |
|
getset |