TXTR (Tropical Freeze)

See TXTR (File Format) for the other revisions of this format.

The TXTR format is Tropical Freeze's texture format. The image data in the GPU buffer is compressed using LZSS compression.

Format
The format starts with the typical form descriptor found in every Tropical Freeze format. Following that, there's a HEAD header section that contains most of the texture parameters, then the GPU section containing the actual compressed image data. This is the structure of the HEAD section:

PAK Metadata
The pak metadata for the TXTR format primarily contains compression-related information and provides the values required to decompress it.

Compressed Buffer
This is a small struct that defines a compressed data buffer within the GPU section.