A Texture Metadata File is a file that can be extracted from a .data file, and contains information on textures that are stored in the Mixed Data File.
Layout
A texture metadata file consists of texture metadata sections, with the number of them corresponding with the amount of textures stored in the Mixed Data File.
Texture Metadata Section
| Offset | Byte Size | Name | Description |
|---|---|---|---|
| 0x0-0x3 | 4 | Identifier | Magic address that identifies a texture metadata section. It's hex value is 0xE977D350. |
| 0x4-0x7 | 4 | Hash ID | ID that identifies the texture. |
| 0x8-0xb | 4 | Texture Size | Size of the texture data in bytes. |
| 0xc-0xf | 4 | Hash ID | Same as the Hash ID before. |
| 0x10-0x13 | 4 | Padding | |
| 0x14-0x17 | 4 | Unknown | |
| 0x18-0x19 | 2 | Width | Width of the image in pixels. |
| 0x1a-0x1b | 2 | Height | Height of the image in pixels. |
| 0x1c-0x1e | 2 | Unknown | |
| 0x1f | 1 | Mipmap Level | Mipmap Level of the texure. |
| 0x20-0x33 | 20 | Unknown | |
| 0x34 | 1 | Compression Format | The compression format of the texture, either ETC1 (0xC0) or ETC1A4 (0xD0). |
| 0x35-0x37 | 2 | Unknown |