[comp.lang.c] PD RLE & huffman for the asking

shaunc@gold.gvg.tek.com (Shaun Case) (04/26/91)

I've been working on a lossless compression project recently, and have written
encoders and decoders for the following compression methods:

Huffman
RLE, bytewise, max seq len ==   127 bytes
RLE, bytewise, max seq len == 32767 bytes

They are written in Borland C++ for MSDOS, but could easily be
ported to other compilers or OSs.  Since I've settled on a different
kind of compression, I decided to clean my routines up a little, 
document them, and release them into the public domain.  So, if anyone
wants them, send me a piece of email, and I will send one, two, or all
three of them your way.

Oh, I used ANSI C, with no OO extensions.

BTW, writing the huffman encoder was the most fun.

// Shaun //