File: cupsdriver.xml

package info (click to toggle)
cupsddk 1.2.3-5
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 4,488 kB
  • ctags: 1,125
  • sloc: ansic: 7,074; cpp: 5,423; makefile: 526; xml: 227; sh: 153
file content (229 lines) | stat: -rw-r--r-- 20,387 bytes parent folder | download
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<?xml version="1.0"?>
<function name="cupsCMYKDelete"><description>Delete a color separation.</description><argument
name="cmyk" direction="I"><type>cups_cmyk_t *</type><description>Color separation</description></argument>
</function>
<function name="cupsCMYKDoBlack"><description>Do a black separation...</description><argument
name="cmyk" direction="I"><type>const cups_cmyk_t *</type><description>Color separation</description></argument>
<argument name="input" direction="I"><type>const unsigned char *</type><description>Input grayscale pixels</description></argument>
<argument name="output" direction="O"><type>short *</type><description>Output Device-N pixels</description></argument>
<argument name="num_pixels" direction="I"><type>int</type><description>Number of pixels</description></argument>
</function>
<function name="cupsCMYKDoCMYK"><description>Do a CMYK separation...</description><argument
name="cmyk" direction="I"><type>const cups_cmyk_t *</type><description>Color separation</description></argument>
<argument name="input" direction="I"><type>const unsigned char *</type><description>Input grayscale pixels</description></argument>
<argument name="output" direction="O"><type>short *</type><description>Output Device-N pixels</description></argument>
<argument name="num_pixels" direction="I"><type>int</type><description>Number of pixels</description></argument>
</function>
<function name="cupsCMYKDoGray"><description>Do a grayscale separation...</description><argument
name="cmyk" direction="I"><type>const cups_cmyk_t *</type><description>Color separation</description></argument>
<argument name="input" direction="I"><type>const unsigned char *</type><description>Input grayscale pixels</description></argument>
<argument name="output" direction="O"><type>short *</type><description>Output Device-N pixels</description></argument>
<argument name="num_pixels" direction="I"><type>int</type><description>Number of pixels</description></argument>
</function>
<function name="cupsCMYKDoRGB"><description>Do an sRGB separation...</description><argument
name="cmyk" direction="I"><type>const cups_cmyk_t *</type><description>Color separation</description></argument>
<argument name="input" direction="I"><type>const unsigned char *</type><description>Input grayscale pixels</description></argument>
<argument name="output" direction="O"><type>short *</type><description>Output Device-N pixels</description></argument>
<argument name="num_pixels" direction="I"><type>int</type><description>Number of pixels</description></argument>
</function>
<function name="cupsCMYKLoad"><returnvalue><description>CMYK color separation</description><type>cups_cmyk_t
*</type></returnvalue>
<description>Load a CMYK color profile from PPD attributes.</description><argument
name="ppd" direction="I"><type>ppd_file_t *</type><description>PPD file</description></argument>
<argument name="colormodel" direction="I"><type>const char *</type><description>ColorModel value</description></argument>
<argument name="media" direction="I"><type>const char *</type><description>MediaType value</description></argument>
<argument name="resolution" direction="I"><type>const char *</type><description>Resolution value</description></argument>
</function>
<function name="cupsCMYKNew"><returnvalue><description>New CMYK separation or NULL</description><type>cups_cmyk_t
*</type></returnvalue>
<description>Create a new CMYK color separation.</description><argument
name="num_channels" direction="I"><type>int</type><description>Number of color components</description></argument>
</function>
<function name="cupsCMYKSetBlack"><description>Set the transition range for CMY to black.</description><argument
name="cmyk" direction="I"><type>cups_cmyk_t *</type><description>CMYK color separation</description></argument>
<argument name="lower" direction="I"><type>float</type><description>No black ink</description></argument>
<argument name="upper" direction="I"><type>float</type><description>Only black ink</description></argument>
</function>
<function name="cupsCMYKSetCurve"><description>Set a color transform curve using points.</description><argument
name="cmyk" direction="I"><type>cups_cmyk_t *</type><description>CMYK color separation</description></argument>
<argument name="channel" direction="I"><type>int</type><description>Color channel</description></argument>
<argument name="num_xypoints" direction="I"><type>int</type><description>Number of X,Y points</description></argument>
<argument name="xypoints" direction="I"><type>const float *</type><description>X,Y points</description></argument>
</function>
<function name="cupsCMYKSetGamma"><description>Set a color transform curve using gamma and density.</description><argument
name="cmyk" direction="I"><type>cups_cmyk_t *</type><description>CMYK color separation</description></argument>
<argument name="channel" direction="I"><type>int</type><description>Ink channel</description></argument>
<argument name="gamval" direction="I"><type>float</type><description>Gamma correction</description></argument>
<argument name="density" direction="I"><type>float</type><description>Maximum density</description></argument>
</function>
<function name="cupsCMYKSetInkLimit"><description>Set the limit on the amount of ink.</description><argument
name="cmyk" direction="I"><type>cups_cmyk_t *</type><description>CMYK color separation</description></argument>
<argument name="limit" direction="I"><type>float</type><description>Limit of ink</description></argument>
</function>
<function name="cupsCMYKSetLtDk"><description>Set light/dark ink transforms.</description><argument
name="cmyk" direction="I"><type>cups_cmyk_t *</type><description>CMYK color separation</description></argument>
<argument name="channel" direction="I"><type>int</type><description>Dark ink channel (+1 for light)</description></argument>
<argument name="light" direction="I"><type>float</type><description>Light ink only level</description></argument>
<argument name="dark" direction="I"><type>float</type><description>Dark ink only level</description></argument>
</function>
<function name="cupsCheckBytes"><returnvalue><description>1 if they match</description><type>int</type></returnvalue>
<description>Check to see if all bytes are zero.</description><argument
name="bytes" direction="I"><type>const unsigned char *</type><description>Bytes to check</description></argument>
<argument name="length" direction="I"><type>int</type><description>Number of bytes to check</description></argument>
</function>
<function name="cupsCheckValue"><returnvalue><description>1 if they match</description><type>int</type></returnvalue>
<description>Check to see if all bytes match the given value.</description><argument
name="bytes" direction="I"><type>const unsigned char *</type><description>Bytes to check</description></argument>
<argument name="length" direction="I"><type>int</type><description>Number of bytes to check</description></argument>
<argument name="value" direction="I"><type>const unsigned char</type><description>Value to check</description></argument>
</function>
<function name="cupsDitherDelete"><description>Free a dithering buffer.

