<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.wexosmk.xyz/index.php?action=history&amp;feed=atom&amp;title=BFLIM_%28File_Format%29</id>
	<title>BFLIM (File Format) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.wexosmk.xyz/index.php?action=history&amp;feed=atom&amp;title=BFLIM_%28File_Format%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.wexosmk.xyz/index.php?title=BFLIM_(File_Format)&amp;action=history"/>
	<updated>2026-05-06T17:00:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.wexosmk.xyz/index.php?title=BFLIM_(File_Format)&amp;diff=94&amp;oldid=prev</id>
		<title>Wexos: Imported from avsys wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.wexosmk.xyz/index.php?title=BFLIM_(File_Format)&amp;diff=94&amp;oldid=prev"/>
		<updated>2024-05-01T17:08:31Z</updated>

		<summary type="html">&lt;p&gt;Imported from avsys wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;BFLIM&amp;#039;&amp;#039;&amp;#039; file format (&amp;#039;&amp;#039;&amp;#039;B&amp;#039;&amp;#039;&amp;#039;inary ca&amp;#039;&amp;#039;&amp;#039;F&amp;#039;&amp;#039;&amp;#039;e &amp;#039;&amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;#039;ayout &amp;#039;&amp;#039;&amp;#039;IM&amp;#039;&amp;#039;&amp;#039;age) is used to store layout images on [[Wii U]].&lt;br /&gt;
