> From: David VanHorn [mailto:dvanhorn@CEDAR.NET] > > I have a line of bits, 104 bytes wide. > It might contain anything between > 000.......000 to 010101.....0101 to 11111.....11111 > > I had thought of a simple RLE encoding, where > 1XXXXXXX means X+1 pixels of black, and 0XXXXXXX means X+1 > pixels of white, > but in the case of 010101 sorts of data, it fails rather > badly at compression! > > I also thought about compressing the data, and if the > "compressed" version > was longer than the uncompressed, to abort and send raw. > > However, it seems to me that there has to be something out > there that's > simple to work with, yet works better than my little > hare-brained scheme. > > What say the group? Are any sequences of bits more common than others, or is there an even distribution of values. If all values are equally as common, there's not a lot that you can do. -Mike -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics