3.3.8.1.1 ClearCodec Run-Length Encoding
ClearCodec run-length encoding uses a standard RLE compression scheme that parses a pixel stream and encodes run lengths.
For example, an initial stream containing the following 12 ANSI characters:
AAAABBCCCCCD
would be transformed after encoding into the following stream:
A4B2C5D1
Note that in the real case, each ANSI character is a pixel represented by 3 bytes (R, G, B components). This type of encoding is suitable for the content in the residual layer (section 2.2.4.1.1.1).