 A run length encoder is a program which takes as its input a stream of bytes.It outputs a stream of pairs consisting of a byte along with a count of the byte's consecutive occurrences.Run length encoders are often used for crudely compressing bitmaps.