TODO: RLE implemented.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user