Brother HL-2170W User Manual
Page 106
CHAPTER 2 PCL - 87
# = 3 indicates that delta row compression is to be used. In this method byte sequences identify how each
raster row differs from the last row that was transmitted. The first byte identifies the number of consecutive
bytes (the value of the most significant 3 bits plus 1) to be changed and the position in the line at which to
start substituting the replacement bytes (the least significant 5 bits plus 1). Hence, if the command byte has a
3 in the top three bits and 10 in the bottom five bits, the 11th, 12th, 13th and 14th bytes of the last row will
be replaced by the four data bytes that follow.
If the least significant 5 bits are all 1, the next byte is treated as a further offset value and its value is added to
32 to calculate the offset. If this byte in turn is all ones the next byte is also treated as a continuation byte and
its value is added to the offset and so on until a byte whose value is not 255 is encountered.
This combination of command bytes and replacement bytes is used to specify all the differences between the
last raster row sent (the seed row) and the new row to be transmitted. When the new row has been sent it
becomes the new seed row.
# = 5 indicates that adaptive compression is to be used.
This compression compresses multiple rows (a block) into one transfer graphics command.
Most other compression methods compress only one row to one transfer graphics command.
One transfer graphic command (ESC *b##W) can contain only up to 32,767 bytes.
As mode 5 compression compresses multiple rows, the amount of transferred data may become large.
If compressed data exceeds this limit, reduce the number of rows in the block.
We can use mode 0 to mode 3 compression to compress each row. We can even compress empty (white)
rows and duplicate rows with these compression methods.
Command byte
Mode 5 compressed data consists of multiple elements. Each element contains 3 header bytes at the
beginning.
The first byte of the header bytes is a command byte.
First byte
Second, third byte
0 Unencoded
1
Run-length Encoding
Number of bytes of data
2 TIFF
3
Delta Row compression
4
Empty Row
Number of empty row or repetition
5 Duplicate
Row
Command byte
0 -
This element is an uncompressed row. The next two bytes contain the byte count of the uncompressed
data. Uncompressed data follows the header.
1 -
This element identifies a compressed row. Compression method is mode 1. The next two bytes
(upper byte first) contain the byte count of the compressed data. Compressed data follows the header.
2 -
This element identifies a compressed row. Compression method is mode 2. The next two bytes
(upper byte first) contain the byte count of the compressed data. Compressed data follows the header
3 -
This element identifies a compressed row. Compression method is mode 3. The next two bytes
(upper byte first) contain the byte count of the compressed data. Compressed data follows the header
4 -
This element identifies multiple empty rows. The next two bytes (upper byte first) contain the empty
row count.
5 -
This element identifies duplicate rows. The next two bytes (upper byte first) contain the duplicate
row count.
- HL-1670N HL-6050D HL 5250DN HL-5070N HL-2460 HL-6050DN HL-2150N HL 2700CN HL-2130 HL-S7000DN HL-3040CN HL 1650 HL-6050 HL-5240 HL-5240L HL-1470N HL 3070CW HL 5170DN HL-3450CN HL-3140CW HL 5470DW HL-5140 HL-5440D HL-7050 HL-2240 HL-5040 HL-4070CDW HL-1870N HL-1110 HL-1850 HL 4150CDN HL-8050N HL 5450DN HL 5370DW HL-5050 HL-2140 HL 1270N HL-2600CN HL-6180DW HL-5350DN HL-4050CDN HL-2070N HL-3260N HL-5150D HL-5280DW HL-3170CDW HL-4570CDW HL-3150CDW HL 4040CN HL-4140CN HL 2240D HL 2270DW HL-1250 HL-7050N HL 5340D HL-2250DN HL-1450 HL-L9200CDWT HL-1112 HL-5270DN HL-5450DNT HL-L8250CDN HL 4570CDWT HL-5380DN HL-6180DWT HL-L8350CDW HL-4040CDN HL-L8350CDWT HL-2230 HL-5470DWT HL 2220 HL-1110E HL-1112E