Format - RLE bitmap

RLE bitmaps are stored line per line, each line encoded with a particular algorithm, usually a variation of RLE.

Let N be the number of bits per pixel of this bitmap.

Then, for each row in the bitmap:

For encoding 0 (empty):
There is no more data for this line, it consists of a single line of pixels of the "zero" color.
For encoding 1 (basic):
While there are still pixels to decode in this line: Then the next P pixels are filled with color C.
For encoding 2 (delta):
While there are still pixels to decode in this line: If the bit is 1: If the bit is 0:
For encoding 3 (basic/stop):
Then, while there are still pixels to decode in this line:
For encoding 4 (basic/startend):
Then, while there are still pixels to decode in this line:
For encoding 5 (delta/stop):
While there are still pixels to decode in this line: If the bit is 1: If the bit is 0:
For encoding 6 (basic/zero):
While there are still pixels to decode in this line:
For encoding 7:
Encoding 7 is reserved for future use. A decoder encountering encoding 7 will not be able to decode the line, and thus the bitmap.

Generated on Sat Dec 11 12:53:07 2010 for libkate by  doxygen 1.4.7