Returns 0 on success, -1 on failure.</description><argument
name="d" direction="I"><type>cups_dither_t *</type><description>Dithering buffer</description></argument>
</function>
<function name="cupsDitherLine"><description>Dither a line of pixels...</description><argument
name="d" direction="I"><type>cups_dither_t *</type><description>Dither data</description></argument>
<argument name="lut" direction="I"><type>const cups_lut_t *</type><description>Lookup table</description></argument>
<argument name="data" direction="I"><type>const short *</type><description>Separation data</description></argument>
<argument name="num_channels" direction="I"><type>int</type><description>Number of components</description></argument>
<argument name="p" direction="O"><type>unsigned char *</type><description>Pixels</description></argument>
</function>
<function name="cupsDitherNew"><returnvalue><description>New state array</description><type>cups_dither_t
*</type></returnvalue>
<description>Create an error-diffusion dithering buffer.</description><argument
name="width" direction="I"><type>int</type><description>Width of output in pixels</description></argument>
</function>
<function name="cupsFindAttr"><returnvalue><description>Matching attribute or NULL</description><type>ppd_attr_t
*</type></returnvalue>
<description>Find a PPD attribute based on the colormodel,
media, and resolution.</description><argument
name="ppd" direction="I"><type>ppd_file_t *</type><description>PPD file</description></argument>
<argument name="name" direction="I"><type>const char *</type><description>Attribute name</description></argument>
<argument name="colormodel" direction="I"><type>const char *</type><description>Color model</description></argument>
<argument name="media" direction="I"><type>const char *</type><description>Media type</description></argument>
<argument name="resolution" direction="I"><type>const char *</type><description>Resolution</description></argument>
<argument name="spec" direction="O"><type>char *</type><description>Final selection string</description></argument>
<argument name="specsize" direction="I"><type>int</type><description>Size of string buffer</description></argument>
</function>
<function name="cupsLutDelete"><description>Free the memory used by a lookup table.</description><argument
name="lut" direction="I"><type>cups_lut_t *</type><description>Lookup table to free</description></argument>
</function>
<function name="cupsLutLoad"><returnvalue><description>New lookup table</description><type>cups_lut_t
*</type></returnvalue>
<description>Load a LUT from a PPD file.</description><argument
name="ppd" direction="I"><type>ppd_file_t *</type><description>PPD file</description></argument>
<argument name="colormodel" direction="I"><type>const char *</type><description>Color model</description></argument>
<argument name="media" direction="I"><type>const char *</type><description>Media type</description></argument>
<argument name="resolution" direction="I"><type>const char *</type><description>Resolution</description></argument>
<argument name="ink" direction="I"><type>const char *</type><description>Ink name</description></argument>
</function>
<function name="cupsLutNew"><returnvalue><description>New lookup table</description><type>cups_lut_t
*</type></returnvalue>
<description>Make a lookup table from a list of pixel values.

