NW > Layout Image (FLIM)

BFLIM files start with the image data. A footer is stored behind the image data. This probably makes it easier to align the image data in memory. The footer is found by examining the last 4 bytes of the file, which contain the size of the image data.

OffsetSizeDescription
0x04Magic number (FLIM)
0x42Endianness (0xFEFF=Big, 0xFFFE=Little)
0x62Footer size (0x14)
0x84Version number
0xC4Filesize
0x102Number of sections
0x122Padding
0x14Sections. All sections are aligned to 4 bytes.
4Size of image data

Known Versions

VersionDescription
2.2.0.0Oldest known version.
3.3.0.0Some image formats were added.

Image Section

Contains information about the image.

OffsetSizeDescription
0x04Identifier (imag)
0x44Section size (0x10)
0x82Width
0xA2Height
0xC2Alignment
0xE1Format
0xF1value & 31: Tile mode
value >> 5: Swizzle

Image Formats

IDFormat
0UNORM R8
1UNORM R8
2UNORM R4 G4
3UNORM R8 G8
4UNORM R8 G8
5UNORM R5 G6 B5
6Invalid
7UNORM R5 G5 B5 A1
8UNORM R4 G4 B4 A4
9UNORM R8 G8 B8 A8
10Invalid
11Invalid
12UNORM BC1
13UNORM BC2
14UNORM BC3
15UNORM BC4
16UNORM BC4
17UNORM BC5
18Invalid
19Invalid

Version 3.3.0.0:

IDType
20SRGB R8 G8 B8 A8
21SRGB BC1
22SRGB BC2
23SRGB BC3
24UNORM R10 G10 B10 A2