Home
last modified time | relevance | path

Searched refs:pcpath (Results 1 – 25 of 58) sorted by relevance

123

/plan9/sys/src/cmd/gs/src/
H A Dgxcpath.c108 cpath_init_rectangle(gx_clip_path * pcpath, gs_fixed_rect * pbox) in cpath_init_rectangle() argument
110 gx_clip_list_from_rectangle(&pcpath->rect_list->list, pbox); in cpath_init_rectangle()
111 pcpath->inner_box = *pbox; in cpath_init_rectangle()
112 pcpath->path_valid = false; in cpath_init_rectangle()
113 pcpath->path.bbox = *pbox; in cpath_init_rectangle()
114 gx_cpath_set_outer_box(pcpath); in cpath_init_rectangle()
115 pcpath->id = gs_next_ids(pcpath->path.memory, 1); /* path changed => change id */ in cpath_init_rectangle()
118 cpath_init_own_contents(gx_clip_path * pcpath) in cpath_init_own_contents() argument
123 cpath_init_rectangle(pcpath, &null_rect); in cpath_init_own_contents()
124 pcpath->path_list = NULL; in cpath_init_own_contents()
[all …]
H A Dgsdps.c36 gx_clip_path *pcpath = pgs->view_clip; in gs_initviewclip() local
38 if (pcpath != 0 && pcpath->rule != 0) { in gs_initviewclip()
39 gx_cpath_reset(pcpath); in gs_initviewclip()
40 pcpath->rule = 0; in gs_initviewclip()
65 gx_clip_path *pcpath = pgs->view_clip; in common_viewclip() local
67 if (pcpath == 0) { in common_viewclip()
68 pcpath = gx_cpath_alloc(pgs->memory, "gs_[eo]viewclip"); in common_viewclip()
69 if (pcpath == 0) in common_viewclip()
71 pgs->view_clip = pcpath; in common_viewclip()
84 gx_cpath_assign_free(pcpath, &rpath); in common_viewclip()
[all …]
H A Dgxpaint.c41 gx_clip_path *pcpath; in gx_fill_path() local
42 int code = gx_effective_clip_path(pgs, &pcpath); in gx_fill_path()
53 (dev, (const gs_imager_state *)pgs, ppath, &params, pdevc, pcpath); in gx_fill_path()
61 gx_clip_path *pcpath; in gx_stroke_fill() local
62 int code = gx_effective_clip_path(pgs, &pcpath); in gx_stroke_fill()
70 pgs->dev_color, pcpath); in gx_stroke_fill()
H A Dgsclipsr.c43 gx_clip_path *pcpath = stack->clip_path; in rc_free_clip_stack() local
47 gx_cpath_free(pcpath, "rc_free_clip_stack"); in rc_free_clip_stack()
82 gx_clip_path *pcpath = stack->clip_path; in gs_cliprestore() local
88 code = gx_cpath_assign_free(pgs->clip_path, pcpath); in gs_cliprestore()
90 code = gx_cpath_assign_preserve(pgs->clip_path, pcpath); in gs_cliprestore()
H A Dgdevpdfd.c210 pdf_remember_clip_path(gx_device_pdf * pdev, const gx_clip_path * pcpath) in pdf_remember_clip_path() argument
216 if (pcpath == 0) { in pdf_remember_clip_path()
223 return gx_cpath_to_path((gx_clip_path *)pcpath, pdev->clip_path); in pdf_remember_clip_path()
228 pdf_is_same_clip_path(gx_device_pdf * pdev, const gx_clip_path * pcpath) in pdf_is_same_clip_path() argument
236 if ((pdev->clip_path != 0) != (pcpath != 0)) in pdf_is_same_clip_path()
241 code = gx_cpath_enum_init(&cenum, (gx_clip_path *)pcpath); in pdf_is_same_clip_path()
271 pdf_must_put_clip_path(gx_device_pdf * pdev, const gx_clip_path * pcpath) in pdf_must_put_clip_path() argument
273 if (pcpath == NULL) { in pdf_must_put_clip_path()
277 if (pdev->clip_path_id == pcpath->id) in pdf_must_put_clip_path()
279 if (gx_cpath_includes_rectangle(pcpath, fixed_0, fixed_0, in pdf_must_put_clip_path()
[all …]
H A Dgxpath.h300 int gx_cpath_init_contained_shared(gx_clip_path * pcpath,
305 #define gx_cpath_alloc_contained(pcpath, mem, cname)\ argument
306 gx_cpath_init_contained_shared(pcpath, NULL, mem, cname)
307 int gx_cpath_init_local_shared(gx_clip_path * pcpath,
311 #define gx_cpath_init_local(pcpath, mem)\ argument
312 (void)gx_cpath_init_local_shared(pcpath, NULL, mem) /* can't fail */
313 int gx_cpath_unshare(gx_clip_path * pcpath);
314 void gx_cpath_free(gx_clip_path * pcpath, client_name_t cname);
326 gx_cpath_scale_exp2_shared(gx_clip_path *pcpath, int log2_scale_x,
335 const gs_fixed_rect *cpath_is_rectangle(const gx_clip_path * pcpath);
H A Dgdevbbox.c752 const gx_clip_path * pcpath) in bbox_fill_path() argument
776 return fill_path(tdev, pis, ppath, params, pdevc, pcpath); in bbox_fill_path()
782 return fill_path(dev, pis, ppath, params, pdevc, pcpath); in bbox_fill_path()
784 code = fill_path(tdev, pis, ppath, params, pdevc, pcpath); in bbox_fill_path()
787 if (pcpath != NULL && in bbox_fill_path()
788 !gx_cpath_includes_rectangle(pcpath, ibox.p.x, ibox.p.y, in bbox_fill_path()
799 code = gx_default_fill_path(dev, pis, ppath, params, &devc, pcpath); in bbox_fill_path()
806 return fill_path(tdev, pis, ppath, params, pdevc, pcpath); in bbox_fill_path()
812 const gx_drawing_color * pdevc, const gx_clip_path * pcpath) in bbox_stroke_path() argument
819 dev_proc(tdev, stroke_path)(tdev, pis, ppath, params, pdevc, pcpath)); in bbox_stroke_path()
[all …]
H A Dgdevtrac.c123 trace_clip(gx_device *dev, const gx_clip_path *pcpath) in trace_clip() argument
125 if (pcpath == 0) in trace_clip()
127 if (gx_cpath_includes_rectangle(pcpath, fixed_0, fixed_0, in trace_clip()
133 if (pcpath->path_valid) in trace_clip()
134 trace_path(&pcpath->path); in trace_clip()
189 gs_logical_operation_t lop, const gx_clip_path * pcpath) in trace_fill_mask() argument
196 trace_clip(dev, pcpath); in trace_fill_mask()
291 const gx_clip_path * pcpath) in trace_fill_path() argument
300 trace_clip(dev, pcpath); in trace_fill_path()
310 const gx_clip_path * pcpath) in trace_stroke_path() argument
[all …]
H A Dgxpaint.h105 #define gx_fill_path_only(ppath, dev, pis, params, pdevc, pcpath)\ argument
106 (*dev_proc(dev, fill_path))(dev, pis, ppath, params, pdevc, pcpath)
121 const gx_clip_path * pcpath);
H A Dgxclpath.c214 cmd_check_clip_path(gx_device_clist_writer * cldev, const gx_clip_path * pcpath) in cmd_check_clip_path() argument
216 if (pcpath == NULL) in cmd_check_clip_path()
220 cldev->clip_path = pcpath; in cmd_check_clip_path()
221 if (pcpath->id == cldev->clip_path_id) in cmd_check_clip_path()
223 cldev->clip_path_id = pcpath->id; in cmd_check_clip_path()
237 const gx_clip_path *pcpath, uint *punknown) in cmd_check_fill_known() argument
288 if (cmd_check_clip_path(cdev, pcpath)) in cmd_check_fill_known()
435 const gx_clip_path *pcpath = cldev->clip_path; in cmd_write_unknown() local
446 if (pcpath->path_valid) { in cmd_write_unknown()
447 if (gx_path_is_rectangle(&pcpath->path, &box) && in cmd_write_unknown()
[all …]
H A Dgdevvec.c733 const gx_clip_path * pcpath) in gdev_vector_write_clip_path() argument
739 if (pcpath == 0) { in gdev_vector_write_clip_path()
747 } else if (pcpath->path_valid) { in gdev_vector_write_clip_path()
749 (vdev, &pcpath->path, in gdev_vector_write_clip_path()
750 (pcpath->rule <= 0 ? in gdev_vector_write_clip_path()
755 const gx_clip_list *list = gx_cpath_list(pcpath); in gdev_vector_write_clip_path()
777 const gx_clip_path * pcpath) in gdev_vector_update_clip_path() argument
779 if (pcpath) { in gdev_vector_update_clip_path()
780 if (pcpath->id != vdev->clip_path_id) { in gdev_vector_update_clip_path()
781 int code = gdev_vector_write_clip_path(vdev, pcpath); in gdev_vector_update_clip_path()
[all …]
H A Dgximage3.h55 const gx_clip_path *pcpath, gs_memory_t *mem,\
73 const gx_clip_path *pcpath, gs_memory_t *mem,
H A Dgximag3x.h55 const gx_clip_path *pcpath, gs_memory_t *mem,\
74 const gx_clip_path *pcpath, gs_memory_t *mem,
H A Dgzcpath.h89 #define gx_cpath_is_shared(pcpath)\ argument
90 ((pcpath)->rect_list->rc.ref_count > 1)
H A Dgstext.c98 ENUM_PTR3(5, gs_text_enum_t, pdcolor, pcpath, current_font);
109 RELOC_PTR3(gs_text_enum_t, pdcolor, pcpath, current_font); in RELOC_PTRS_WITH()
124 const gx_clip_path * pcpath, /* DO_DRAW */ in gx_device_text_begin() argument
134 (text->operation & TEXT_DO_DRAW ? pcpath : 0); in gx_device_text_begin()
165 const gx_device_color *pdcolor, const gx_clip_path *pcpath, in gs_text_enum_init() argument
177 pte->pcpath = pcpath; in gs_text_enum_init()
223 gx_clip_path *pcpath = 0; in gs_text_begin() local
227 code = gx_effective_clip_path(pgs, &pcpath); in gs_text_begin()
242 pcpath, mem, ppte); in gs_text_begin()
H A Dgsdps1.c147 gx_clip_path *pcpath; in gs_rectfill() local
162 gx_effective_clip_path(pgs, &pcpath) >= 0 && in gs_rectfill()
163 clip_list_is_rectangle(gx_cpath_list(pcpath)) && in gs_rectfill()
177 gx_cpath_inner_box(pcpath, &clip_rect); in gs_rectfill()
196 &draw_rect, pis, pdc, pcpath); in gs_rectfill()
H A Dgdevpdfi.c256 const gx_clip_path * pcpath, gs_memory_t * mem, in pdf_begin_typed_image() argument
371 prect, pdcolor, pcpath, mem, in pdf_begin_typed_image()
387 prect, pdcolor, pcpath, mem, in pdf_begin_typed_image()
417 prect, &icolor, pcpath, mem, in pdf_begin_typed_image()
478 if (pdf_must_put_clip_path(pdev, pcpath)) in pdf_begin_typed_image()
498 code = pdf_put_clip_path(pdev, pcpath); in pdf_begin_typed_image()
702 ((gx_device *)pdev, pis, pmat, pic, prect, pdcolor, pcpath, mem, in pdf_begin_typed_image()
710 const gx_clip_path * pcpath, gs_memory_t * mem, in gdev_pdf_begin_typed_image() argument
714 pdcolor, pcpath, mem, pinfo, in gdev_pdf_begin_typed_image()
1069 const gx_clip_path * pcpath, gs_memory_t * mem, in pdf_mid_begin_typed_image() argument
[all …]
H A Dgxclimag.c51 const gx_clip_path *pcpath, /* May be NULL, clip to evaluate */
62 gs_logical_operation_t lop, const gx_clip_path * pcpath) in clist_fill_mask() argument
96 !check_rect_for_trivial_clip(pcpath, x, y, x + width, y + height)) || in clist_fill_mask()
103 lop, pcpath); in clist_fill_mask()
105 if (cmd_check_clip_path(cdev, pcpath)) in clist_fill_mask()
127 code = cmd_do_enable_clip(cdev, pcls, pcpath != NULL); in clist_fill_mask()
206 const gx_clip_path *pcpath; member
238 pis, pcpath, color_space.space);
291 const gx_drawing_color * pdcolor, const gx_clip_path * pcpath, in clist_begin_typed_image() argument
399 pie->pcpath = pcpath; in clist_begin_typed_image()
[all …]
H A Dgdevnfwd.c390 const gx_clip_path * pcpath) in gx_forward_fill_path() argument
398 return proc(tdev, pis, ppath, params, pdcolor, pcpath); in gx_forward_fill_path()
405 const gx_clip_path * pcpath) in gx_forward_stroke_path() argument
413 return proc(tdev, pis, ppath, params, pdcolor, pcpath); in gx_forward_stroke_path()
421 gs_logical_operation_t lop, const gx_clip_path * pcpath) in gx_forward_fill_mask() argument
430 lop, pcpath); in gx_forward_fill_mask()
497 const gx_clip_path * pcpath, in gx_forward_begin_image() argument
506 return proc(tdev, pis, pim, format, prect, pdcolor, pcpath, in gx_forward_begin_image()
562 const gx_clip_path * pcpath, in gx_forward_begin_typed_image() argument
572 return proc(tdev, pis, pmat, pim, prect, pdcolor, pcpath, in gx_forward_begin_typed_image()
[all …]
H A Dgdevps.c1284 const gx_device_color * pdevc, const gx_clip_path * pcpath) in psw_fill_path() argument
1290 gdev_vector_update_clip_path((gx_device_vector *)dev, pcpath); in psw_fill_path()
1291 return gdev_vector_fill_path(dev, pis, ppath, params, pdevc, pcpath); in psw_fill_path()
1296 const gx_device_color * pdcolor, const gx_clip_path * pcpath) in psw_stroke_path() argument
1307 gdev_vector_update_clip_path(vdev, pcpath); in psw_stroke_path()
1319 pcpath); in psw_stroke_path()
1321 gdev_vector_update_clip_path(vdev, pcpath); in psw_stroke_path()
1347 pdcolor, pcpath)); in psw_stroke_path()
1356 gs_logical_operation_t lop, const gx_clip_path * pcpath) in psw_fill_mask() argument
1370 gdev_vector_update_clip_path(vdev, pcpath) < 0 || in psw_fill_mask()
[all …]
H A Dgximage2.c108 const gx_drawing_color * pdcolor, const gx_clip_path * pcpath, in gx_begin_image2() argument
166 if ( pcpath == NULL || in gx_begin_image2()
167 gx_cpath_includes_rectangle(pcpath, in gx_begin_image2()
234 pdcolor, pcpath, mem, &info); in gx_begin_image2()
H A Dgxtext.h90 const gx_clip_path *pcpath; /* if DO_DRAW */\
171 const gx_clip_path *pcpath,
H A Dgximage4.c66 const gx_drawing_color * pdcolor, const gx_clip_path * pcpath, in gx_begin_image4() argument
106 code = gx_image_enum_begin(dev, pis, pmat, pic, pdcolor, pcpath, mem, in gx_begin_image4()
H A Dgxacpath.c122 gx_cpath_accum_end(const gx_device_cpath_accum * padev, gx_clip_path * pcpath) in gx_cpath_accum_end() argument
157 gx_cpath_assign_free(pcpath, &apath); in gx_cpath_accum_end()
170 gx_cpath_intersect_path_slow(gx_clip_path * pcpath, gx_path * ppath, in gx_cpath_intersect_path_slow() argument
179 gx_cpath_accum_begin(&adev, pcpath->path.memory); in gx_cpath_intersect_path_slow()
187 &params, &devc, pcpath); in gx_cpath_intersect_path_slow()
188 if (code < 0 || (code = gx_cpath_accum_end(&adev, pcpath)) < 0) in gx_cpath_intersect_path_slow()
H A Dgxccache.c297 gx_clip_path *pcpath; in gx_image_cached_char() local
303 code = gx_effective_clip_path(pgs, &pcpath); in gx_image_cached_char()
306 gx_make_clip_device(&cdev, gx_cpath_list(pcpath)); in gx_image_cached_char()
375 gx_clip_path *pcpath; in gx_image_cached_char() local
377 code = gx_effective_clip_path(pgs, &pcpath); in gx_image_cached_char()
381 x, y, w, h, pdevc, depth, pgs->log_op, pcpath); in gx_image_cached_char()

123