TODO: RLE implemented.

This commit is contained in:
Martin Preuss
2026-01-17 17:16:40 +01:00
parent a52d7dd783
commit 3009e9d0d0

View File

@@ -1,27 +1,4 @@
- RLL encode images:
- 1 cntrl byte
- bit 7=0: bits 0-6=number of normal bytes following
- bit 7=1: bits 0-6=number of repeats, in this case the repeated byte follows
- encoding:
- buffer
- bytesInBuffer
- loop
- startOfRepetitionWithMoreThan2Bytes?
- yes:
- add buffer to result with preceeding CNTRL byte
- reset buffer
- add CNTRL for repetition
- add repetition byte
- no:
- add current byte to buffer
- buffer contains 127 bytes?
- yes:
- add buffer to result with preceeding CNTRL byte
- reset buffer
- new classes:
- button
- move touch code there