DLPU018J October 2014 – June 2024 DLPC900
To achieve higher compression ratios, this compression format takes advantage of the similarities from line-to-line and uses one or two bytes to encode the length. Table 2-115 defines the RLE Control Bytes recognized by the DLPC900. The DLPC900 firmware automatically decompresses the image when operating in Pre-Stored Pattern Mode or Pattern On-The-Fly Mode.
CONTROL BYTE 1 | CONTROL BYTE 2 | CONTROL BYTE 3 | RESULT |
---|---|---|---|
0 | 0 | n/a | End of Line |
0 | 1 | 0 | End of Image |
0 | 1 | n | Copy n pixels from previous line |
0 | n > 1 | n/a | n uncompressed sequence of pixels |
n > 1 | n/a | n/a | Repeat following pixel n times |
If n is < 128 then encode it with 1 byte.
If n is >= 128 then encode it with 2 bytes in the following manner: