Debian Codegraph @

src/main/print-escp2.h

raw symbols SCIP
1 /*
2 * Print plug-in EPSON ESC/P2 driver for the GIMP.
3 *
4 * Copyright 1997-2000 Michael Sweet ([email protected]) and
5 * Robert Krawitz ([email protected])
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the Free
9 * Software Foundation; either version 2 of the License, or (at your option)
10 * any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 * for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
21 #ifndef GUTENPRINT_INTERNAL_ESCP2_H
22 #define GUTENPRINT_INTERNAL_ESCP2_Hcxx . . $ `src/main/print-escp2.h:22:9`!
23
24 /*
25 * Maximum number of channels in a printer. If Epson comes out with an
26 * 8-head printer, this needs to be increased.
27 */
28 #define MAX_DROP_SIZEScxx . . $ `src/main/print-escp2.h:28:9`! 3
29 #define PHYSICAL_CHANNEL_LIMITcxx . . $ `src/main/print-escp2.h:29:9`! ((STP_CHANNEL_LIMIT) / ((MAX_DROP_SIZES)+1))
30
31 #define XCOLOR_Rcxx . . $ `src/main/print-escp2.h:31:9`! (STP_NCOLORS + 0)
32 #define XCOLOR_Bcxx . . $ `src/main/print-escp2.h:32:9`! (STP_NCOLORS + 1)
33 #define XCOLOR_GLOSScxx . . $ `src/main/print-escp2.h:33:9`! (STP_NCOLORS + 2)
34
35 /*
36 * Printer capabilities.
37 *
38 * Various classes of printer capabilities are represented by bitmasks.
39 */
40
41 typedef unsigned long model_cap_tcxx . . $ model_cap_t#;
42 typedef unsigned long model_featureset_tcxx . . $ model_featureset_t#;
43
44 /*
45 ****************************************************************
46 * *
47 * PAPERS *
48 * *
49 ****************************************************************
50 */
51
52 typedef enumcxx . . $ $anonymous_type_2c59c6ae4581c18b_0#
53 {
54 PAPER_PLAINcxx . . $ PAPER_PLAIN. = 0x01,
55 PAPER_GOODcxx . . $ PAPER_GOOD. = 0x02,
56 PAPER_PHOTOcxx . . $ PAPER_PHOTO. = 0x04,
57 PAPER_PREMIUM_PHOTOcxx . . $ PAPER_PREMIUM_PHOTO. = 0x08,
58 PAPER_TRANSPARENCYcxx . . $ PAPER_TRANSPARENCY. = 0x10
59 } paper_class_tcxx . . $ paper_class_t#;
60
61 typedef structcxx . . $ $anonymous_type_2c59c6ae4581c18b_1#
62 {
63 const char *cnamecxx . . $ $anonymous_type_2c59c6ae4581c18b_1#cname.;
64 const char *namecxx . . $ $anonymous_type_2c59c6ae4581c18b_1#name.;
65 const char *textcxx . . $ $anonymous_type_2c59c6ae4581c18b_1#text.;
66 paper_class_tcxx . . $ paper_class_t# paper_classcxx . . $ $anonymous_type_2c59c6ae4581c18b_1#paper_class.;
67 const char *preferred_ink_typecxx . . $ $anonymous_type_2c59c6ae4581c18b_1#preferred_ink_type.;
68 const char *preferred_ink_setcxx . . $ $anonymous_type_2c59c6ae4581c18b_1#preferred_ink_set.;
69 stp_vars_tcxx . . $ stp_vars_t# *vcxx . . $ $anonymous_type_2c59c6ae4581c18b_1#v.;
70 } paper_tcxx . . $ paper_t#;
71
72
73 /*
74 ****************************************************************
75 * *
76 * RESOLUTIONS *
77 * *
78 ****************************************************************
79 */
80
81 /* Drop sizes are grouped under resolution because each resolution
82 has different drop sizes. */
83 typedef structcxx . . $ $anonymous_type_2c59c6ae4581c18b_2#
84 {
85 short numdropsizescxx . . $ $anonymous_type_2c59c6ae4581c18b_2#numdropsizes.;
86 double dropsizescxx . . $ $anonymous_type_2c59c6ae4581c18b_2#dropsizes.[MAX_DROP_SIZEScxx . . $ `src/main/print-escp2.h:28:9`!];
87 } escp2_dropsize_tcxx . . $ escp2_dropsize_t#;
88
89 typedef structcxx . . $ $anonymous_type_2c59c6ae4581c18b_3#
90 {
91 const char *namecxx . . $ $anonymous_type_2c59c6ae4581c18b_3#name.;
92 const char *textcxx . . $ $anonymous_type_2c59c6ae4581c18b_3#text.;
93 unsigned short hrescxx . . $ $anonymous_type_2c59c6ae4581c18b_3#hres.;
94 unsigned short vrescxx . . $ $anonymous_type_2c59c6ae4581c18b_3#vres.;
95 unsigned short printed_hrescxx . . $ $anonymous_type_2c59c6ae4581c18b_3#printed_hres.;
96 unsigned short printed_vrescxx . . $ $anonymous_type_2c59c6ae4581c18b_3#printed_vres.;
97 unsigned short vertical_passescxx . . $ $anonymous_type_2c59c6ae4581c18b_3#vertical_passes.;
98 stp_raw_tcxx . . $ stp_raw_t# *commandcxx . . $ $anonymous_type_2c59c6ae4581c18b_3#command.;
99 stp_vars_tcxx . . $ stp_vars_t# *vcxx . . $ $anonymous_type_2c59c6ae4581c18b_3#v.;
100 } res_tcxx . . $ res_t#;
101
102 typedef structcxx . . $ $anonymous_type_2c59c6ae4581c18b_4#
103 {
104 char *namecxx . . $ $anonymous_type_2c59c6ae4581c18b_4#name.;
105 res_tcxx . . $ res_t# *resolutionscxx . . $ $anonymous_type_2c59c6ae4581c18b_4#resolutions.;
106 size_t n_resolutionscxx . . $ $anonymous_type_2c59c6ae4581c18b_4#n_resolutions.;
107 } resolution_list_tcxx . . $ resolution_list_t#;
108
109 typedef structcxx . . $ $anonymous_type_2c59c6ae4581c18b_5#
110 {
111 char *namecxx . . $ $anonymous_type_2c59c6ae4581c18b_5#name.;
112 char *textcxx . . $ $anonymous_type_2c59c6ae4581c18b_5#text.;
113 unsigned short min_hrescxx . . $ $anonymous_type_2c59c6ae4581c18b_5#min_hres.;
114 unsigned short min_vrescxx . . $ $anonymous_type_2c59c6ae4581c18b_5#min_vres.;
115 unsigned short max_hrescxx . . $ $anonymous_type_2c59c6ae4581c18b_5#max_hres.;
116 unsigned short max_vrescxx . . $ $anonymous_type_2c59c6ae4581c18b_5#max_vres.;
117 short desired_hrescxx . . $ $anonymous_type_2c59c6ae4581c18b_5#desired_hres.;
118 short desired_vrescxx . . $ $anonymous_type_2c59c6ae4581c18b_5#desired_vres.;
119 } quality_tcxx . . $ quality_t#;
120
121 typedef structcxx . . $ $anonymous_type_2c59c6ae4581c18b_6#
122 {
123 char *namecxx . . $ $anonymous_type_2c59c6ae4581c18b_6#name.;
124 quality_tcxx . . $ quality_t# *qualitiescxx . . $ $anonymous_type_2c59c6ae4581c18b_6#qualities.;
125 size_t n_qualscxx . . $ $anonymous_type_2c59c6ae4581c18b_6#n_quals.;
126 } quality_list_tcxx . . $ quality_list_t#;
127
128 typedef structcxx . . $ $anonymous_type_2c59c6ae4581c18b_7#
129 {
130 char *namecxx . . $ $anonymous_type_2c59c6ae4581c18b_7#name.;
131 char *textcxx . . $ $anonymous_type_2c59c6ae4581c18b_7#text.;
132 stp_raw_tcxx . . $ stp_raw_t# *commandcxx . . $ $anonymous_type_2c59c6ae4581c18b_7#command.;
133 } printer_weave_tcxx . . $ printer_weave_t#;
134
135 typedef structcxx . . $ $anonymous_type_2c59c6ae4581c18b_8#
136 {
137 char *namecxx . . $ $anonymous_type_2c59c6ae4581c18b_8#name.;
138 size_t n_printer_weavescxx . . $ $anonymous_type_2c59c6ae4581c18b_8#n_printer_weaves.;
139 printer_weave_tcxx . . $ printer_weave_t# *printer_weavescxx . . $ $anonymous_type_2c59c6ae4581c18b_8#printer_weaves.;
140 } printer_weave_list_tcxx . . $ printer_weave_list_t#;
141
142
143 /*
144 ****************************************************************
145 * *
146 * INKS *
147 * *
148 ****************************************************************
149 */
150
151 typedef structcxx . . $ $anonymous_type_2c59c6ae4581c18b_9#
152 {
153 short colorcxx . . $ $anonymous_type_2c59c6ae4581c18b_9#color.;
154 short subchannelcxx . . $ $anonymous_type_2c59c6ae4581c18b_9#subchannel.;
155 short head_offsetcxx . . $ $anonymous_type_2c59c6ae4581c18b_9#head_offset.;
156 short split_channel_countcxx . . $ $anonymous_type_2c59c6ae4581c18b_9#split_channel_count.;
157 const char *channel_densitycxx . . $ $anonymous_type_2c59c6ae4581c18b_9#channel_density.;
158 const char *subchannel_transitioncxx . . $ $anonymous_type_2c59c6ae4581c18b_9#subchannel_transition.;
159 const char *subchannel_valuecxx . . $ $anonymous_type_2c59c6ae4581c18b_9#subchannel_value.;
160 const char *subchannel_scalecxx . . $ $anonymous_type_2c59c6ae4581c18b_9#subchannel_scale.;
161 const char *namecxx . . $ $anonymous_type_2c59c6ae4581c18b_9#name.;
162 const char *textcxx . . $ $anonymous_type_2c59c6ae4581c18b_9#text.;
163 short *split_channelscxx . . $ $anonymous_type_2c59c6ae4581c18b_9#split_channels.;
164 } physical_subchannel_tcxx . . $ physical_subchannel_t#;
165
166 typedef structcxx . . $ $anonymous_type_2c59c6ae4581c18b_10#
167 {
168 const char *namecxx . . $ $anonymous_type_2c59c6ae4581c18b_10#name.;
169 unsigned short n_subchannelscxx . . $ $anonymous_type_2c59c6ae4581c18b_10#n_subchannels.;
170 physical_subchannel_tcxx . . $ physical_subchannel_t# *subchannelscxx . . $ $anonymous_type_2c59c6ae4581c18b_10#subchannels.;
171 const char *hue_curve_namecxx . . $ $anonymous_type_2c59c6ae4581c18b_10#hue_curve_name.;
172 stp_curve_tcxx . . $ stp_curve_t# *hue_curvecxx . . $ $anonymous_type_2c59c6ae4581c18b_10#hue_curve.;
173 } ink_channel_tcxx . . $ ink_channel_t#;
174
175 typedef enumcxx . . $ $anonymous_type_2c59c6ae4581c18b_11#
176 {
177 INKSET_CMYKcxx . . $ INKSET_CMYK. = 0,
178 INKSET_CcMmYKcxx . . $ INKSET_CcMmYK. = 1,
179 INKSET_CcMmYyKcxx . . $ INKSET_CcMmYyK. = 2,
180 INKSET_CcMmYKkcxx . . $ INKSET_CcMmYKk. = 3,
181 INKSET_QUADTONEcxx . . $ INKSET_QUADTONE. = 4,
182 INKSET_HEXTONEcxx . . $ INKSET_HEXTONE. = 5,
183 INKSET_OTHERcxx . . $ INKSET_OTHER. = 6,
184 INKSET_EXTENDEDcxx . . $ INKSET_EXTENDED. = 7
185 } inkset_id_tcxx . . $ inkset_id_t#;
186
187 typedef structcxx . . $ $anonymous_type_2c59c6ae4581c18b_12#
188 {
189 const char *namecxx . . $ $anonymous_type_2c59c6ae4581c18b_12#name.;
190 const char *textcxx . . $ $anonymous_type_2c59c6ae4581c18b_12#text.;
191 unsigned short channel_countcxx . . $ $anonymous_type_2c59c6ae4581c18b_12#channel_count.;
192 unsigned short aux_channel_countcxx . . $ $anonymous_type_2c59c6ae4581c18b_12#aux_channel_count.;
193 inkset_id_tcxx . . $ inkset_id_t# inksetcxx . . $ $anonymous_type_2c59c6ae4581c18b_12#inkset.;
194 const stp_raw_tcxx . . $ stp_raw_t# *init_sequencecxx . . $ $anonymous_type_2c59c6ae4581c18b_12#init_sequence.;
195 const stp_raw_tcxx . . $ stp_raw_t# *deinit_sequencecxx . . $ $anonymous_type_2c59c6ae4581c18b_12#deinit_sequence.;
196 ink_channel_tcxx . . $ ink_channel_t# *channelscxx . . $ $anonymous_type_2c59c6ae4581c18b_12#channels.;
197 ink_channel_tcxx . . $ ink_channel_t# *aux_channelscxx . . $ $anonymous_type_2c59c6ae4581c18b_12#aux_channels.;
198 } inkname_tcxx . . $ inkname_t#;
199
200 typedef structcxx . . $ $anonymous_type_2c59c6ae4581c18b_13#
201 {
202 unsigned int n_shadescxx . . $ $anonymous_type_2c59c6ae4581c18b_13#n_shades.;
203 double *shadescxx . . $ $anonymous_type_2c59c6ae4581c18b_13#shades.;
204 } shade_tcxx . . $ shade_t#;
205
206 typedef structcxx . . $ $anonymous_type_2c59c6ae4581c18b_14#
207 {
208 const char *namecxx . . $ $anonymous_type_2c59c6ae4581c18b_14#name.;
209 const char *textcxx . . $ $anonymous_type_2c59c6ae4581c18b_14#text.;
210 unsigned short n_shadescxx . . $ $anonymous_type_2c59c6ae4581c18b_14#n_shades.;
211 unsigned short n_inkscxx . . $ $anonymous_type_2c59c6ae4581c18b_14#n_inks.;
212 const stp_raw_tcxx . . $ stp_raw_t# *init_sequencecxx . . $ $anonymous_type_2c59c6ae4581c18b_14#init_sequence.;
213 const stp_raw_tcxx . . $ stp_raw_t# *deinit_sequencecxx . . $ $anonymous_type_2c59c6ae4581c18b_14#deinit_sequence.;
214 shade_tcxx . . $ shade_t# *shadescxx . . $ $anonymous_type_2c59c6ae4581c18b_14#shades.;
215 inkname_tcxx . . $ inkname_t# *inknamescxx . . $ $anonymous_type_2c59c6ae4581c18b_14#inknames.;
216 } inklist_tcxx . . $ inklist_t#;
217
218 typedef structcxx . . $ $anonymous_type_2c59c6ae4581c18b_15#
219 {
220 const char *namecxx . . $ $anonymous_type_2c59c6ae4581c18b_15#name.;
221 unsigned short n_inklistscxx . . $ $anonymous_type_2c59c6ae4581c18b_15#n_inklists.;
222 inklist_tcxx . . $ inklist_t# *inklistscxx . . $ $anonymous_type_2c59c6ae4581c18b_15#inklists.;
223 } inkgroup_tcxx . . $ inkgroup_t#;
224
225
226 /*
227 ****************************************************************
228 * *
229 * INPUT SLOTS *
230 * *
231 ****************************************************************
232 */
233
234 #define ROLL_FEED_CUT_ALLcxx . . $ `src/main/print-escp2.h:234:9`! (1)
235 #define ROLL_FEED_CUT_LASTcxx . . $ `src/main/print-escp2.h:235:9`! (2)
236 #define ROLL_FEED_DONT_EJECTcxx . . $ `src/main/print-escp2.h:236:9`! (4)
237
238 #define DUPLEX_NO_TUMBLEcxx . . $ `src/main/print-escp2.h:238:9`! (1)
239 #define DUPLEX_TUMBLEcxx . . $ `src/main/print-escp2.h:239:9`! (2)
240
241 typedef structcxx . . $ $anonymous_type_2c59c6ae4581c18b_16#
242 {
243 const char *namecxx . . $ $anonymous_type_2c59c6ae4581c18b_16#name.;
244 const char *textcxx . . $ $anonymous_type_2c59c6ae4581c18b_16#text.;
245 short is_cdcxx . . $ $anonymous_type_2c59c6ae4581c18b_16#is_cd.;
246 short is_roll_feedcxx . . $ $anonymous_type_2c59c6ae4581c18b_16#is_roll_feed.;
247 short duplexcxx . . $ $anonymous_type_2c59c6ae4581c18b_16#duplex.;
248 short extra_heightcxx . . $ $anonymous_type_2c59c6ae4581c18b_16#extra_height.;
249 unsigned roll_feed_cut_flagscxx . . $ $anonymous_type_2c59c6ae4581c18b_16#roll_feed_cut_flags.;
250 const stp_raw_tcxx . . $ stp_raw_t# *init_sequencecxx . . $ $anonymous_type_2c59c6ae4581c18b_16#init_sequence.;
251 const stp_raw_tcxx . . $ stp_raw_t# *deinit_sequencecxx . . $ $anonymous_type_2c59c6ae4581c18b_16#deinit_sequence.;
252 } input_slot_tcxx . . $ input_slot_t#;
253
254 /*
255 ****************************************************************
256 * *
257 * FLAGS *
258 * *
259 ****************************************************************
260 */
261
262 #define MODEL_COMMAND_MASKcxx . . $ `src/main/print-escp2.h:262:9`! 0xful /* What general command set does */
263 #define MODEL_COMMAND_1998cxx . . $ `src/main/print-escp2.h:263:9`! 0x0ul /* Old (ESC .) printers */
264 #define MODEL_COMMAND_1999cxx . . $ `src/main/print-escp2.h:264:9`! 0x1ul /* ESC i printers w/o extended ESC(c */
265 #define MODEL_COMMAND_2000cxx . . $ `src/main/print-escp2.h:265:9`! 0x2ul /* ESC i printers with extended ESC(c */
266 #define MODEL_COMMAND_PROcxx . . $ `src/main/print-escp2.h:266:9`! 0x3ul /* Stylus Pro printers */
267
268 #define MODEL_ZEROMARGIN_MASKcxx . . $ `src/main/print-escp2.h:268:9`! 0x70ul /* Does this printer support */
269 #define MODEL_ZEROMARGIN_NOcxx . . $ `src/main/print-escp2.h:269:9`! 0x00ul /* zero margin mode? */
270 #define MODEL_ZEROMARGIN_YEScxx . . $ `src/main/print-escp2.h:270:9`! 0x10ul /* (print beyond bottom of page) */
271 #define MODEL_ZEROMARGIN_FULLcxx . . $ `src/main/print-escp2.h:271:9`! 0x20ul /* (do not print beyond bottom) */
272 #define MODEL_ZEROMARGIN_RESTRcxx . . $ `src/main/print-escp2.h:272:9`! 0x30ul /* (no special treatment for vertical) */
273 #define MODEL_ZEROMARGIN_H_ONLYcxx . . $ `src/main/print-escp2.h:273:9`! 0x40ul /* (borderless only horizontal) */
274
275 #define MODEL_VARIABLE_DOT_MASKcxx . . $ `src/main/print-escp2.h:275:9`! 0x80ul /* Does this printer support var */
276 #define MODEL_VARIABLE_NOcxx . . $ `src/main/print-escp2.h:276:9`! 0x00ul /* dot size printing? The newest */
277 #define MODEL_VARIABLE_YEScxx . . $ `src/main/print-escp2.h:277:9`! 0x80ul /* printers support multiple modes */
278
279 #define MODEL_GRAYMODE_MASKcxx . . $ `src/main/print-escp2.h:279:9`! 0x100ul /* Does this printer support special */
280 #define MODEL_GRAYMODE_NOcxx . . $ `src/main/print-escp2.h:280:9`! 0x000ul /* fast black printing? */
281 #define MODEL_GRAYMODE_YEScxx . . $ `src/main/print-escp2.h:281:9`! 0x100ul
282
283 #define MODEL_FAST_360_MASKcxx . . $ `src/main/print-escp2.h:283:9`! 0x200ul
284 #define MODEL_FAST_360_NOcxx . . $ `src/main/print-escp2.h:284:9`! 0x000ul
285 #define MODEL_FAST_360_YEScxx . . $ `src/main/print-escp2.h:285:9`! 0x200ul
286
287 #define MODEL_SEND_ZERO_ADVANCE_MASKcxx . . $ `src/main/print-escp2.h:287:9`! 0x400ul
288 #define MODEL_SEND_ZERO_ADVANCE_NOcxx . . $ `src/main/print-escp2.h:288:9`! 0x000ul
289 #define MODEL_SEND_ZERO_ADVANCE_YEScxx . . $ `src/main/print-escp2.h:289:9`! 0x400ul
290
291 #define MODEL_SUPPORTS_INK_CHANGE_MASKcxx . . $ `src/main/print-escp2.h:291:9`! 0x800ul
292 #define MODEL_SUPPORTS_INK_CHANGE_NOcxx . . $ `src/main/print-escp2.h:292:9`! 0x000ul
293 #define MODEL_SUPPORTS_INK_CHANGE_YEScxx . . $ `src/main/print-escp2.h:293:9`! 0x800ul
294
295 #define MODEL_PACKET_MODE_MASKcxx . . $ `src/main/print-escp2.h:295:9`! 0x1000ul
296 #define MODEL_PACKET_MODE_NOcxx . . $ `src/main/print-escp2.h:296:9`! 0x0000ul
297 #define MODEL_PACKET_MODE_YEScxx . . $ `src/main/print-escp2.h:297:9`! 0x1000ul
298
299 #define MODEL_INTERCHANGEABLE_INK_MASKcxx . . $ `src/main/print-escp2.h:299:9`! 0x2000ul
300 #define MODEL_INTERCHANGEABLE_INK_NOcxx . . $ `src/main/print-escp2.h:300:9`! 0x0000ul
301 #define MODEL_INTERCHANGEABLE_INK_YEScxx . . $ `src/main/print-escp2.h:301:9`! 0x2000ul
302
303 #define MODEL_ENVELOPE_LANDSCAPE_MASKcxx . . $ `src/main/print-escp2.h:303:9`! 0x4000ul
304 #define MODEL_ENVELOPE_LANDSCAPE_NOcxx . . $ `src/main/print-escp2.h:304:9`! 0x0000ul
305 #define MODEL_ENVELOPE_LANDSCAPE_YEScxx . . $ `src/main/print-escp2.h:305:9`! 0x4000ul
306
307 #define MODEL_ROLL_ONLY_MASKcxx . . $ `src/main/print-escp2.h:307:9`! 0x8000ul /* Only supports roll-feed */
308 #define MODEL_ROLL_ONLY_NOcxx . . $ `src/main/print-escp2.h:308:9`! 0x0000ul
309 #define MODEL_ROLL_ONLY_YEScxx . . $ `src/main/print-escp2.h:309:9`! 0x8000ul
310
311 typedef enumcxx . . $ $anonymous_type_2c59c6ae4581c18b_17#
312 {
313 MODEL_COMMANDcxx . . $ MODEL_COMMAND.,
314 MODEL_ZEROMARGINcxx . . $ MODEL_ZEROMARGIN.,
315 MODEL_VARIABLE_DOTcxx . . $ MODEL_VARIABLE_DOT.,
316 MODEL_GRAYMODEcxx . . $ MODEL_GRAYMODE.,
317 MODEL_FAST_360cxx . . $ MODEL_FAST_360.,
318 MODEL_SEND_ZERO_ADVANCEcxx . . $ MODEL_SEND_ZERO_ADVANCE.,
319 MODEL_SUPPORTS_INK_CHANGEcxx . . $ MODEL_SUPPORTS_INK_CHANGE.,
320 MODEL_PACKET_MODEcxx . . $ MODEL_PACKET_MODE.,
321 MODEL_INTERCHANGEABLE_INKcxx . . $ MODEL_INTERCHANGEABLE_INK.,
322 MODEL_ENVELOPE_LANDSCAPEcxx . . $ MODEL_ENVELOPE_LANDSCAPE.,
323 MODEL_ROLL_ONLYcxx . . $ MODEL_ROLL_ONLY.,
324 MODEL_LIMITcxx . . $ MODEL_LIMIT.
325 } escp2_model_option_tcxx . . $ escp2_model_option_t#;
326
327 typedef struct escp2_printercxx . . $ escp2_printer#
328 {
329 int activecxx . . $ escp2_printer#active.;
330 /*****************************************************************************/
331 model_cap_tcxx . . $ model_cap_t# flagscxx . . $ escp2_printer#flags.; /* Bitmask of flags, see above */
332 /*****************************************************************************/
333 /* Basic head configuration */
334 short nozzlescxx . . $ escp2_printer#nozzles.; /* Number of nozzles per color */
335 short min_nozzlescxx . . $ escp2_printer#min_nozzles.; /* Minimum number of nozzles per color */
336 short nozzle_startcxx . . $ escp2_printer#nozzle_start.; /* Starting usable nozzle */
337 short nozzle_separationcxx . . $ escp2_printer#nozzle_separation.; /* Separation between rows, in 1/360" */
338 short black_nozzlescxx . . $ escp2_printer#black_nozzles.; /* Number of black nozzles (may be extra) */
339 short min_black_nozzlescxx . . $ escp2_printer#min_black_nozzles.; /* # of black nozzles (may be extra) */
340 short black_nozzle_startcxx . . $ escp2_printer#black_nozzle_start.; /* Starting usable nozzle */
341 short black_nozzle_separationcxx . . $ escp2_printer#black_nozzle_separation.; /* Separation between rows */
342 short fast_nozzlescxx . . $ escp2_printer#fast_nozzles.; /* Number of fast nozzles */
343 short min_fast_nozzlescxx . . $ escp2_printer#min_fast_nozzles.; /* # of fast nozzles (may be extra) */
344 short fast_nozzle_startcxx . . $ escp2_printer#fast_nozzle_start.; /* Starting usable nozzle */
345 short fast_nozzle_separationcxx . . $ escp2_printer#fast_nozzle_separation.; /* Separation between rows */
346 short physical_channelscxx . . $ escp2_printer#physical_channels.; /* Number of ink channels */
347 /*****************************************************************************/
348 /* Print head resolution */
349 short base_separationcxx . . $ escp2_printer#base_separation.; /* Basic unit of row separation */
350 short resolution_scalecxx . . $ escp2_printer#resolution_scale.; /* Scaling factor for ESC(D command */
351 short max_black_resolutioncxx . . $ escp2_printer#max_black_resolution.; /* Above this resolution, we */
352 /* must use color parameters */
353 /* rather than (faster) black */
354 /* only parameters*/
355 unsigned short max_hrescxx . . $ escp2_printer#max_hres.;
356 unsigned short max_vrescxx . . $ escp2_printer#max_vres.;
357 unsigned short min_hrescxx . . $ escp2_printer#min_hres.;
358 unsigned short min_vrescxx . . $ escp2_printer#min_vres.;
359 /*****************************************************************************/
360 /* Miscellaneous printer-specific data */
361 short extra_feedcxx . . $ escp2_printer#extra_feed.; /* Extra distance the paper can be spaced */
362 /* beyond the bottom margin, in 1/360". */
363 /* (maximum useful value is */
364 /* nozzles * nozzle_separation) */
365 short separation_rowscxx . . $ escp2_printer#separation_rows.; /* Some printers require funky spacing */
366 /* arguments in softweave mode. */
367 short pseudo_separation_rowscxx . . $ escp2_printer#pseudo_separation_rows.;/* Some printers require funky */
368 /* spacing arguments in printer_weave mode */
369
370 short zero_margin_offsetcxx . . $ escp2_printer#zero_margin_offset.; /* Offset to use to achieve */
371 /* zero-margin printing */
372 short micro_left_margincxx . . $ escp2_printer#micro_left_margin.; /* Precise left margin (base separation) */
373 short initial_vertical_offsetcxx . . $ escp2_printer#initial_vertical_offset.;
374 short black_initial_vertical_offsetcxx . . $ escp2_printer#black_initial_vertical_offset.;
375 short printing_initial_vertical_offsetcxx . . $ escp2_printer#printing_initial_vertical_offset.;
376 short extra_720dpi_separationcxx . . $ escp2_printer#extra_720dpi_separation.;
377 short min_horizontal_position_alignmentcxx . . $ escp2_printer#min_horizontal_position_alignment.; /* Horizontal alignment */
378 /* for good performance */
379 short base_horizontal_position_alignmentcxx . . $ escp2_printer#base_horizontal_position_alignment.; /* Horizontal alignment */
380 /* for good performance */
381 int bidirectional_upper_limitcxx . . $ escp2_printer#bidirectional_upper_limit.; /* Highest total resolution */
382 /* for bidirectional printing */
383 /* in auto mode */
384 /*****************************************************************************/
385 /* Paper size limits */
386 stp_dimension_tcxx . . $ stp_dimension_t# max_paper_widthcxx . . $ escp2_printer#max_paper_width.; /* Maximum paper width, in points */
387 stp_dimension_tcxx . . $ stp_dimension_t# max_paper_heightcxx . . $ escp2_printer#max_paper_height.; /* Maximum paper height, in points */
388 stp_dimension_tcxx . . $ stp_dimension_t# min_paper_widthcxx . . $ escp2_printer#min_paper_width.; /* Maximum paper width, in points */
389 stp_dimension_tcxx . . $ stp_dimension_t# min_paper_heightcxx . . $ escp2_printer#min_paper_height.; /* Maximum paper height, in points */
390 stp_dimension_tcxx . . $ stp_dimension_t# max_imageable_widthcxx . . $ escp2_printer#max_imageable_width.; /* Maximum imageable area, in points */
391 stp_dimension_tcxx . . $ stp_dimension_t# max_imageable_heightcxx . . $ escp2_printer#max_imageable_height.; /* Maximum imageable area, in points */
392 /*****************************************************************************/
393 /* Borders */
394 /* SHEET FED: */
395 /* Softweave: */
396 stp_dimension_tcxx . . $ stp_dimension_t# left_margincxx . . $ escp2_printer#left_margin.; /* Left margin, points */
397 stp_dimension_tcxx . . $ stp_dimension_t# right_margincxx . . $ escp2_printer#right_margin.; /* Right margin, points */
398 stp_dimension_tcxx . . $ stp_dimension_t# top_margincxx . . $ escp2_printer#top_margin.; /* Absolute top margin, points */
399 stp_dimension_tcxx . . $ stp_dimension_t# bottom_margincxx . . $ escp2_printer#bottom_margin.; /* Absolute bottom margin, points */
400 /* Printer weave: */
401 stp_dimension_tcxx . . $ stp_dimension_t# m_left_margincxx . . $ escp2_printer#m_left_margin.; /* Left margin, points */
402 stp_dimension_tcxx . . $ stp_dimension_t# m_right_margincxx . . $ escp2_printer#m_right_margin.; /* Right margin, points */
403 stp_dimension_tcxx . . $ stp_dimension_t# m_top_margincxx . . $ escp2_printer#m_top_margin.; /* Absolute top margin, points */
404 stp_dimension_tcxx . . $ stp_dimension_t# m_bottom_margincxx . . $ escp2_printer#m_bottom_margin.; /* Absolute bottom margin, points */
405 /* ROLL FEED: */
406 /* Softweave: */
407 stp_dimension_tcxx . . $ stp_dimension_t# roll_left_margincxx . . $ escp2_printer#roll_left_margin.; /* Left margin, points */
408 stp_dimension_tcxx . . $ stp_dimension_t# roll_right_margincxx . . $ escp2_printer#roll_right_margin.; /* Right margin, points */
409 stp_dimension_tcxx . . $ stp_dimension_t# roll_top_margincxx . . $ escp2_printer#roll_top_margin.; /* Absolute top margin, points */
410 stp_dimension_tcxx . . $ stp_dimension_t# roll_bottom_margincxx . . $ escp2_printer#roll_bottom_margin.; /* Absolute bottom margin, points */
411 /* Printer weave: */
412 stp_dimension_tcxx . . $ stp_dimension_t# m_roll_left_margincxx . . $ escp2_printer#m_roll_left_margin.; /* Left margin, points */
413 stp_dimension_tcxx . . $ stp_dimension_t# m_roll_right_margincxx . . $ escp2_printer#m_roll_right_margin.; /* Right margin, points */
414 stp_dimension_tcxx . . $ stp_dimension_t# m_roll_top_margincxx . . $ escp2_printer#m_roll_top_margin.; /* Absolute top margin, points */
415 stp_dimension_tcxx . . $ stp_dimension_t# m_roll_bottom_margincxx . . $ escp2_printer#m_roll_bottom_margin.; /* Absolute bottom margin, points */
416 /* Duplex margin limit (SHRT_MIN = no limit): */
417 stp_dimension_tcxx . . $ stp_dimension_t# duplex_left_margincxx . . $ escp2_printer#duplex_left_margin.; /* Left margin, points */
418 stp_dimension_tcxx . . $ stp_dimension_t# duplex_right_margincxx . . $ escp2_printer#duplex_right_margin.; /* Right margin, points */
419 stp_dimension_tcxx . . $ stp_dimension_t# duplex_top_margincxx . . $ escp2_printer#duplex_top_margin.; /* Absolute top margin, points */
420 stp_dimension_tcxx . . $ stp_dimension_t# duplex_bottom_margincxx . . $ escp2_printer#duplex_bottom_margin.; /* Absolute bottom margin, points */
421 /* Print directly to CD */
422 stp_dimension_tcxx . . $ stp_dimension_t# cd_x_offsetcxx . . $ escp2_printer#cd_x_offset.; /* Center of CD (horizontal offset) */
423 stp_dimension_tcxx . . $ stp_dimension_t# cd_y_offsetcxx . . $ escp2_printer#cd_y_offset.; /* Center of CD (vertical offset) */
424 stp_dimension_tcxx . . $ stp_dimension_t# cd_page_widthcxx . . $ escp2_printer#cd_page_width.; /* Width of "page" when printing to CD */
425 stp_dimension_tcxx . . $ stp_dimension_t# cd_page_heightcxx . . $ escp2_printer#cd_page_height.; /* Height of "page" when printing to CD */
426 /* Extra height for form factor command */
427 stp_dimension_tcxx . . $ stp_dimension_t# paper_extra_bottomcxx . . $ escp2_printer#paper_extra_bottom.; /* Extra space on the bottom of the page */
428 /*****************************************************************************/
429 /* Parameters for escputil */
430 short alignment_passescxx . . $ escp2_printer#alignment_passes.;
431 short alignment_choicescxx . . $ escp2_printer#alignment_choices.;
432 short alternate_alignment_passescxx . . $ escp2_printer#alternate_alignment_passes.;
433 short alternate_alignment_choicescxx . . $ escp2_printer#alternate_alignment_choices.;
434 /*****************************************************************************/
435 stp_raw_tcxx . . $ stp_raw_t# *preinit_sequencecxx . . $ escp2_printer#preinit_sequence.;
436 stp_raw_tcxx . . $ stp_raw_t# *preinit_remote_sequencecxx . . $ escp2_printer#preinit_remote_sequence.;
437 stp_raw_tcxx . . $ stp_raw_t# *postinit_sequencecxx . . $ escp2_printer#postinit_sequence.;
438 stp_raw_tcxx . . $ stp_raw_t# *postinit_remote_sequencecxx . . $ escp2_printer#postinit_remote_sequence.;
439 stp_raw_tcxx . . $ stp_raw_t# *vertical_borderless_sequencecxx . . $ escp2_printer#vertical_borderless_sequence.;
440 /*****************/
441 stp_mxml_node_tcxx . . $ stp_mxml_node_t# *mediacxx . . $ escp2_printer#media.;
442 stp_list_tcxx . . $ stp_list_t# *media_cachecxx . . $ escp2_printer#media_cache.;
443 stp_string_list_tcxx . . $ stp_string_list_t# *paperscxx . . $ escp2_printer#papers.;
444 /*****************/
445 stp_mxml_node_tcxx . . $ stp_mxml_node_t# *slotscxx . . $ escp2_printer#slots.;
446 stp_list_tcxx . . $ stp_list_t# *slots_cachecxx . . $ escp2_printer#slots_cache.;
447 stp_string_list_tcxx . . $ stp_string_list_t# *input_slotscxx . . $ escp2_printer#input_slots.;
448 /*****************/
449 stp_mxml_node_tcxx . . $ stp_mxml_node_t# *media_sizescxx . . $ escp2_printer#media_sizes.;
450 /*****************/
451 stp_string_list_tcxx . . $ stp_string_list_t# *channel_namescxx . . $ escp2_printer#channel_names.;
452 /*****************/
453 resolution_list_tcxx . . $ resolution_list_t# *resolutionscxx . . $ escp2_printer#resolutions.;
454 /*****************/
455 printer_weave_list_tcxx . . $ printer_weave_list_t# *printer_weavescxx . . $ escp2_printer#printer_weaves.;
456 /*****************/
457 quality_list_tcxx . . $ quality_list_t# *quality_listcxx . . $ escp2_printer#quality_list.;
458 /*****************/
459 inkgroup_tcxx . . $ inkgroup_t# *inkgroupcxx . . $ escp2_printer#inkgroup.;
460 } stpi_escp2_printer_tcxx . . $ stpi_escp2_printer_t#;
461
462 /* From escp2-channels.c: */
463
464 extern const inkname_tcxx . . $ inkname_t# *stpi_escp2_get_default_black_inksetcxx . . $ stpi_escp2_get_default_black_inkset(2e485fb79db197c1).(void);
465 extern int stpi_escp2_load_inkgroupcxx . . $ stpi_escp2_load_inkgroup(b1e629819c29df09).(const stp_vars_tcxx . . $ stp_vars_t# *v, const char *name);
466
467 /* From escp2-papers.c: */
468 extern int stpi_escp2_load_mediacxx . . $ stpi_escp2_load_media(b1e629819c29df09).(const stp_vars_tcxx . . $ stp_vars_t# *v, const char *name);
469 extern int stpi_escp2_has_media_featurecxx . . $ stpi_escp2_has_media_feature(b1e629819c29df09).(const stp_vars_tcxx . . $ stp_vars_t# *v, const char *name);
470 extern const paper_tcxx . . $ paper_t# *stpi_escp2_get_default_media_typecxx . . $ stpi_escp2_get_default_media_type(20073b5b5be389a1).(const stp_vars_tcxx . . $ stp_vars_t# *v);
471 extern const paper_tcxx . . $ paper_t# *stpi_escp2_get_media_typecxx . . $ stpi_escp2_get_media_type(6cc0b3da11fb7968).(const stp_vars_tcxx . . $ stp_vars_t# *v, int ignore_res);
472 extern int stpi_escp2_printer_supports_rollfeedcxx . . $ stpi_escp2_printer_supports_rollfeed(b1be75487ade2f93).(const stp_vars_tcxx . . $ stp_vars_t# *v);
473 extern int stpi_escp2_printer_supports_print_to_cdcxx . . $ stpi_escp2_printer_supports_print_to_cd(b1be75487ade2f93).(const stp_vars_tcxx . . $ stp_vars_t# *v);
474 extern int stpi_escp2_printer_supports_duplexcxx . . $ stpi_escp2_printer_supports_duplex(b1be75487ade2f93).(const stp_vars_tcxx . . $ stp_vars_t# *v);
475
476 extern int stpi_escp2_load_input_slotscxx . . $ stpi_escp2_load_input_slots(b1e629819c29df09).(const stp_vars_tcxx . . $ stp_vars_t# *v, const char *name);
477 extern const input_slot_tcxx . . $ input_slot_t# *stpi_escp2_get_input_slotcxx . . $ stpi_escp2_get_input_slot(e79071fa35beaeea).(const stp_vars_tcxx . . $ stp_vars_t# *v);
478
479 extern int stpi_escp2_load_media_sizescxx . . $ stpi_escp2_load_media_sizes(b1e629819c29df09).(const stp_vars_tcxx . . $ stp_vars_t# *v, const char *name);
480 extern void stpi_escp2_set_media_sizecxx . . $ stpi_escp2_set_media_size(352fcd689be2d739).(stp_vars_tcxx . . $ stp_vars_t# *v, const stp_vars_tcxx . . $ stp_vars_t# *src);
481
482 /* From escp2-resolutions.c: */
483 extern int stpi_escp2_load_resolutionscxx . . $ stpi_escp2_load_resolutions(5eab70e4dd30e869).(const stp_vars_tcxx . . $ stp_vars_t# *v, const char *name,
484 stp_mxml_node_tcxx . . $ stp_mxml_node_t# *node);
485 extern int stpi_escp2_load_printer_weavescxx . . $ stpi_escp2_load_printer_weaves(b1e629819c29df09).(const stp_vars_tcxx . . $ stp_vars_t# *v, const char *name);
486 extern int stpi_escp2_load_quality_presetscxx . . $ stpi_escp2_load_quality_presets(b1e629819c29df09).(const stp_vars_tcxx . . $ stp_vars_t# *v, const char *name);
487
488 /* From print-escp2.c: */
489 extern const res_tcxx . . $ res_t# *stpi_escp2_find_resolutioncxx . . $ stpi_escp2_find_resolution(55b4fe1aaf711d8c).(const stp_vars_tcxx . . $ stp_vars_t# *v);
490 extern const inklist_tcxx . . $ inklist_t# *stpi_escp2_inklistcxx . . $ stpi_escp2_inklist(da36bbf87ae9f85d).(const stp_vars_tcxx . . $ stp_vars_t# *v);
491
492 /* From print-escp2-data.c: */
493 extern void stpi_escp2_load_modelcxx . . $ stpi_escp2_load_model(199fed8b291d7d10).(const stp_vars_tcxx . . $ stp_vars_t# *v, int model);
494 extern stpi_escp2_printer_tcxx . . $ stpi_escp2_printer_t# *stpi_escp2_get_printercxx . . $ stpi_escp2_get_printer(d94ed1084d556691).(const stp_vars_tcxx . . $ stp_vars_t# *v);
495 extern model_featureset_tcxx . . $ model_featureset_t# stpi_escp2_get_capcxx . . $ stpi_escp2_get_cap(4122c609e1af6136).(const stp_vars_tcxx . . $ stp_vars_t# *v,
496 escp2_model_option_tcxx . . $ escp2_model_option_t# feature);
497 extern int stpi_escp2_has_capcxx . . $ stpi_escp2_has_cap(c66a7aab328d5c81).(const stp_vars_tcxx . . $ stp_vars_t# *v, escp2_model_option_tcxx . . $ escp2_model_option_t# feature,
498 model_featureset_tcxx . . $ model_featureset_t# class);
499
500
501 typedef structcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#
502 {
503 /* Basic print head parameters */
504 int nozzlescxx . . $ $anonymous_type_2c59c6ae4581c18b_18#nozzles.; /* Number of nozzles */
505 int min_nozzlescxx . . $ $anonymous_type_2c59c6ae4581c18b_18#min_nozzles.; /* Fewest nozzles we're allowed to use */
506 int nozzle_separationcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#nozzle_separation.; /* Nozzle separation, in dots */
507 int nozzle_startcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#nozzle_start.; /* First usable nozzle */
508 int *head_offsetcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#head_offset.; /* Head offset (for C80-type printers) */
509 int max_head_offsetcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#max_head_offset.; /* Largest head offset */
510 int page_management_unitscxx . . $ $anonymous_type_2c59c6ae4581c18b_18#page_management_units.; /* Page management units (dpi) */
511 int vertical_unitscxx . . $ $anonymous_type_2c59c6ae4581c18b_18#vertical_units.; /* Vertical units (dpi) */
512 int horizontal_unitscxx . . $ $anonymous_type_2c59c6ae4581c18b_18#horizontal_units.; /* Horizontal units (dpi) */
513 int micro_unitscxx . . $ $anonymous_type_2c59c6ae4581c18b_18#micro_units.; /* Micro-units for horizontal positioning */
514 int unit_scalecxx . . $ $anonymous_type_2c59c6ae4581c18b_18#unit_scale.; /* Scale factor for units */
515 int send_zero_pass_advancecxx . . $ $anonymous_type_2c59c6ae4581c18b_18#send_zero_pass_advance.; /* Send explicit command for zero advance */
516 int zero_margin_offsetcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#zero_margin_offset.; /* Zero margin offset */
517 int split_channel_countcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#split_channel_count.; /* For split channels, like C120 */
518 int split_channel_widthcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#split_channel_width.; /* Linewidth for split channels */
519 short *split_channelscxx . . $ $anonymous_type_2c59c6ae4581c18b_18#split_channels.;
520
521 /* Ink parameters */
522 int bitwidthcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#bitwidth.; /* Number of bits per ink drop */
523 int drop_sizecxx . . $ $anonymous_type_2c59c6ae4581c18b_18#drop_size.; /* ID of the drop size we're using */
524 const inkname_tcxx . . $ inkname_t# *inknamecxx . . $ $anonymous_type_2c59c6ae4581c18b_18#inkname.; /* Description of the ink set */
525 int use_aux_channelscxx . . $ $anonymous_type_2c59c6ae4581c18b_18#use_aux_channels.; /* Use gloss channel */
526
527 /* Ink channels */
528 int logical_channelscxx . . $ $anonymous_type_2c59c6ae4581c18b_18#logical_channels.; /* Number of logical ink channels (e.g.CMYK) */
529 int physical_channelscxx . . $ $anonymous_type_2c59c6ae4581c18b_18#physical_channels.; /* Number of physical channels (e.g. CcMmYK) */
530 int channels_in_usecxx . . $ $anonymous_type_2c59c6ae4581c18b_18#channels_in_use.; /* Number of channels we're using
531 FIXME merge with physical_channels! */
532 unsigned char **colscxx . . $ $anonymous_type_2c59c6ae4581c18b_18#cols.; /* Output dithered data */
533 const physical_subchannel_tcxx . . $ physical_subchannel_t# **channelscxx . . $ $anonymous_type_2c59c6ae4581c18b_18#channels.; /* Description of each channel */
534
535 /* Miscellaneous printer control */
536 int use_black_parameterscxx . . $ $anonymous_type_2c59c6ae4581c18b_18#use_black_parameters.; /* Can we use (faster) black head parameters */
537 int use_fast_360cxx . . $ $anonymous_type_2c59c6ae4581c18b_18#use_fast_360.; /* Can we use fast 360 DPI 4 color mode */
538 int advanced_command_setcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#advanced_command_set.; /* Uses one of the advanced command sets */
539 int use_extended_commandscxx . . $ $anonymous_type_2c59c6ae4581c18b_18#use_extended_commands.; /* Do we use the extended commands? */
540 const input_slot_tcxx . . $ input_slot_t# *input_slotcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#input_slot.; /* Input slot description */
541 const paper_tcxx . . $ paper_t# *paper_typecxx . . $ $anonymous_type_2c59c6ae4581c18b_18#paper_type.; /* Paper type */
542 stp_vars_tcxx . . $ stp_vars_t# *media_settingscxx . . $ $anonymous_type_2c59c6ae4581c18b_18#media_settings.; /* Hardware media settings */
543 const inkgroup_tcxx . . $ inkgroup_t# *ink_groupcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#ink_group.; /* Which set of inks */
544 const stp_raw_tcxx . . $ stp_raw_t# *preinit_sequencecxx . . $ $anonymous_type_2c59c6ae4581c18b_18#preinit_sequence.; /* Initialization sequence */
545 const stp_raw_tcxx . . $ stp_raw_t# *preinit_remote_sequencecxx . . $ $anonymous_type_2c59c6ae4581c18b_18#preinit_remote_sequence.; /* Initialization sequence */
546 const stp_raw_tcxx . . $ stp_raw_t# *deinit_sequencecxx . . $ $anonymous_type_2c59c6ae4581c18b_18#deinit_sequence.; /* De-initialization sequence */
547 const stp_raw_tcxx . . $ stp_raw_t# *deinit_remote_sequencecxx . . $ $anonymous_type_2c59c6ae4581c18b_18#deinit_remote_sequence.; /* De-initialization sequence */
548 const stp_raw_tcxx . . $ stp_raw_t# *borderless_sequencecxx . . $ $anonymous_type_2c59c6ae4581c18b_18#borderless_sequence.; /* Vertical borderless sequence */
549 model_featureset_tcxx . . $ model_featureset_t# command_setcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#command_set.; /* Which command set this printer supports */
550 int variable_dotscxx . . $ $anonymous_type_2c59c6ae4581c18b_18#variable_dots.; /* Print supports variable dot sizes */
551 int has_graymodecxx . . $ $anonymous_type_2c59c6ae4581c18b_18#has_graymode.; /* Printer supports fast grayscale mode */
552 int roll_onlycxx . . $ $anonymous_type_2c59c6ae4581c18b_18#roll_only.; /* Printer only supports roll-fed media */
553 int base_separationcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#base_separation.; /* Basic unit of separation */
554 int resolution_scalecxx . . $ $anonymous_type_2c59c6ae4581c18b_18#resolution_scale.; /* Scale factor for ESC(D command */
555 int separation_rowscxx . . $ $anonymous_type_2c59c6ae4581c18b_18#separation_rows.; /* Row separation scaling */
556 int pseudo_separation_rowscxx . . $ $anonymous_type_2c59c6ae4581c18b_18#pseudo_separation_rows.; /* Special row separation for some printers */
557 int extra_720dpi_separationcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#extra_720dpi_separation.; /* Special separation needed at 720 DPI */
558 int bidirectional_upper_limitcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#bidirectional_upper_limit.; /* Max total resolution for auto-bidi */
559 int duplexcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#duplex.;
560 int extra_vertical_feedcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#extra_vertical_feed.; /* Extra vertical feed */
561
562 /* weave parameters */
563 int horizontal_passescxx . . $ $anonymous_type_2c59c6ae4581c18b_18#horizontal_passes.; /* Number of horizontal passes required
564 to print a complete row */
565 int physical_xdpicxx . . $ $anonymous_type_2c59c6ae4581c18b_18#physical_xdpi.; /* Horizontal distance between dots in pass */
566 const res_tcxx . . $ res_t# *rescxx . . $ $anonymous_type_2c59c6ae4581c18b_18#res.; /* Description of the printing resolution */
567 const stp_raw_tcxx . . $ stp_raw_t# *printer_weavecxx . . $ $anonymous_type_2c59c6ae4581c18b_18#printer_weave.; /* Printer weave parameters */
568 int use_printer_weavecxx . . $ $anonymous_type_2c59c6ae4581c18b_18#use_printer_weave.; /* Use the printer weaving mechanism */
569 int extra_vertical_passescxx . . $ $anonymous_type_2c59c6ae4581c18b_18#extra_vertical_passes.; /* Quality enhancement */
570
571 /* page parameters */ /* Indexed from top left */
572 stp_dimension_tcxx . . $ stp_dimension_t# page_leftcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#page_left.; /* Left edge of page (points) */
573 stp_dimension_tcxx . . $ stp_dimension_t# page_rightcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#page_right.; /* Right edge of page (points) */
574 stp_dimension_tcxx . . $ stp_dimension_t# page_topcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#page_top.; /* Top edge of page (points) */
575 stp_dimension_tcxx . . $ stp_dimension_t# page_bottomcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#page_bottom.; /* Bottom edge of page (points) */
576 stp_dimension_tcxx . . $ stp_dimension_t# page_widthcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#page_width.; /* Page width (points) */
577 stp_dimension_tcxx . . $ stp_dimension_t# page_heightcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#page_height.; /* Page height (points) */
578 stp_dimension_tcxx . . $ stp_dimension_t# page_true_heightcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#page_true_height.; /* Physical page height (points) */
579 stp_dimension_tcxx . . $ stp_dimension_t# page_true_widthcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#page_true_width.; /* Physical page height (points) */
580 stp_dimension_tcxx . . $ stp_dimension_t# cd_x_offsetcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#cd_x_offset.; /* CD X offset (micro units) */
581 stp_dimension_tcxx . . $ stp_dimension_t# cd_y_offsetcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#cd_y_offset.; /* CD Y offset (micro units) */
582 stp_dimension_tcxx . . $ stp_dimension_t# cd_outer_radiuscxx . . $ $anonymous_type_2c59c6ae4581c18b_18#cd_outer_radius.; /* CD radius (micro units) */
583 stp_dimension_tcxx . . $ stp_dimension_t# cd_inner_radiuscxx . . $ $anonymous_type_2c59c6ae4581c18b_18#cd_inner_radius.; /* CD radius (micro units) */
584 int page_extra_heightcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#page_extra_height.; /* Extra height for set_form_factor (rows) */
585 int paper_extra_bottomcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#paper_extra_bottom.; /* Extra bottom for set_page_size (rows) */
586
587 /* Image parameters */ /* Indexed from top left */
588 stp_dimension_tcxx . . $ stp_dimension_t# image_heightcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#image_height.; /* Height of printed region (points) */
589 stp_dimension_tcxx . . $ stp_dimension_t# image_widthcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#image_width.; /* Width of printed region (points) */
590 stp_dimension_tcxx . . $ stp_dimension_t# image_topcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#image_top.; /* First printed row (points) */
591 stp_dimension_tcxx . . $ stp_dimension_t# image_leftcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#image_left.; /* Left edge of image (points) */
592 int image_scaled_widthcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#image_scaled_width.; /* Width of physical printed region (dots) */
593 int image_printed_widthcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#image_printed_width.; /* Width of printed region (dots) */
594 int image_scaled_heightcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#image_scaled_height.; /* Height of physical printed region (dots) */
595 int image_printed_heightcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#image_printed_height.; /* Height of printed region (dots) */
596 int image_left_positioncxx . . $ $anonymous_type_2c59c6ae4581c18b_18#image_left_position.; /* Left dot position of image */
597
598 /* Transitory state */
599 int printed_somethingcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#printed_something.; /* Have we actually printed anything? */
600 int initial_vertical_offsetcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#initial_vertical_offset.; /* Vertical offset for C80-type printers */
601 int printing_initial_vertical_offsetcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#printing_initial_vertical_offset.; /* Vertical offset, for print cmd */
602 int last_colorcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#last_color.; /* Last color we printed */
603 int last_pass_offsetcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#last_pass_offset.; /* Starting row of last pass we printed */
604 int last_passcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#last_pass.; /* Last pass printed */
605 unsigned char *comp_bufcxx . . $ $anonymous_type_2c59c6ae4581c18b_18#comp_buf.; /* Compression buffer for C120-type printers */
606
607 } escp2_privdata_tcxx . . $ escp2_privdata_t#;
608
609 extern void stpi_escp2_init_printercxx . . $ stpi_escp2_init_printer(1a97b8462f9f913c).(stp_vars_tcxx . . $ stp_vars_t# *v);
610 extern void stpi_escp2_deinit_printercxx . . $ stpi_escp2_deinit_printer(1a97b8462f9f913c).(stp_vars_tcxx . . $ stp_vars_t# *v);
611 extern void stpi_escp2_flush_passcxx . . $ stpi_escp2_flush_pass(9e1f5dddaee1574e).(stp_vars_tcxx . . $ stp_vars_t# *v, int passno,
612 int vertical_subpass);
613 extern void stpi_escp2_terminate_pagecxx . . $ stpi_escp2_terminate_page(1a97b8462f9f913c).(stp_vars_tcxx . . $ stp_vars_t# *v);
614
615 #ifdef TEST_UNCOMPRESSED
616 #define COMPRESSION (0)
617 #define FILLFUNC stp_fill_uncompressed
618 #define COMPUTEFUNC stp_compute_uncompressed_linewidth
619 #define PACKFUNC stp_pack_uncompressed
620 #else
621 #define COMPRESSIONcxx . . $ `src/main/print-escp2.h:621:9`! (1)
622 #define FILLFUNCcxx . . $ `src/main/print-escp2.h:622:9`! pd->split_channel_count > 0 ? stp_fill_uncompressed : stp_fill_tiff
623 #define COMPUTEFUNCcxx . . $ `src/main/print-escp2.h:623:9`! pd->split_channel_count > 0 ? stp_compute_uncompressed_linewidth : stp_compute_tiff_linewidth
624 #define PACKFUNCcxx . . $ `src/main/print-escp2.h:624:9`! pd->split_channel_count > 0 ? stp_pack_uncompressed : stp_pack_tiff
625 #endif
626
627 #endif /* GUTENPRINT_INTERNAL_ESCP2_H */