Formats/Common:SSH: Difference between revisions

m
Finished SSH Import
No edit summary
m (Finished SSH Import)
|Offset
|}
 
=== Header End ===
{| class="wikitable"
|String?
|}
 
=== Texture Entry ===
==== Entry Texture Types ====
 
};
</syntaxhighlight>| Chunk Type           | Description                  |
{| class="wikitable"
|----------------------|-------------------------------|
|+
 
!Chunk Type
| 0x1                  | 4-Bit (16 Colours) Data       |
!Description
 
|-
| 0x2                  | 8-bit (256 Colours) Data      |
|0x1
 
|4-Bit (16 Colours) Data
| 0x5                  | 32-bit True Color Image       |
|-
 
|0x2
| 0x20                 | Palette/CLUT                  |
|8-bit (256 Colours) Data
 
|-
| 105                  | Metal Bin (Metal Alpha)            |
|0x5
 
|32-bit True Color Image
| 0x70                 | Long/Full Name                |
|-
 
|0x20
| 0x85 (`0x5 OR 0x80`)  | 8-bit Data, RefPack Compressed|
|Palette/CLUT
 
|-
|105
|Metal Bin (Metal Alpha)
|-
|0x70
|Long/Full Name
|-
|0x85 (`0x5 OR 0x80`)
|8-bit Data, RefPack Compressed
|}
If `(type & 0x80) == 1` the data will be compressed with RefPack.
=== Texture Header ===
{| class="wikitable"
| Type   | Description |
|+
 
!Type
|--------|-------------|
!Description
 
|-
| Byte   | Entry Type  |
|Byte
 
|Entry Type
| UInt24 | Size        |
|-
 
|UInt24
| UInt16 | Width       |
|Size
 
|-
| UInt16 | Height      |
|UInt16
 
|Width
| UInt16 | XAxis       |
|-
 
| UInt16 | YAxis       |
|Height
 
|-
| UInt16 | Swizzled    |
|UInt16
 
|XAxis
| UInt16 | Unknown     |
|-
 
|UInt16
|YAxis
|-
|UInt16
|Swizzled
|-
|UInt16
|Unknown
|}
The data following this header can be:
{| class="wikitable"
|+
!Image Type
!Data Type
|-
|4-bit
|4-bit indexes into Palette/CLUT
|-
|8-bit
|8-bit indexes into Palette/CLUT
|-
|32-bit
|BGRA8888 Direct Colors
|}
 
| Image Type | Data Type                       |
 
|------------|---------------------------------|
 
| 4-bit      | 4-bit indexes into Palette/CLUT |
 
| 8-bit      | 8-bit indexes into Palette/CLUT |
 
| 32-bit     | BGRA8888 Direct Colors          |
=== Colour Pallet Header ===
{| class="wikitable"
| Type   | Description |
|+
 
!Type
|--------|-------------|
!Description
 
|-
| Byte   | Entry Type  |
|Byte
 
|Entry Type
| UInt24 | Size        |
|-
 
|UInt24
| UInt16 | Width       |
|Size
 
|-
| UInt16 | Height      |
|UInt16
 
|Width
| UInt16 | Total       |
|-
 
| UInt16 | Unknown     |
|Height
 
|-
| UInt16 | Swizzled    |
|UInt16
 
|Total
| UInt16 | Unknown     |
|-
 
|UInt16
|Unknown
|-
|UInt16
|Swizzled
|-
|UInt16
|Unknown
|}
After the header is *Width* count BGRA8888 colors.
=== Long Name Header ===
{| class="wikitable"
| Type     | Description  |
|+
 
!Type
|----------|--------------|
!Description
 
|-
| Byte     | Entry Type   |
|Byte
 
|Entry Type
| UInt24   | Size         |
|-
 
|UInt24
| C String | Long Name    |
|Size
|-
|C String
|Long Name
|}