From WinBolo

Jump to: navigation, search

This directory once upon a time contained a LZW compression algorithm. It was used in version 1.01 of WinBolo to increase the download speed of maps on joining games rather then sending the entire map uncompressed one row at a time. (per packet)

It used to contain a bunch of different compression algorithms I was playing around with but the one that remained was a RLE compression scheme. For simplicity sake it could be replaced with the bolo map RLE compression found in the bolo map file format.

The functions called are:

int lzwencoding(char *src, char *dest, int len);
int lzwdecoding(char *src, char *dest, int len);

The code is heavily based upon codrle1.c and dcodrle1.c by David Bourgin released in the public domain.

Personal tools