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 149 150 151 152 153 154 155 156 157 158 159 160
|
/***************************************************************************
defaults.h - contains model-specific defaults for various parameters
-------------------
begin : Thu Jan 13 2000
copyright : (C) 2000 by the pnm2ppa project
email :
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef _DEFAULTS_H
#define _DEFAULTS_H
/* Refer to CALIBRATION file about these settings */
#define MAXPRNNAMELEN 64
typedef enum
{
NOPRINTER = 0xff,
HP7X0 = 0,
HP820,
HP1000
}
printerModel_t;
typedef struct
{
printerModel_t model;
char name[MAXPRNNAMELEN];
char friendlyname[MAXPRNNAMELEN];
int ColBwOffsX;
int ColBwOffsY;
int x_offset;
int y_offset;
int r2l_bw_offset;
int r2l_col_offset;
int top_margin;
int bottom_margin;
int left_margin;
int right_margin;
int marg_diff;
size_t bufsize;
int min_pagewidth;
int max_pagewidth;
int min_pageheight;
int max_pageheight;
}
printerDefault_t;
#ifdef __PNM2PPA_C__
// we only initialise the once
printerDefault_t gPrinterDefaults[] = {
{
HP7X0,
"HP7x0",
"HP 710C, 712C, 720C, 722C Series Printers",
-5, /* colxoff */
43, /* colyoff */
160, /* x_offset */
50, /* y_offset */
0, /* r2l_bw_offset */
0, /* r2l_col_offset */
10, /* top_margin */
150, /* bottom_margin */
10, /* left_margin */
10, /* right_margin */
2, /* margin difference */
200 * 1024, /* buffer size */
1800, /* min pagewidth 3" */
5100, /* max pagewidth 8.5"*/
1800, /* min pageheight 3" */
8400 /* max pageheight 14" */
},
{
HP820,
"HP820",
"HP 820 Series Printers",
35, /* colxoff */
43, /* colyoff */
160, /* x_offset */
50, /* y_offset */
0, /* r2l_bw_offset */
0, /* r2l_col_offset */
80, /* top_margin */
150, /* bottom_margin */
80, /* left_margin */
80, /* right_margin */
0x62, /* margin difference */
200 * 1024, /* buffer size */
1800, /* min pagewidth 3" */
5100, /* max pagewidth 8.5"*/
1800, /* min pageheight 3" */
8400 /* max pageheight 14" */
},
{
HP1000,
"HP1000",
"HP 1000 Series Printers",
35, /* colxoff */
43, /* colyoff */
160, /* x_offset */
50, /* y_offset */
0, /* r2l_bw_offset */
0, /* r2l_col_offset */
10, /* top_margin */
150, /* bottom_margin */
10, /* left_margin */
10, /* right_margin */
0x62, /* margin difference */
200 * 1024, /* buffer size */
2400, /* min pagewidth 4" */
7800, /* max pagewidth 13" */
3600, /* min pageheight 6" */
11400 /* max pageheight 19" */
},
{
NOPRINTER,
"",
"",
0, /* colxoff */
0, /* colyoff */
0, /* x_off */
0, /* y_off */
0, /* r2l_bw_offset */
0, /* r2l_col_offset */
0, /* top */
0, /* bottom */
0, /* left */
0, /* right */
0, /* margin difference */
0, /* buffer size */
0, /* min pagewidth */
0, /* max pagewidth */
0, /* min pageheight */
0 /* max pageheight */
}
};
#else
extern printerDefault_t *gPrinterDefaults;
#endif
#endif
|