Home
last modified time | relevance | path

Searched refs:fixed2float (Results 1 – 25 of 53) sorted by relevance

123

/plan9/sys/src/cmd/gs/src/
H A Dgxpflat.c87 fixed2float(pc->p1.x - x0), fixed2float(pc->p1.y - y0), in gx_curve_log2_samples()
88 fixed2float(-x12), fixed2float(-y12), in gx_curve_log2_samples()
89 fixed2float(pc->pt.x - pc->p2.x), fixed2float(pc->pt.y - pc->p2.y)); in gx_curve_log2_samples()
91 fixed2float(d), fixed2float(fixed_flat)); in gx_curve_log2_samples()
212 fixed2float(this->x0), fixed2float(this->y0), in gx_flattened_iterator__init()
213 fixed2float(x1), fixed2float(y1)); in gx_flattened_iterator__init()
215 fixed2float(x2), fixed2float(y2), in gx_flattened_iterator__init()
216 fixed2float(this->x3), fixed2float(this->y3), this->k); in gx_flattened_iterator__init()
229 fixed2float(this->ax), fixed2float(this->bx), fixed2float(this->cx), in gx_flattened_iterator__init()
230 fixed2float(this->ay), fixed2float(this->by), fixed2float(this->cy)); in gx_flattened_iterator__init()
[all …]
H A Dgdevtrac.c99 dprintf2(" %g %g moveto\n", fixed2float(pts[0].x), in trace_path()
100 fixed2float(pts[0].y)); in trace_path()
103 dprintf2(" %g %g lineto\n", fixed2float(pts[0].x), in trace_path()
104 fixed2float(pts[0].y)); in trace_path()
107 dprintf6(" %g %g %g %g %g %g curveto\n", fixed2float(pts[0].x), in trace_path()
108 fixed2float(pts[0].y), fixed2float(pts[1].x), in trace_path()
109 fixed2float(pts[1].y), fixed2float(pts[2].x), in trace_path()
110 fixed2float(pts[2].y)); in trace_path()
220 fixed2float(px), fixed2float(py), fixed2float(ax), in trace_fill_parallelogram()
221 fixed2float(ay), fixed2float(bx), fixed2float(by)); in trace_fill_parallelogram()
[all …]
H A Dgspath1.c70 pt.x = fixed2float(path->position.x); in gx_setcurrentpoint_from_path()
71 pt.y = fixed2float(path->position.y); in gx_setcurrentpoint_from_path()
117 tan(fixed2float(anext - arc->angle) * in next_arc_curve()
122 gs_sincos_degrees(fixed2float(anext), &arc->sincos); in next_arc_curve()
220 ang1r = fixed2float(ang1 % fixed_360); in gs_imager_arc_add()
515 gx_setcurrentpoint(pgs, fixed2float(rpath.position.x), in gs_reversepath()
516 fixed2float(rpath.position.y)); in gs_reversepath()
517 pgs->subpath_start.x = fixed2float(rpath.segments->contents.subpath_current->pt.x); in gs_reversepath()
518 pgs->subpath_start.y = fixed2float(rpath.segments->contents.subpath_current->pt.y); in gs_reversepath()
551 dbox.p.x = fixed2float(fbox.p.x); in gs_upathbbox()
[all …]
H A Dgxclpath.c915 dprintf1(" %g", fixed2float(operands[j])); in cmd_put_segment()
1103 fixed2float(px), fixed2float(py), in cmd_put_path()
1104 fixed2float(ymin), fixed2float(ymax)); in cmd_put_path()
1151 fixed2float(out.x), fixed2float(out.y), in cmd_put_path()
1159 fixed2float(px), fixed2float(py)); in cmd_put_path()
1173 fixed2float(out.x), fixed2float(out.y), in cmd_put_path()
1190 fixed2float(px), fixed2float(py)); in cmd_put_path()
1201 fixed2float(px), fixed2float(py), side); in cmd_put_path()
1231 fixed2float(px), fixed2float(py)); in cmd_put_path()
1240 fixed2float(px), fixed2float(py)); in cmd_put_path()
[all …]
H A Dgxtype1.c203 fixed2float(pcis->lsb.x), fixed2float(pcis->lsb.y), in gs_type1_sbw()
204 fixed2float(pcis->width.x), fixed2float(pcis->width.y)); in gs_type1_sbw()
334 psbw[0] = fixed2float(pcis->lsb.x); in type1_cis_get_metrics()
335 psbw[1] = fixed2float(pcis->lsb.y); in type1_cis_get_metrics()
336 psbw[2] = fixed2float(pcis->width.x); in type1_cis_get_metrics()
337 psbw[3] = fixed2float(pcis->width.y); in type1_cis_get_metrics()
579 info->width[wmode].x = fixed2float(cis.width.x); in gs_type1_glyph_info()
580 info->width[wmode].y = fixed2float(cis.width.y); in gs_type1_glyph_info()
581 info->v.x = fixed2float(cis.lsb.x); in gs_type1_glyph_info()
582 info->v.y = fixed2float(cis.lsb.y); in gs_type1_glyph_info()
H A Dgscoord.c348 double fpx = fixed2float(px); in gx_translate_to_fixed()
350 double fpy = fixed2float(py); in gx_translate_to_fixed()
381 fixed2float(px), fixed2float(py)); in gx_translate_to_fixed()
387 gx_setcurrentpoint(pgs, fixed2float(pgs->ctm.tx_fixed), fixed2float(pgs->ctm.ty_fixed)); in gx_translate_to_fixed()
527 fixed2float(pmat->tx_fixed), in trace_matrix_fixed()
528 fixed2float(pmat->ty_fixed)); in trace_matrix_fixed()
H A Dgxstroke.c417 fixed2float(bbox.p.x), fixed2float(bbox.p.y), in gx_stroke_path_only_aux()
418 fixed2float(bbox.q.x), fixed2float(bbox.q.y)); in gx_stroke_path_only_aux()
904 fixed2float(pp1->x), fixed2float(pp1->y), in line_intersect()
905 fixed2float(pd1->x), fixed2float(pd1->y)); in line_intersect()
907 fixed2float(pp2->x), fixed2float(pp2->y), in line_intersect()
908 fixed2float(pd2->x), fixed2float(pd2->y)); in line_intersect()
924 fixed2float(pi->x), fixed2float(pi->y)); in line_intersect()
1365 fixed2float(plp->o.p.x), fixed2float(plp->o.p.y), in compute_caps()
1366 fixed2float(plp->e.p.x), fixed2float(plp->e.p.y)); in compute_caps()
1368 fixed2float(wx2), fixed2float(wy2), in compute_caps()
[all …]
H A Dgstype2.c208 (int)(csp - cstack), c, fixed2float(*csp)); in gs_type2_interpret()
580 to[i] = fixed2float(from[i]); in gs_type2_interpret()
643 double prod = fixed2float(csp[-1]) * *csp; in gs_type2_interpret()
653 *csp = float2fixed(sqrt(fixed2float(*csp))); in gs_type2_interpret()
715 gs_distance_transform(fixed2float(x_join), in gs_type2_interpret()
716 fixed2float(y_join), in gs_type2_interpret()
720 gs_distance_transform(fixed2float(x_end), in gs_type2_interpret()
721 fixed2float(y_end), in gs_type2_interpret()
735 if (fabs(flex_depth) < fixed2float(*csp)) { in gs_type2_interpret()
H A Dgxpath.c953 fixed2float(ppath->position.x), in gx_path_print()
954 fixed2float(ppath->position.y)); in gx_path_print()
956 fixed2float(ppath->bbox.p.x), fixed2float(ppath->bbox.p.y), in gx_path_print()
957 fixed2float(ppath->bbox.q.x), fixed2float(ppath->bbox.q.y), in gx_path_print()
972 double px = fixed2float(pseg->pt.x); in gx_print_segment()
973 double py = fixed2float(pseg->pt.y); in gx_print_segment()
990 out, fixed2float(pcur->p1.x), fixed2float(pcur->p1.y), in gx_print_segment()
991 fixed2float(pcur->p2.x), fixed2float(pcur->p2.y), px, py); in gx_print_segment()
H A Dgxipixel.c494 fixed2float(mtx), fixed2float(mty)); in gx_image_enum_begin()
497 fixed2float(cbox.p.x), fixed2float(cbox.p.y), in gx_image_enum_begin()
498 fixed2float(cbox.q.x), fixed2float(cbox.q.y), in gx_image_enum_begin()
499 fixed2float(obox.p.x), fixed2float(obox.p.y), in gx_image_enum_begin()
500 fixed2float(obox.q.x), fixed2float(obox.q.y), in gx_image_enum_begin()
H A Dgxfill.c138 fixed2float(alp->x_current), fixed2float(alp->x_next)); in print_active_line()
140 fixed2float(alp->start.x), fixed2float(alp->start.y), in print_active_line()
142 fixed2float(alp->end.x), fixed2float(alp->end.y)); in print_active_line()
156 fixed2float(xc)); in print_line_list()
158 dprintf1("/%g", fixed2float(xn)); in print_line_list()
275 fixed2float(adjust->x)); in gx_adjust_if_empty()
279 fixed2float(adjust->y)); in gx_adjust_if_empty()
345 fixed2float(adjust.x), fixed2float(adjust.y), in gx_general_fill_path()
346 fixed2float(ibox.p.x), fixed2float(ibox.p.y), in gx_general_fill_path()
347 fixed2float(ibox.q.x), fixed2float(ibox.q.y)); in gx_general_fill_path()
[all …]
H A Dgdevvec.c625 code = gs_point_transform_inverse(fixed2float(vs[0].x), in gdev_vector_dopath_segment()
626 fixed2float(vs[0].y), pmat, &vp[0]); in gdev_vector_dopath_segment()
637 code = gs_point_transform_inverse(fixed2float(vs[0].x), in gdev_vector_dopath_segment()
638 fixed2float(vs[0].y), pmat, &vp[0]); in gdev_vector_dopath_segment()
647 code = gs_point_transform_inverse(fixed2float(vs[0].x), in gdev_vector_dopath_segment()
648 fixed2float(vs[0].y), pmat, &vp[0]); in gdev_vector_dopath_segment()
651 code = gs_point_transform_inverse(fixed2float(vs[1].x), in gdev_vector_dopath_segment()
652 fixed2float(vs[1].y), pmat, &vp[1]); in gdev_vector_dopath_segment()
655 gs_point_transform_inverse(fixed2float(vs[2].x), in gdev_vector_dopath_segment()
656 fixed2float(vs[2].y), pmat, &vp[2]); in gdev_vector_dopath_segment()
[all …]
H A Dgspath.c79 ppt->xy = (xy > fixed2float(max_coord_fixed) ? max_coord_fixed :\ in clamp_point()
80 xy < fixed2float(min_coord_fixed) ? min_coord_fixed :\ in clamp_point()
105 pt->x = fixed2float(p.x); in gs_point_transform_compat()
106 pt->y = fixed2float(p.y); in gs_point_transform_compat()
122 pt->x = fixed2float(p.x); in gs_distance_transform_compat()
123 pt->y = fixed2float(p.y); in gs_distance_transform_compat()
H A Dgsdps1.c70 if (dbox.p.x < fixed2float(min_fixed + box_rounding_slop_fixed) || in gs_setbbox()
71 dbox.p.y < fixed2float(min_fixed + box_rounding_slop_fixed) || in gs_setbbox()
72 dbox.q.x >= fixed2float(max_fixed - box_rounding_slop_fixed + fixed_epsilon) || in gs_setbbox()
73 dbox.q.y >= fixed2float(max_fixed - box_rounding_slop_fixed + fixed_epsilon) in gs_setbbox()
H A Dgdevpsdu.c118 fixed2float(x0), fixed2float(y0), in psdf_dorect()
119 fixed2float(x1 - x0), fixed2float(y1 - y0)); in psdf_dorect()
H A Dgxchar.c548 fixed2float(cll.x), fixed2float(cll.y), in set_cache_device()
549 fixed2float(cur.x), fixed2float(cur.y), in set_cache_device()
617 fixed2float(cc->offset.x), in set_cache_device()
618 fixed2float(cc->offset.y)); in set_cache_device()
825 pgs->current_point.x + fixed2float(pwxy->x), in show_fast_move()
826 pgs->current_point.y + fixed2float(pwxy->y)); in show_fast_move()
1190 fpx = fixed2float(cpt.x) + (pgs->ctm.tx - tx); in show_proceed()
1191 fpy = fixed2float(cpt.y) + (pgs->ctm.ty - ty); in show_proceed()
1342 fixed2float(penum->wxy.x), in gx_show_text_current_width()
1343 fixed2float(penum->wxy.y), pwidth); in gx_show_text_current_width()
H A Dgsshade.c551 path_rect.p.x = fixed2float(path_box.p.x); in gs_shading_fill_path()
552 path_rect.p.y = fixed2float(path_box.p.y); in gs_shading_fill_path()
553 path_rect.q.x = fixed2float(path_box.q.x); in gs_shading_fill_path()
554 path_rect.q.y = fixed2float(path_box.q.y); in gs_shading_fill_path()
H A Dgxcpath.c992 fixed2float(pcpath->inner_box.p.x), in gx_cpath_print()
993 fixed2float(pcpath->inner_box.p.y), in gx_cpath_print()
994 fixed2float(pcpath->inner_box.q.x), in gx_cpath_print()
995 fixed2float(pcpath->inner_box.q.y)); in gx_cpath_print()
997 fixed2float(pcpath->outer_box.p.x), in gx_cpath_print()
998 fixed2float(pcpath->outer_box.p.y), in gx_cpath_print()
999 fixed2float(pcpath->outer_box.q.x), in gx_cpath_print()
1000 fixed2float(pcpath->outer_box.q.y)); in gx_cpath_print()
H A Dgxfixed.h111 #define fixed2float(x) ((x)*(1.0/fixed_scale)) macro
260 (vf = fixed2float(x), 0)
H A Dgxccache.c285 fixed2float(-cc->offset.x), in gx_image_cached_char()
286 fixed2float(-cc->offset.y)); in gx_image_cached_char()
288 fixed2float(pt.x), fixed2float(pt.y), in gx_image_cached_char()
H A Dgsfont.c947 info->width[wmode].x = fixed2float(pt.x); in gs_default_glyph_info()
948 info->width[wmode].y = fixed2float(pt.y); in gs_default_glyph_info()
958 info->bbox.p.x = fixed2float(bbox.p.x); in gs_default_glyph_info()
959 info->bbox.p.y = fixed2float(bbox.p.y); in gs_default_glyph_info()
960 info->bbox.q.x = fixed2float(bbox.q.x); in gs_default_glyph_info()
961 info->bbox.q.y = fixed2float(bbox.q.y); in gs_default_glyph_info()
H A Dwrite_t2.c345 write_type2_float(a_output,fixed2float(t1->data.defaultWidthX)); in write_private_dict()
347 write_type2_float(a_output,fixed2float(t1->data.nominalWidthX)); in write_private_dict()
H A Dgdevbbox.c328 dbox.p.x = fixed2float(bbox.p.x); in gx_device_bbox_bbox()
329 dbox.p.y = fixed2float(bbox.p.y); in gx_device_bbox_bbox()
330 dbox.q.x = fixed2float(bbox.q.x); in gx_device_bbox_bbox()
331 dbox.q.y = fixed2float(bbox.q.y); in gx_device_bbox_bbox()
523 bbox[0] = fixed2float(fbox.p.x); in bbox_get_params()
524 bbox[1] = fixed2float(fbox.p.y); in bbox_get_params()
525 bbox[2] = fixed2float(fbox.q.x); in bbox_get_params()
526 bbox[3] = fixed2float(fbox.q.y); in bbox_get_params()
H A Dgdevpdte.c336 m.tx = fixed2float(origin.x); in process_text_estimate_bbox()
337 m.ty = fixed2float(origin.y); in process_text_estimate_bbox()
420 fixed2float(penum->origin.x) + wpt->x, in pdf_shift_text_currentpoint()
421 fixed2float(penum->origin.y) + wpt->y); in pdf_shift_text_currentpoint()
474 rect.p.x = fixed2float(clip_bbox.p.x); in pdf_process_string()
475 rect.p.y = fixed2float(clip_bbox.p.y); in pdf_process_string()
476 rect.q.x = fixed2float(clip_bbox.q.x); in pdf_process_string()
477 rect.q.y = fixed2float(clip_bbox.q.y); in pdf_process_string()
H A Dgstype42.c297 mat.tx = fixed2float(mat.tx_fixed = pt.x); in parse_component()
298 mat.ty = fixed2float(mat.ty_fixed = pt.y); in parse_component()
933 (flags & gf_OnCurve ? "on " : "off"), fixed2float(pt.x), fixed2float(pt.y)); in append_simple()
1089 mat.tx = fixed2float(mat.tx_fixed += diff.x); in append_component()
1090 mat.ty = fixed2float(mat.ty_fixed += diff.y); in append_component()

123