|
CONTENTS Home Projects Electronics Graphics Java Java Mobile Other Stuff Resume Music Links To Friends Pictures About Mike Contact Random Link |
Compression RoutinesRelated pages on www.mikekohn.net: SSE Image Processing, GIF, TIFF, BMP/RLE, JPEG, AVI, kunzip, gif2avi, Ringtone Tools, yuv2rgb BMP RLE (Run Length Encoding) Compression
RLE compression is probably one of the simplest compressions.
This would be a great place for a beginner to start :). RLE4
and RLE8 are used in Microsoft's BMP format. If you've read
enough of my webpages, you'll probably realize I'm not a very
big fan of Microsoft, but I must admit the BMP format (unlike
most Microsoft file formats) is actually not bad. The only
real problems I have with BMP is it stores its images upside down
(unless the height is negative) and things have to be aligned on
4 byte boundaries. Gross. But anyway, the way RLE encoding works
is if you have an image that repeats a color multiple times, you can
save disk space by storing repeated color information in the
following way:
|