Returns a pointer to the lookup table on success, NULL on failure.</description><argument
name="num_values" direction="I"><type>int</type><description>Number of values</description></argument>
<argument name="values" direction="I"><type>const float *</type><description>Lookup table values</description></argument>
</function>
<function name="cupsPackHorizontal"><description>Pack pixels horizontally...</description><argument
name="ipixels" direction="I"><type>const unsigned char *</type><description>Input pixels</description></argument>
<argument name="obytes" direction="O"><type>unsigned char *</type><description>Output bytes</description></argument>
<argument name="width" direction="I"><type>int</type><description>Number of pixels</description></argument>
<argument name="clearto" direction="I"><type>const unsigned char</type><description>Initial value of bytes</description></argument>
<argument name="step" direction="I"><type>const int</type><description>Step value between pixels</description></argument>
</function>
<function name="cupsPackHorizontal2"><description>Pack 2-bit pixels horizontally...</description><argument
name="ipixels" direction="I"><type>const unsigned char *</type><description>Input pixels</description></argument>
<argument name="obytes" direction="O"><type>unsigned char *</type><description>Output bytes</description></argument>
<argument name="width" direction="I"><type>int</type><description>Number of pixels</description></argument>
<argument name="step" direction="I"><type>const int</type><description>Stepping value</description></argument>
</function>
<function name="cupsPackHorizontalBit"><description>Pack pixels horizontally by bit...</description><argument
name="ipixels" direction="I"><type>const unsigned char *</type><description>Input pixels</description></argument>
<argument name="obytes" direction="O"><type>unsigned char *</type><description>Output bytes</description></argument>
<argument name="width" direction="I"><type>int</type><description>Number of pixels</description></argument>
<argument name="clearto" direction="I"><type>const unsigned char</type><description>Initial value of bytes</description></argument>
<argument name="bit" direction="I"><type>const unsigned char</type><description>Bit to check</description></argument>
</function>
<function name="cupsPackVertical"><description>Pack pixels vertically...</description><argument
name="ipixels" direction="I"><type>const unsigned char *</type><description>Input pixels</description></argument>
<argument name="obytes" direction="O"><type>unsigned char *</type><description>Output bytes</description></argument>
<argument name="width" direction="I"><type>int</type><description>Number of input pixels</description></argument>
<argument name="bit" direction="I"><type>const unsigned char</type><description>Output bit</description></argument>
<argument name="step" direction="I"><type>const int</type><description>Number of bytes between columns</description></argument>
</function>
<function name="cupsRGBDelete"><description>Delete a color separation.</description><argument
name="rgbptr" direction="I"><type>cups_rgb_t *</type><description>Color separation</description></argument>
</function>
<function name="cupsRGBDoGray"><description>Do a grayscale separation...</description><argument
name="rgbptr" direction="I"><type>cups_rgb_t *</type><description>Color separation</description></argument>
<argument name="input" direction="I"><type>const unsigned char *</type><description>Input grayscale pixels</description></argument>
<argument name="output" direction="O"><type>unsigned char *</type><description>Output Device-N pixels</description></argument>
<argument name="num_pixels" direction="I"><type>int</type><description>Number of pixels</description></argument>
</function>
<function name="cupsRGBDoRGB"><description>Do a RGB separation...</description><argument
name="rgbptr" direction="I"><type>cups_rgb_t *</type><description>Color separation</description></argument>
<argument name="input" direction="I"><type>const unsigned char *</type><description>Input RGB pixels</description></argument>
<argument name="output" direction="O"><type>unsigned char *</type><description>Output Device-N pixels</description></argument>
<argument name="num_pixels" direction="I"><type>int</type><description>Number of pixels</description></argument>
</function>
<function name="cupsRGBLoad"><returnvalue><description>New color profile</description><type>cups_rgb_t
*</type></returnvalue>
<description>Load a RGB color profile from a PPD file.</description><argument
name="ppd" direction="I"><type>ppd_file_t *</type><description>PPD file</description></argument>
<argument name="colormodel" direction="I"><type>const char *</type><description>Color model</description></argument>
<argument name="media" direction="I"><type>const char *</type><description>Media type</description></argument>
<argument name="resolution" direction="I"><type>const char *</type><description>Resolution</description></argument>
</function>
<function name="cupsRGBNew"><returnvalue><description>New color separation or NULL</description><type>cups_rgb_t
*</type></returnvalue>
<description>Create a new RGB color separation.</description><argument
name="num_samples" direction="I"><type>int</type><description>Number of samples</description></argument>
<argument name="samples" direction="I"><type>cups_sample_t *</type><description>Samples</description></argument>
<argument name="cube_size" direction="I"><type>int</type><description>Size of LUT cube</description></argument>
<argument name="num_channels" direction="I"><type>int</type><description>Number of color components</description></argument>
</function>
<struct name="cups_cmyk_s"><description>Simple CMYK lookup table</description><variable
name="black_lut[256]"><type>unsigned char</type><description>Black generation LUT</description></variable>
<variable name="channels[CUPS_MAX_CHAN]"><type>short *</type><description>Lookup tables</description></variable>
<variable name="color_lut[256]"><type>unsigned char</type><description>Color removal LUT</description></variable>
<variable name="ink_limit"><type>int</type><description>Ink limit</description></variable>
<variable name="num_channels"><type>int</type><description>Number of components</description></variable>
</struct>
<typedef name="cups_cmyk_t"><description>Simple CMYK lookup table</description><type>struct
cups_cmyk_s</type></typedef>
<struct name="cups_dither_s"><description>Dithering State</description><variable
name="errors[96]"><type>int</type><description>Error values</description></variable>
<variable name="row"><type>int</type><description>Current row</description></variable>
<variable name="width"><type>int</type><description>Width of buffer</description></variable>
</struct>
<typedef name="cups_dither_t"><description>Dithering State</description><type>struct
cups_dither_s</type></typedef>
<struct name="cups_lut_s"><description>Lookup Table for Dithering</description><variable
name="error"><type>int</type><description>Error from desired value</description></variable>
<variable name="intensity"><type>short</type><description>Adjusted intensity</description></variable>
<variable name="pixel"><type>short</type><description>Output pixel value</description></variable>
</struct>
<typedef name="cups_lut_t"><description>Lookup Table for Dithering</description><type>struct
cups_lut_s</type></typedef>
<struct name="cups_rgb_s"><description>Color separation lookup table</description><variable
name="black[CUPS_MAX_RGB]"><type>unsigned char</type><description>Cached black (sRGB = 0,0,0)</description></variable>
<variable name="cache_init"><type>int</type><description>Are cached values initialized?</description></variable>
<variable name="colors"><type>unsigned char ****</type><description>4-D array of sample values</description></variable>
<variable name="cube_index[256]"><type>int</type><description>Index into cube for a given sRGB value</description></variable>
<variable name="cube_mult[256]"><type>int</type><description>Multiplier value for a given sRGB value</description></variable>
<variable name="cube_size"><type>int</type><description>Size of color cube (2-N) on a side</description></variable>
<variable name="num_channels"><type>int</type><description>Number of colors per sample</description></variable>
<variable name="white[CUPS_MAX_RGB]"><type>unsigned char</type><description>Cached white (sRGB = 255,255,255)</description></variable>
</struct>
<typedef name="cups_rgb_t"><description>Color separation lookup table</description><type>struct
cups_rgb_s</type></typedef>
<struct name="cups_sample_s"><description>Color sample point</description><variable
name="colors[CUPS_MAX_RGB]"><type>unsigned char</type><description>Color values</description></variable>
<variable name="rgb[3]"><type>unsigned char</type><description>sRGB values</description></variable>
</struct>
<typedef name="cups_sample_t"><description>Color sample point</description><type>struct
cups_sample_s</type></typedef>
<variable name="cups_scmy_lut[256]"><type>extern const unsigned char</type><description>sRGB gamma lookup table (inverted)</description><description>Prototypes...</description><description>Attribute function...</description><description>Byte checking functions...</description><description>Dithering functions...</description><description>Lookup table functions for dithering...</description><description>Bit packing functions...</description><description>Color separation functions...</description><description>CMYK separation functions...</description><description>Convenience macro for writing print data...</description></variable>
<variable name="cups_srgb_lut[256]"><type>extern const unsigned char</type><description>sRGB gamma lookup table</description></variable>