Commit fbdc2cce authored by Robey Pointer's avatar Robey Pointer
Browse files

describe the RLE format

parent c640f864
......@@ -262,6 +262,12 @@ static uint8_t code_read_byte(const uint8_t *p) {
return pgm_read_byte(p);
}
// a very simple RLE encoding scheme that works well with simple images:
// each frame begins with one byte `tnnnnnnn`:
// - t=0 : n is the number of uncompressed bytes that follow
// - t=1 : n is the number of times to repeat the next byte
// the "packbmp.py" script will generate an RLE encoding for a display-sized
// image, if you want to replace one of the splash screens.
static void _display_packed_bitmap(
uint8_t (*reader)(const uint8_t *p),
uint16_t offset,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment