Home
last modified time | relevance | path

Searched refs:pdevc (Results 1 – 25 of 39) sorted by relevance

12

/plan9/sys/src/cmd/gs/src/
H A Dgxhldevc.c66 gx_hld_save_color(const gs_imager_state * pis, const gx_device_color * pdevc, in gx_hld_save_color() argument
72 if (pdevc == NULL) { in gx_hld_save_color()
79 pdevc->type->save_dc(pdevc, &(psc->saved_dev_color)); in gx_hld_save_color()
92 pdevc->type->save_dc(pdevc, &(psc->saved_dev_color)); in gx_hld_save_color()
95 psc->ccolor.paint.values[i] = pdevc->ccolor.paint.values[i]; in gx_hld_save_color()
98 if ((pdevc->type == gx_dc_type_pattern in gx_hld_save_color()
99 || pdevc->type == gx_dc_type_pattern2) && pdevc->ccolor_valid) in gx_hld_save_color()
100 psc->pattern_id = pdevc->ccolor.pattern->pattern_id; in gx_hld_save_color()
140 const gx_device_color * pdevc) in gx_hld_is_hl_color_available() argument
144 if (pgs != NULL && pdevc != NULL && pdevc->ccolor_valid) in gx_hld_is_hl_color_available()
[all …]
H A Dgxdcolor.h95 void proc(const gx_device_color * pdevc, gx_device_color_saved * psdc)
99 const gx_device_halftone * proc(const gx_device_color * pdevc)
103 bool proc(const gx_device_color * pdevc, gs_int_point * pphase)
112 int proc(gx_device_color *pdevc, const gs_imager_state *pis,\
123 int proc(const gx_device_color *pdevc, int x, int y, int w, int h,\
135 int proc(const gx_device_color *pdevc, const byte *data, int data_x,\
208 int proc(const gx_device_color *pdevc, const gx_device_color_saved *psdc,\
213 int proc(gx_device_color *pdevc, const gs_imager_state * pis,\
238 int proc(const gx_device_color * pdevc, const gx_device * dev,\
302 #define gx_color_load_select(pdevc, pis, dev, select)\ argument
[all …]
H A Dgxdcolor.c191 gx_get_dc_type_index(const gx_device_color * pdevc) in gx_get_dc_type_index() argument
193 const gx_device_color_type_t * type = pdevc->type; in gx_get_dc_type_index()
216 gx_dc_no_get_phase(const gx_device_color * pdevc, gs_int_point * pphase) in gx_dc_no_get_phase() argument
222 gx_dc_ht_get_phase(const gx_device_color * pdevc, gs_int_point * pphase) in gx_dc_ht_get_phase() argument
224 *pphase = pdevc->phase; in gx_dc_ht_get_phase()
230 gx_dc_no_save_dc(const gx_device_color * pdevc, gx_device_color_saved * psdc) in gx_dc_no_save_dc() argument
232 psdc->type = pdevc->type; in gx_dc_no_save_dc()
236 gx_dc_no_get_dev_halftone(const gx_device_color * pdevc) in gx_dc_no_get_dev_halftone() argument
242 gx_dc_no_load(gx_device_color *pdevc, const gs_imager_state *ignore_pis, in gx_dc_no_load() argument
249 gx_dc_no_fill_rectangle(const gx_device_color *pdevc, int x, int y, in gx_dc_no_fill_rectangle() argument
[all …]
H A Dgxdevndi.c96 gx_device_color * pdevc, gx_device * dev, in gx_render_device_DeviceN_wts() argument
108 pdevc->type = gx_dc_type_wts; in gx_render_device_DeviceN_wts()
109 pdevc->colors.wts.w_ht = pdht; in gx_render_device_DeviceN_wts()
113 pdevc->colors.wts.plane_vector[1] = in gx_render_device_DeviceN_wts()
117 pdevc->colors.wts.levels[i] = pcolor[i]; in gx_render_device_DeviceN_wts()
119 pdevc->colors.wts.plane_vector[i] = in gx_render_device_DeviceN_wts()
123 pdevc->colors.wts.num_components = num_comp; in gx_render_device_DeviceN_wts()
140 gx_device_color * pdevc, gx_device * dev, in gx_render_device_DeviceN() argument
152 return gx_render_device_DeviceN_wts(pcolor, pdevc, dev, pdht, in gx_render_device_DeviceN()
189 color_set_pure(pdevc, dev_proc(dev, encode_color)(dev, vcolor)); in gx_render_device_DeviceN()
[all …]
H A Dgxht.c267 gx_dc_ht_binary_save_dc(const gx_device_color * pdevc, in gx_dc_ht_binary_save_dc() argument
270 psdc->type = pdevc->type; in gx_dc_ht_binary_save_dc()
271 psdc->colors.binary.b_color[0] = pdevc->colors.binary.color[0]; in gx_dc_ht_binary_save_dc()
272 psdc->colors.binary.b_color[1] = pdevc->colors.binary.color[1]; in gx_dc_ht_binary_save_dc()
273 psdc->colors.binary.b_level = pdevc->colors.binary.b_level; in gx_dc_ht_binary_save_dc()
274 psdc->colors.binary.b_index = pdevc->colors.binary.b_index; in gx_dc_ht_binary_save_dc()
275 psdc->phase = pdevc->phase; in gx_dc_ht_binary_save_dc()
280 gx_dc_ht_binary_get_dev_halftone(const gx_device_color * pdevc) in gx_dc_ht_binary_get_dev_halftone() argument
282 return pdevc->colors.binary.b_ht; in gx_dc_ht_binary_get_dev_halftone()
287 gx_dc_ht_binary_load(gx_device_color * pdevc, const gs_imager_state * pis, in gx_dc_ht_binary_load() argument
[all …]
H A Dgsptype2.c155 gx_dc_is_pattern2_color(const gx_device_color *pdevc) in gx_dc_is_pattern2_color() argument
157 return pdevc->type == &gx_dc_pattern2; in gx_dc_is_pattern2_color()
165 gx_dc_pattern2_get_dev_halftone(const gx_device_color * pdevc) in gx_dc_pattern2_get_dev_halftone() argument
167 return ((gs_pattern2_instance_t *)pdevc->ccolor.pattern)->saved->dev_ht; in gx_dc_pattern2_get_dev_halftone()
172 gx_dc_pattern2_load(gx_device_color *pdevc, const gs_imager_state *ignore_pis, in gx_dc_pattern2_load() argument
212 gx_dc_pattern2_fill_path(const gx_device_color * pdevc, in gx_dc_pattern2_fill_path() argument
217 (gs_pattern2_instance_t *)pdevc->ccolor.pattern; in gx_dc_pattern2_fill_path()
225 gx_dc_pattern2_fill_rectangle(const gx_device_color * pdevc, int x, int y, in gx_dc_pattern2_fill_rectangle() argument
235 return gx_dc_pattern2_fill_path(pdevc, NULL, &rect, dev); in gx_dc_pattern2_fill_rectangle()
257 const gx_device_color * pdevc, in gx_dc_pattern2_save_dc() argument
[all …]
H A Dgxwts.c215 gx_dc_wts_save_dc(const gx_device_color * pdevc, gx_device_color_saved * psdc) in gx_dc_wts_save_dc() argument
217 psdc->type = pdevc->type; in gx_dc_wts_save_dc()
219 pdevc->colors.wts.levels, in gx_dc_wts_save_dc()
221 psdc->phase = pdevc->phase; in gx_dc_wts_save_dc()
225 gx_dc_wts_get_dev_halftone(const gx_device_color * pdevc) in gx_dc_wts_get_dev_halftone() argument
227 return pdevc->colors.wts.w_ht; in gx_dc_wts_get_dev_halftone()
231 gx_dc_wts_load(gx_device_color *pdevc, const gs_imager_state * pis, in gx_dc_wts_load() argument
302 gx_dc_wts_fill_rectangle_1(const gx_device_color *pdevc, in gx_dc_wts_fill_rectangle_1() argument
312 gx_ht_order_component *components = pdevc->colors.wts.w_ht->components; in gx_dc_wts_fill_rectangle_1()
314 wts_screen_sample_t shade = pdevc->colors.wts.levels[0]; in gx_dc_wts_fill_rectangle_1()
[all …]
H A Dgxp1fill.c38 const gx_device_color *pdevc; /* pattern color */ member
64 tile_fill_init(tile_fill_state_t * ptfs, const gx_device_color * pdevc, in tile_fill_init() argument
67 gx_color_tile *m_tile = pdevc->mask.m_tile; in tile_fill_init()
70 ptfs->pdevc = pdevc; in tile_fill_init()
73 ptfs->phase = pdevc->phase; in tile_fill_init()
78 ptfs->phase.x = pdevc->mask.m_phase.x; in tile_fill_init()
79 ptfs->phase.y = pdevc->mask.m_phase.y; in tile_fill_init()
199 gx_color_tile *ptile = ptfs->pdevc->colors.pattern.p_tile; in tile_colored_fill()
242 gx_dc_pattern_fill_rectangle(const gx_device_color * pdevc, int x, int y, in gx_dc_pattern_fill_rectangle() argument
247 gx_color_tile *ptile = pdevc->colors.pattern.p_tile; in gx_dc_pattern_fill_rectangle()
[all …]
H A Dgsptype2.h91 bool gx_dc_is_pattern2_color(const gx_device_color *pdevc);
94 int gx_dc_pattern2_fill_path(const gx_device_color * pdevc,
106 int gx_dc_pattern2_get_bbox(const gx_device_color * pdevc, gs_fixed_rect *bbox);
109 bool gx_dc_pattern2_can_overlap(const gx_device_color *pdevc);
112 bool gx_dc_pattern2_has_background(const gx_device_color *pdevc);
H A Dgxcht.c79 gx_dc_ht_colored_save_dc(const gx_device_color * pdevc, in gx_dc_ht_colored_save_dc() argument
82 psdc->type = pdevc->type; in gx_dc_ht_colored_save_dc()
84 pdevc->colors.colored.c_base, in gx_dc_ht_colored_save_dc()
87 pdevc->colors.colored.c_level, in gx_dc_ht_colored_save_dc()
89 psdc->colors.colored.alpha = pdevc->colors.colored.alpha; in gx_dc_ht_colored_save_dc()
90 psdc->phase = pdevc->phase; in gx_dc_ht_colored_save_dc()
95 gx_dc_ht_colored_get_dev_halftone(const gx_device_color * pdevc) in gx_dc_ht_colored_get_dev_halftone() argument
97 return pdevc->colors.colored.c_ht; in gx_dc_ht_colored_get_dev_halftone()
189 const gx_device_color * pdevc, in gx_dc_ht_colored_write() argument
199 gx_color_index plane_mask = pdevc->colors.colored.plane_mask; in gx_dc_ht_colored_write()
[all …]
H A Dgximono.c97 gx_device_color *pdevc = &penum->icolor1; /* color for masking */ in image_render_mono() local
110 pdevc = &penum->clues[sample_value].dev_color;\ in image_render_mono()
111 if (!color_is_set(pdevc)) {\ in image_render_mono()
113 color_set_null(pdevc);\ in image_render_mono()
116 code = (*remap_color)(&cc, pcs, pdevc, pis, dev, gs_color_select_source);\ in image_render_mono()
120 } else if (!color_is_pure(pdevc)) {\ in image_render_mono()
122 code = gx_color_load_select(pdevc, pis, dev, gs_color_select_source);\ in image_render_mono()
189 pdevc = &penum->icolor1; in image_render_mono()
190 code = gx_color_load(pdevc, pis, dev); in image_render_mono()
249 pdevc, lop); in image_render_mono()
[all …]
H A Dgxhldevc.h102 const gx_device_color * pdevc, gx_hl_saved_color * psc);
123 const gx_device_color * pdevc);
162 const gs_imager_state * pis, const gx_device_color * pdevc,
192 const gs_imager_state * pis, const gx_device_color * pdevc,
H A Dgsptype1.c994 const gx_device_color * pdevc, in gx_dc_pattern_save_dc() argument
997 psdc->type = pdevc->type; in gx_dc_pattern_save_dc()
998 if (pdevc->ccolor_valid) { in gx_dc_pattern_save_dc()
999 psdc->colors.pattern.id = pdevc->ccolor.pattern->pattern_id; in gx_dc_pattern_save_dc()
1000 psdc->colors.pattern.phase = pdevc->phase; in gx_dc_pattern_save_dc()
1016 gx_dc_pattern_get_dev_halftone(const gx_device_color * pdevc) in gx_dc_pattern_get_dev_halftone() argument
1027 gx_dc_pure_masked_get_dev_halftone(const gx_device_color * pdevc) in gx_dc_pure_masked_get_dev_halftone() argument
1033 gx_dc_binary_masked_get_dev_halftone(const gx_device_color * pdevc) in gx_dc_binary_masked_get_dev_halftone() argument
1035 return pdevc->colors.binary.b_ht; in gx_dc_binary_masked_get_dev_halftone()
1039 gx_dc_colored_masked_get_dev_halftone(const gx_device_color * pdevc) in gx_dc_colored_masked_get_dev_halftone() argument
[all …]
H A Dgxpaint.h51 int gx_fill_path(gx_path * ppath, gx_device_color * pdevc, gs_state * pgs,
105 #define gx_fill_path_only(ppath, dev, pis, params, pdevc, pcpath)\ argument
106 (*dev_proc(dev, fill_path))(dev, pis, ppath, params, pdevc, pcpath)
120 const gx_device_color * pdevc,
H A Dgdevddrw.c418 const gx_device_color * pdevc, gs_logical_operation_t lop) in gx_default_fill_trapezoid() argument
420 bool fill_direct = color_writes_pure(pdevc, lop); in gx_default_fill_trapezoid()
424 return gx_fill_trapezoid_as_fd(dev, left, right, ybot, ytop, 0, pdevc, lop); in gx_default_fill_trapezoid()
426 return gx_fill_trapezoid_as_nd(dev, left, right, ybot, ytop, 0, pdevc, lop); in gx_default_fill_trapezoid()
429 return gx_fill_trapezoid_ns_fd(dev, left, right, ybot, ytop, 0, pdevc, lop); in gx_default_fill_trapezoid()
431 return gx_fill_trapezoid_ns_nd(dev, left, right, ybot, ytop, 0, pdevc, lop); in gx_default_fill_trapezoid()
589 const gx_device_color * pdevc, gs_logical_operation_t lop) in gx_default_fill_parallelogram() argument
603 r.q.y - r.p.y, pdevc, dev, lop); in gx_default_fill_parallelogram()
644 false, pdevc, lop); in gx_default_fill_parallelogram()
653 false, pdevc, lop); in gx_default_fill_parallelogram()
[all …]
H A Dgxdither.h40 int gx_render_device_DeviceN(frac * pcolor, gx_device_color * pdevc,
46 int gx_devn_reduce_colored_halftone(gx_device_color *pdevc, gx_device *dev);
H A Dgdevddrw.h31 const gx_device_color * pdevc, gs_logical_operation_t lop);
34 const gx_device_color * pdevc, gs_logical_operation_t lop);
H A Dgdevbbox.c233 #define GX_DC_IS_TRANSPARENT(pdevc, bdev)\ argument
234 (gx_dc_pure_color(pdevc) == (bdev)->transparent && gx_dc_is_pure(pdevc))
601 const gx_device_color * pdevc, gs_logical_operation_t lop) in bbox_fill_trapezoid() argument
609 (tdev, left, right, ybot, ytop, swap_axes, pdevc, lop)); in bbox_fill_trapezoid()
611 if (!GX_DC_IS_TRANSPARENT(pdevc, bdev)) { in bbox_fill_trapezoid()
639 fixed bx, fixed by, const gx_device_color * pdevc, in bbox_fill_parallelogram() argument
648 (tdev, px, py, ax, ay, bx, by, pdevc, lop)); in bbox_fill_parallelogram()
650 if (!GX_DC_IS_TRANSPARENT(pdevc, bdev)) { in bbox_fill_parallelogram()
677 const gx_device_color * pdevc, gs_logical_operation_t lop) in bbox_fill_triangle() argument
685 (tdev, px, py, ax, ay, bx, by, pdevc, lop)); in bbox_fill_triangle()
[all …]
H A Dgxicolor.c131 #define pdevc (&pic->dev_color) in image_render_color() macro
362 if (dev_color_eq(*pdevc, *pdevc_next)) in image_render_color()
382 pdevc, dev, lop); in image_render_color()
394 pdevc, dev, lop); in image_render_color()
401 pdevc, lop); in image_render_color()
444 pdevc, dev, lop); in image_render_color()
456 pdevc, dev, lop); in image_render_color()
463 pdevc, lop); in image_render_color()
H A Dgxi16bit.c125 gx_device_color *pdevc = &devc1; in image_render_frac() local
279 pdevc, lop); in image_render_frac()
287 wi, iht, pdevc, dev, lop); in image_render_frac()
294 ptemp = pdevc; in image_render_frac()
295 pdevc = pdevc_next; in image_render_frac()
307 (dev, xrun, yrun, xl - xrun, ytf - yrun, pdyx, pdyy, pdevc, lop); in image_render_frac()
H A Dgdevplnx.c153 const gx_drawing_color *pdevc, in reduce_drawing_color() argument
158 if (gx_dc_is_pure(pdevc)) { in reduce_drawing_color()
159 gx_color_index pixel = COLOR_PIXEL(edev, gx_dc_pure_color(pdevc)); in reduce_drawing_color()
163 } else if (gx_dc_is_binary_halftone(pdevc)) { in reduce_drawing_color()
165 TRANS_COLOR_PIXEL(edev, gx_dc_binary_color0(pdevc)); in reduce_drawing_color()
167 TRANS_COLOR_PIXEL(edev, gx_dc_binary_color1(pdevc)); in reduce_drawing_color()
173 *ppdc = *pdevc; in reduce_drawing_color()
179 } else if (color_is_colored_halftone(pdevc)) { in reduce_drawing_color()
183 *ppdc = *pdevc; in reduce_drawing_color()
229 if (gx_dc_pure_color(pdevc) != white) in reduce_drawing_color()
[all …]
H A Dgxi12bit.c182 gx_device_color *pdevc = &devc1; in image_render_frac() local
336 pdevc, lop); in image_render_frac()
344 wi, iht, pdevc, dev, lop); in image_render_frac()
351 ptemp = pdevc; in image_render_frac()
352 pdevc = pdevc_next; in image_render_frac()
364 (dev, xrun, yrun, xl - xrun, ytf - yrun, pdyx, pdyy, pdevc, lop); in image_render_frac()
H A Dgdevvec.c1053 const gx_device_color * pdevc, const gx_clip_path * pcpath) in gdev_vector_fill_path() argument
1057 if ((code = gdev_vector_prepare_fill(vdev, pis, params, pdevc)) < 0 || in gdev_vector_fill_path()
1062 pdevc, pcpath)) < 0) || in gdev_vector_fill_path()
1070 return gx_default_fill_path(dev, pis, ppath, params, pdevc, pcpath); in gdev_vector_fill_path()
1101 const gx_device_color * pdevc, gs_logical_operation_t lop) in gdev_vector_fill_trapezoid() argument
1118 int code = update_fill(vdev, NULL, pdevc, lop); in gdev_vector_fill_trapezoid()
1123 swap_axes, pdevc, lop); in gdev_vector_fill_trapezoid()
1143 swap_axes, pdevc, lop); in gdev_vector_fill_trapezoid()
1155 const gx_device_color * pdevc, gs_logical_operation_t lop) in gdev_vector_fill_parallelogram() argument
1158 int code = update_fill(vdev, NULL, pdevc, lop); in gdev_vector_fill_parallelogram()
[all …]
H A Dgxfill.h96 const gx_device_color * pdevc; member
153 (fo)->fill_rect((fo)->dev, x, y, w, h, (fo)->pdevc->colors.pure) :\
154 gx_fill_rectangle_device_rop(x, y, w, h, (fo)->pdevc, (fo)->dev, (fo)->lop))
H A Dgxpaint.c37 gx_fill_path(gx_path * ppath, gx_device_color * pdevc, gs_state * pgs, in gx_fill_path() argument
53 (dev, (const gs_imager_state *)pgs, ppath, &params, pdevc, pcpath); in gx_fill_path()

12