&lt;br /&gt;
= File Format =&lt;br /&gt;
== Header ==&lt;br /&gt;
The header is at the end of the file (to align the image data without the need for additional padding). It is always 0x14 bytes.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || Char[4] || &amp;#039;&amp;#039;&amp;#039;File magic&amp;#039;&amp;#039;&amp;#039;. Always &amp;#039;&amp;#039;FLIM&amp;#039;&amp;#039; in ASCII.&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt16 || {{BOM}}&lt;br /&gt;
|-&lt;br /&gt;
| 0x06 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Header size&amp;#039;&amp;#039;&amp;#039;, always 0x14.&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || UInt32 || &amp;#039;&amp;#039;&amp;#039;Version&amp;#039;&amp;#039;&amp;#039; of this file.&lt;br /&gt;
|-&lt;br /&gt;
| 0x0C || UInt32 || &amp;#039;&amp;#039;&amp;#039;File size&amp;#039;&amp;#039;&amp;#039; in bytes.&lt;br /&gt;
|-&lt;br /&gt;
| 0x10 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Number of data blocks&amp;#039;&amp;#039;&amp;#039;, always 0x01.&lt;br /&gt;
|-&lt;br /&gt;
| 0x12 || UInt16 || Padding. Seems to reflect upper 2 bytes of filesize (apparently uninitialized memory garbage from file generator).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Image Information ==&lt;br /&gt;
A section containing image information comes directly after header. It is always 0x14 bytes long.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || Char[4] || &amp;#039;&amp;#039;&amp;#039;Section magic&amp;#039;&amp;#039;&amp;#039;. Always &amp;#039;&amp;#039;imag&amp;#039;&amp;#039; in ASCII.&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt32 || &amp;#039;&amp;#039;&amp;#039;Parse information size&amp;#039;&amp;#039;&amp;#039; (total block size), always 0x10 (this and next 0xC bytes).&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Width&amp;#039;&amp;#039;&amp;#039; of the texture in pixels.&lt;br /&gt;
|-&lt;br /&gt;
| 0x0A || UInt16 || &amp;#039;&amp;#039;&amp;#039;Height&amp;#039;&amp;#039;&amp;#039; of the texture in pixels.&lt;br /&gt;
|-&lt;br /&gt;
| 0x0C || UInt16 || &amp;#039;&amp;#039;&amp;#039;File alignment&amp;#039;&amp;#039;&amp;#039;, always a power of 2.&lt;br /&gt;
|-&lt;br /&gt;
| 0x0E || Byte || &amp;#039;&amp;#039;&amp;#039;[[#Format|Image format]]&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
|-&lt;br /&gt;
| 0x0F || Byte || &amp;#039;&amp;#039;&amp;#039;Tile mode&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Swizzle&amp;#039;&amp;#039;&amp;#039;, packed as bits &amp;#039;&amp;#039;&amp;#039;SSSTTTTT&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;TTTTT&amp;#039;&amp;#039;&amp;#039; maps to GX2TileMode (line 795 [https://pastebin.com/DCrP1w9x here]). Typically GX2_TILE_MODE_2D_TILED_THIN1 (4).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSS&amp;#039;&amp;#039;&amp;#039; is the initial swizzle value. Could be anything from 0 to 7.&lt;br /&gt;
|-&lt;br /&gt;
| 0x10 || UInt32 || &amp;#039;&amp;#039;&amp;#039;Raw data size&amp;#039;&amp;#039;&amp;#039;, always 0x0C minus 0x28 (the header).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Format ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! ID !! Name !! Type !! Bits Per Pixel !! Suffix&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || L8_UNORM || Luminance || 8 || ^c&lt;br /&gt;
|-&lt;br /&gt;
| 0x01 || A8_UNORM || Alpha || 8 || ^d&lt;br /&gt;
|-&lt;br /&gt;
| 0x02 || LA4_UNORM || Luminance + Alpha || 8 || ^e&lt;br /&gt;
|-&lt;br /&gt;
| 0x03 || LA8_UNORM || Luminance + Alpha || 16 || ^f&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || HILO8 || ? || 16 || ^g&lt;br /&gt;
|-&lt;br /&gt;
| 0x05 || RGB565_UNORM || Color || 16 || ^h&lt;br /&gt;
|-&lt;br /&gt;
| 0x06 || RGBX8_UNORM || Color || 32 || ^i&lt;br /&gt;
|-&lt;br /&gt;
| 0x07 || RGB5A1_UNORM || Color + Alpha || 16 || ^j&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || RGBA4_UNORM || Color + Alpha  || 16 || ^k&lt;br /&gt;
|-&lt;br /&gt;
| 0x09 || RGBA8_UNORM || Color + Alpha || 32 || ^l&lt;br /&gt;
|-&lt;br /&gt;
| 0x0A || ETC1_UNORM || Color || 4 || ^m&lt;br /&gt;
|-&lt;br /&gt;
| 0x0B || ETC1A4_UNORM || Color + Alpha || 8 || ^n&lt;br /&gt;
|-&lt;br /&gt;
| 0x0C || BC1_UNORM || Color + Alpha || 4 || ^o&lt;br /&gt;
|-&lt;br /&gt;
| 0x0D || BC2_UNORM || Color + Alpha || 8 || ^p&lt;br /&gt;
|-&lt;br /&gt;
| 0x0E || BC3_UNORM || Color + Alpha || 8 || ^q&lt;br /&gt;
|-&lt;br /&gt;
| 0x0F || BC4L_UNORM || Luminance || 4 || ^r&lt;br /&gt;
|-&lt;br /&gt;
| 0x10 || BC4A_UNORM || Alpha || 4 || ^s&lt;br /&gt;
|-&lt;br /&gt;
| 0x11 || BC5_UNORM || Red + Green + Alpha || 8 || ^t&lt;br /&gt;
|-&lt;br /&gt;
| 0x12 || L4_UNORM || Luminance || 4 || ^u&lt;br /&gt;
|-&lt;br /&gt;
| 0x13 || A4_UNORM || Alpha || 4 || ^v&lt;br /&gt;
|-&lt;br /&gt;
| 0x14 || RGBA8_SRGB || Color + Alpha || 32 || ^w&lt;br /&gt;
|-&lt;br /&gt;
| 0x15 || BC1_SRGB || Color + Alpha || 4 || ^x&lt;br /&gt;
|-&lt;br /&gt;
| 0x16 || BC2_SRGB || Color + Alpha || 8 || ^y&lt;br /&gt;
|-&lt;br /&gt;
| 0x17 || BC3_SRGB || Color + Alpha || 8 || ^z&lt;br /&gt;
|-&lt;br /&gt;
| 0x18 || RGB10A2_UNORM || Color + Alpha || 32 || ?&lt;br /&gt;
|-&lt;br /&gt;
| 0x19 || RGB565_INDIRECT_UNORM || Color? || 16 || ?&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Tools =&lt;br /&gt;
The following tools can handle BFLIM files:&lt;br /&gt;
* [https://github.com/aboood40091/BFLIM-Tool/releases/tag/v1.0 BFLIM Tool], by [[User:Aboood40091|AboodXD]]&lt;br /&gt;
* [https://mega.nz/#!KgRilZAR!qLGAx1yb9KduShuzxwZjd7nuN329nMjDQvrX9sy-CsE BFLIMtoGTX], by [[User:RandomTalkingBush|RandomTalkingBush]]&lt;br /&gt;
* [[Wexos&amp;#039;s Toolbox]], by [[Wexos]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Wii U File Formats]]&lt;/div&gt;</summary>
		<author><name>Wexos</name></author>
	</entry>
</feed>