SCAN (Metroid Prime)

The .SCAN file format describes scannable objects, and has references to several resources. It is a relatively simple format and has a static size.

Format
The SCAN format is very simple; it has a header with data that contains general settings related to the scan, and then four structs defining how the scan images work. Even if a scan doesn't use four images, there's always four image structs, which means the SCAN format has a static size; every SCAN file is 0x89 bytes (or 0xA0 bytes padded).

Header
The header is rather simple, and consists of the following:

Logbook Category
There's five possible values:

Scan Images
Following the header is an array of four structs that contain settings for up to four scan images. Although there can be anywhere from 0 to 4 scan images attached to a scan, there are always four scan image entries here. Entries that aren't used have their TXTR ID set to 0xFFFFFFFF, with the rest of the settings mostly left at defaults. They follow this format: