RLE Object or snippet in spin?
ke4pjw
Posts: 1,155
in Propeller 1
Does anyone know if there is a RLE (Run Length Encoding) object or code snippet that I could borrow?
Thanks,
Terry
Thanks,
Terry
Comments
Do you have an example of the raw data?
Is the data being received from a sensor and then being set via a serial port?
I got the impression from quick glance at RLE entry on Wikipedia that the RLE algorithms can be pretty simple.
RLE encoding generally is very simple. In general the output for lossless compression is a value and and the count of the number of times that value occurs. RLE an that permits some loss of data counts the number of times the value is within a specified range of values.
This game by @Remz a few years back looks like it used RLE for video, not static BMPs, but maybe it would give you some ideas.
http://forums.parallax.com/discussion/137493/project-brimborion
Cheers,
Jesse