Lexmark XS795 Printer Languages and Interfaces Technical Reference - Page 37

Adaptive compression, Adaptive compression control strings

Page 37 highlights

Printer Control Language (PCL) emulation 37 Example: ESC*p300x1200Y ESC*b3M ESC*r1A ESC*b9W 'E0FFFFFFFFFFFFFFFF'x ESC*b9W 'E08000000000000001'x ESC*b0W ... ESC*b0W ESC*b9W 'E0FFFFFFFFFFFFFFFF'x ESC*rB |Move cursor to 1 x 4 in. |Set compression to Delta Row |Start raster graphics at current position |Num Offset |'111 00000'b=8 at 0: 'FFFFFFFFFFFFFFFF'x |8 at 0: '8000000000000001'x |No bytes change |No bytes change |8 at 0: '8FFFFFFFFFFFFFF'x |End graphics Adaptive compression Adaptive compression allows the combined use of compression methods 0 through 3 (Uncoded, run-length encoded, TIFF, and delta row). It also allows the printing of empty rows (all zeros) or duplicate rows. • The Transfer Raster Data command size includes all rows (scan lines). • Scan Mode and SizeH,L are three-byte primary control strings: CountH and CountL. Adaptive compression control strings Scan mode CountH, CountL 0 Data SizeH,L 1 Data SizeH,L 2 Data SizeH,L 3 Data SizeH,L 4 NumberH,L of empty rows 5 NumberH,L of duplicate rows 254 Data SizeH,L 255 Data SizeH,L Example: Data Uncoded raster scan data Size of run-length encoded data (high,low) Size of Tagged Image File Format (TIFF) data (high,low) Size of delta row data (high,low) None None TIFF word TIFF double-word ESC*p300x1500Y ESC*b5M ESC*b29W '03 0009'x 'E0FFFFFFFFFFFFFFFF'x '01 0006'x '0080 FB00 0001'x '05 0035'x |Move cursor to 1 x 5 in. |Set the compression to adaptive compression |Raster Data: 29 bytes follow |Delta Row: 8 at 0: 'FFFFFFFFFFFFFFFFh'x |Run Length: 1:'80'x, 6x'00'x, 1:'01'x |Duplicate rows: 61 times

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148

ESC
*p300x1200Y
|Move cursor to 1 x 4 in.
ESC
*b3M
|Set compression to Delta Row
ESC
*r1A
|Start raster graphics at current position
|Num Offset
ESC
*b9W 'E0FFFFFFFFFFFFFFFF'x
|'111 00000'b=8 at 0: 'FFFFFFFFFFFFFFFF'x
ESC
*b9W 'E08000000000000001'x
|8 at 0: '8000000000000001'x
ESC
*b0W
|No bytes change
...
ESC
*b0W
|No bytes change
ESC
*b9W 'E0FFFFFFFFFFFFFFFF'x
|8 at 0: '8FFFFFFFFFFFFFF'x
ESC
*rB
|End graphics
Adaptive compression
Adaptive compression allows the combined use of compression methods 0 through 3 (Uncoded, run-length
encoded, TIFF, and delta row). It also allows the printing of empty rows (all zeros) or duplicate rows.
The Transfer Raster Data command size includes all rows (scan lines).
Scan Mode and SizeH,L are three-byte primary control strings: CountH and CountL.
Adaptive compression control strings
Scan mode
CountH, CountL
Data
0
Data SizeH,L
Uncoded raster scan data
1
Data SizeH,L
Size of run-length encoded data (high,low)
2
Data SizeH,L
Size of Tagged Image File Format (TIFF) data (high,low)
3
Data SizeH,L
Size of delta row data (high,low)
4
NumberH,L of empty rows
None
5
NumberH,L of duplicate rows
None
254
Data SizeH,L
TIFF word
255
Data SizeH,L
TIFF double-word
Example:
ESC
*p300x1500Y
|Move cursor to 1 x 5 in.
ESC
*b5M
|Set the compression to adaptive compression
ESC
*b29W
|Raster Data: 29 bytes follow
'03 0009'x 'E0FFFFFFFFFFFFFFFF'x
|Delta Row: 8 at 0: 'FFFFFFFFFFFFFFFFh'x
'01 0006'x '0080 FB00 0001'x
|Run Length: 1:'80'x, 6x'00'x, 1:'01'x
'05 0035'x
|Duplicate rows: 61 times
Printer Control Language (PCL) emulation
37
Example: