What is run length encoding?
Run length encoding is a compression method used to store the intensity values in the frame buffer, which keeps each scan line as a set of integer pairs. One number each pair shows an intensity value, and second number specifies the number of adjacent pixels on the scan line that are to have that intensity value .