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.
Offset Size Description
0x0 4 Magic number (FLIM)
0x4 2 Endianness (0xFEFF=Big, 0xFFFE=Little)
0x6 2 Footer size (0x14)
0x8 4 Version number
0xC 4 Filesize
0x10 2 Number of sections
0x12 2 Padding
0x14 Sections. All sections are aligned to 4 bytes.
4 Size of image data
Version Description
2.2.0.0Oldest known version.
3.3.0.0Some image formats were added.
Contains information about the image.
Offset Size Description
0x0 4 Identifier (imag)
0x4 4 Section size (0x10)
0x8 2 Width
0xA 2 Height
0xC 2 Alignment
0xE 1 Format
0xF 1 value & 31: Tile modevalue >> 5: Swizzle
ID Format Compmap Description
0 UNORM R8RRR1Grayscale
1 UNORM R8111RTransparency
2 UNORM R4 G4RRRGGrayscale with transparency
3 UNORM R8 G8RRRGGrayscale with transparency
4 UNORM R8 G8RG01Red and green
5 UNORM R5 G6 B5BGR1Blue, green, red
6 Invalid RGB1
7 UNORM R5 G5 B5 A1RGBARGBA
8 UNORM R4 G4 B4 A4ABGRRGBA
9 UNORM R8 G8 B8 A8RGBARGBA
10 Invalid RGB1
11 Invalid RGBA
12 UNORM BC1RGBARGBA
13 UNORM BC2RGBARGBA
14 UNORM BC3RGBARGBA
15 UNORM BC4RRR1Grayscale
16 UNORM BC4111RTransparency
17 UNORM BC5RRRGGrayscale with transparency
18 Invalid RRR1
19 Invalid 000R
Version 3.3.0.0:
ID Format Compmap Description
20 SRGB R8 G8 B8 A8RGBARGBA
21 SRGB BC1RGBARGBA
22 SRGB BC2RGBARGBA
23 SRGB BC3RGBARGBA
24 UNORM R10 G10 B10 A2RGBARGBA