Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // BCLIM Format - Banner Ctr Layered(?) IMage
- // Specs: Data & Footer
- // Footer pointer is at the end of the file, which doubles as a pixel data length.
- // Pixel data is at the start of the file.
- // Footer Format:
- //
- // CLIM
- UInt32 Magic (CLIM)
- UInt16 BOM (Byte Order Marking: FF FE)
- UInt32 climLength (14)
- Byte TileWidth (?)(1 << ~2) 8
- Byte TileHeight (?)(1 << ~2) 8
- UInt32 FileSize
- UInt32 Layers (?) (Haven't seen anything but 1)
- //
- // imag
- UInt32 Magic (imag)
- UInt32 imagLength (10)
- UInt16 Width
- UInt16 Height
- UInt32 ImageFormat
- //
- // Image Data
- UInt32 Size
- /* Notes
- * Dimensions are expanded so that they are divisible by 8, then trimmed, as the images use 8x8 tiles.
- * Pixels are arranged into 8x8 tiles using a Z-Order curve (morton code)
- * Tiles are then placed into position left to right, top to bottom.
- * Some Image formats build from a square base, others do not.
- * Some Image formats use different amounts of bytes per pixel.
- * Every other format (unless compressed) is either 4/8/16/32bpp, straight data.
- * Format 7 uses an internal pixelformat and palette, followed by color choices.
- * Can be 8bpColorChoice or 4bpcc, depending on amount of colors.
- * Some formats have their first color used instead as transparent.
- * Most formats assume a specific pixel format, which is not specified in the file (besides the format value).
- * Possible formats: http://3dbrew.org/wiki/Extended_Banner
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement