Changes

Jump to navigation Jump to search
26 bytes added ,  19:41, 13 February 2011
m
[[Image:icon_5.gif]]
These are converted by a tool bLAStY blasty wrote. Icon files were supplied by loopy.
== Basic File Structure ==
| 0x0002
| 2*4
| 4 CRC checksums (polynominal polynomial 0xA001)
|-
| 0x000A
The conversion to RGB888 is made like this (C):
<source lang="c">
u8 r = ((color ) & 0x1f)<<3;
u8 g = ((color >> 5) & 0x1f)<<3;
u8 b = ((color >> 10) & 0x1f)<<3;
</source>
== Checksums ==
The CRC-output is not bitwise inverted after the calculation, but it is byte-swapped to big-endian. Polynominal Polynomial used is: 0xA001, same for all.
{| class="wikitable"
71

edits

Navigation menu