This encoding method is frequently applied to images (or pixels in a scan line). It is a small compression component used in JPEG compression (Section 7.6).
In this instance, sequences of image elements are mapped to pairs where ci represent image intensity or colour and li the length of the ith run of pixels (Not dissimilar to zero length supression above).
can be encoded as:
The savings are dependent on the data. In the worst case (Random Noise) encoding is more heavy than original file: 2*integer rather 1* integer if data is represented as integers.