This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
blast_corps:textures [2016/04/13 23:01] queueram created |
blast_corps:textures [2025/10/18 21:21] (current) |
||
|---|---|---|---|
| Line 95: | Line 95: | ||
| Type 6 textures are primarily used to compress IA8 fonts using 16-bit data with lookback. | Type 6 textures are primarily used to compress IA8 fonts using 16-bit data with lookback. | ||
| - | ^ 15 ^ 14 ^ 13-11 ^ 10-8 ^ 7-6 ^ 5-3 ^ 2-0 ^ | + | ^ 15 ^ 14 ^ 13-11 ^ 10-8 ^ 7-6 ^ 5-3 ^ 2-0 ^ |
| | 0 | X | I1 | A1 | X | I2 | A2 | | | 0 | X | I1 | A1 | X | I2 | A2 | | ||
| - | | + | |
| ^ 15 ^ 14 - 5 ^ 4 - 0 ^ | ^ 15 ^ 14 - 5 ^ 4 - 0 ^ | ||
| | 1 | Offset (bytes) | Length (16) | | | 1 | Offset (bytes) | Length (16) | | ||
| - | | + | |
| if MSB is 0: | if MSB is 0: | ||
| ByteOut0 = (((DataIn >> 8) & 0x38) << 2) | (((DataIn >> 8) & 0x7) << 1); | ByteOut0 = (((DataIn >> 8) & 0x38) << 2) | (((DataIn >> 8) & 0x7) << 1); | ||
| Line 108: | Line 108: | ||
| length = DataIn & 0x1F; | length = DataIn & 0x1F; | ||
| offset = (DataIn & 0x7FFF) >> 5; | offset = (DataIn & 0x7FFF) >> 5; | ||
| + | | ||