Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

IDFormatCompmapDescription
0UNORM R8RRR1Grayscale
1UNORM R8111RTransparency
2UNORM R4 G4RRRGGrayscale with transparency
3UNORM R8 G8RRRGGrayscale with transparency
4UNORM R8 G8RG01Red and green
5UNORM R5 G6 B5BGR1Blue, green, red
6InvalidRGB1
7UNORM R5 G5 B5 A1RGBARGBA
8UNORM R4 G4 B4 A4ABGRRGBA
9UNORM R8 G8 B8 A8RGBARGBA
10InvalidRGB1
11InvalidRGBA
12UNORM BC1RGBARGBA
13UNORM BC2RGBARGBA
14UNORM BC3RGBARGBA
15UNORM BC4RRR1Grayscale
16UNORM BC4111RTransparency
17UNORM BC5RRRGGrayscale with transparency
18InvalidRRR1
19Invalid000R

Version 3.3.0.0:

IDFormatCompmapDescription
20SRGB R8 G8 B8 A8RGBARGBA
21SRGB BC1RGBARGBA
22SRGB BC2RGBARGBA
23SRGB BC3RGBARGBA
24UNORM R10 G10 B10 A2RGBARGBA