| /plan9/sys/src/cmd/gs/src/ |
| H A D | gxttfb.c | 434 e->error = gx_path_add_point(e->path, float2fixed(p->x), float2fixed(p->y)); in gx_ttfExport__MoveTo() 442 e->error = gx_path_add_line_notes(e->path, float2fixed(p->x), float2fixed(p->y), sn_none); in gx_ttfExport__LineTo() 454 s.p1.x = float2fixed(p0->x), s.p1.y = float2fixed(p0->y), in gx_ttfExport__CurveTo() 455 s.p2.x = float2fixed(p1->x), s.p2.y = float2fixed(p1->y), in gx_ttfExport__CurveTo() 456 s.pt.x = float2fixed(p2->x), s.pt.y = float2fixed(p2->y); in gx_ttfExport__CurveTo() 459 e->error = gx_path_add_curve_notes(e->path, float2fixed(p0->x), float2fixed(p0->y), in gx_ttfExport__CurveTo() 460 float2fixed(p1->x), float2fixed(p1->y), in gx_ttfExport__CurveTo() 461 float2fixed(p2->x), float2fixed(p2->y), sn_none); in gx_ttfExport__CurveTo() 482 e->w.x = float2fixed(p->x); in gx_ttfExport__SetWidth() 483 e->w.y = float2fixed(p->y); in gx_ttfExport__SetWidth()
|
| H A D | zfont2.c | 73 pdata1->defaultWidthX = float2fixed(dwx); in type2_font_params() 74 pdata1->nominalWidthX = float2fixed(nwx); in type2_font_params()
|
| H A D | gsptype2.c | 276 rfixed->p.x = float2fixed(dev_rect.p.x); in gx_dc_pattern2_shade_bbox_transform2fixed() 277 rfixed->p.y = float2fixed(dev_rect.p.y); in gx_dc_pattern2_shade_bbox_transform2fixed() 278 rfixed->q.x = float2fixed(dev_rect.q.x); in gx_dc_pattern2_shade_bbox_transform2fixed() 279 rfixed->q.y = float2fixed(dev_rect.q.y); in gx_dc_pattern2_shade_bbox_transform2fixed()
|
| H A D | zpcolor.c | 253 clip_box.p.x = float2fixed(pinst->template.BBox.p.x); in pattern_paint_prepare() 254 clip_box.p.y = float2fixed(pinst->template.BBox.p.y); in pattern_paint_prepare() 255 clip_box.q.x = float2fixed(pinst->template.BBox.q.x); in pattern_paint_prepare() 256 clip_box.q.y = float2fixed(pinst->template.BBox.q.y); in pattern_paint_prepare()
|
| H A D | gdevbbox.c | 579 BBOX_ADD_RECT(bdev, float2fixed(bba.data[0]), float2fixed(bba.data[1]), in bbox_put_params() 580 float2fixed(bba.data[2]), float2fixed(bba.data[3])); in bbox_put_params() 1067 ibox.p.x = float2fixed(dbox.p.x); in bbox_image_plane_data() 1068 ibox.p.y = float2fixed(dbox.p.y); in bbox_image_plane_data() 1069 ibox.q.x = float2fixed(dbox.q.x); in bbox_image_plane_data() 1070 ibox.q.y = float2fixed(dbox.q.y); in bbox_image_plane_data() 1079 fixed x0 = float2fixed(corners[0].x), y0 = float2fixed(corners[0].y); in bbox_image_plane_data() 1080 fixed bx2 = float2fixed(corners[2].x) - x0, by2 = float2fixed(corners[2].y) - y0; in bbox_image_plane_data() 1088 float2fixed(corners[1].x) - x0, in bbox_image_plane_data() 1089 float2fixed(corners[1].y) - y0, in bbox_image_plane_data() [all …]
|
| H A D | gxipixel.c | 224 mtx = float2fixed(mat.tx); in gx_image_enum_begin() 225 mty = float2fixed(mat.ty); in gx_image_enum_begin() 226 row_extent.x = float2fixed(width * mat.xx + mat.tx) - mtx; in gx_image_enum_begin() 229 float2fixed(width * mat.xy + mat.ty) - mty); in gx_image_enum_begin() 232 float2fixed(height * mat.yx + mat.tx) - mtx); in gx_image_enum_begin() 233 col_extent.y = float2fixed(height * mat.yy + mat.ty) - mty; in gx_image_enum_begin() 245 x_extent.x = float2fixed(rw * mat.xx + mat.tx) - mtx; in gx_image_enum_begin() 248 float2fixed(rw * mat.xy + mat.ty) - mty); in gx_image_enum_begin() 251 float2fixed(rh * mat.yx + mat.tx) - mtx); in gx_image_enum_begin() 252 y_extent.y = float2fixed(rh * mat.yy + mat.ty) - mty; in gx_image_enum_begin()
|
| H A D | gxfixed.h | 107 #define float2fixed(f) ((fixed)((f)*(float)fixed_scale)) macro 215 vr = float2fixed(dtemp) 257 (f_fits_in_bits(vf, fixed_int_bits) ? (vr = float2fixed(vf), 0) :\
|
| H A D | gxpath.h | 230 gx_path_copy_reducing(old, new, float2fixed(flatness), NULL, pco_none) 232 gx_path_copy_reducing(old, new, float2fixed(flatness), NULL,\ 235 gx_path_copy_reducing(old, new, float2fixed(flatness), pis,\
|
| H A D | gspath.c | 81 float2fixed(xy)) in clamp_point() 519 pbox->p.x = fixed_rounded(float2fixed(bbox.p.x)); in gx_default_clip_box() 520 pbox->p.y = fixed_rounded(float2fixed(bbox.p.y)); in gx_default_clip_box() 521 pbox->q.x = fixed_rounded(float2fixed(bbox.q.x)); in gx_default_clip_box() 522 pbox->q.y = fixed_rounded(float2fixed(bbox.q.y)); in gx_default_clip_box()
|
| H A D | gxtype1.c | 150 pcis->lsb.x = float2fixed(psbpt->x); in gs_type1_set_lsb() 151 pcis->lsb.y = float2fixed(psbpt->y); in gs_type1_set_lsb() 157 pcis->width.x = float2fixed(pwpt->x); in gs_type1_set_width() 158 pcis->width.y = float2fixed(pwpt->y); in gs_type1_set_width()
|
| H A D | gsmatrix.c | 377 pfmat->tx = fixed2float(pfmat->tx_fixed = float2fixed(pmat->tx)); in gs_matrix_fixed_from_matrix() 378 pfmat->ty = fixed2float(pfmat->ty_fixed = float2fixed(pmat->ty)); in gs_matrix_fixed_from_matrix() 403 ppt->x = float2fixed(fpt.x); in gs_point_transform2fixed() 404 ppt->y = float2fixed(fpt.y); in gs_point_transform2fixed()
|
| H A D | gspath1.c | 154 arc->scaled_radius = float2fixed(scaled_radius); in next_arc_quadrant() 156 float2fixed(scaled_radius * quarter_arc_fraction); in next_arc_quadrant() 199 fixed ang1 = float2fixed(aang1), ang2 = float2fixed(aang2), anext; in gs_imager_arc_add()
|
| H A D | gximage1.c | 91 (pim->ImageMask && pim->adjust ? float2fixed(0.25) : fixed_0); in gx_begin_image1()
|
| H A D | gstype2.c | 597 csp[-1] = float2fixed((double)csp[-1] / *csp); in gs_type2_interpret() 610 to[i] = float2fixed(from[i]); in gs_type2_interpret() 653 *csp = float2fixed(sqrt(fixed2float(*csp))); in gs_type2_interpret()
|
| H A D | gstype1.c | 167 *csp = float2fixed((double)lw / denom); in gs_type1_interpret() 394 csp[-1] = float2fixed((double)csp[-1] / (double)*csp); in gs_type1_interpret()
|
| H A D | gxpflat.c | 389 (((x ^ this->x0) | (y ^ this->y0)) & float2fixed(-0.5) ? in gx_flattened_iterator__next() 412 (((x ^ this->lx0) | (y ^ this->ly0)) & float2fixed(-0.5) ? in gx_flattened_iterator__next() 474 (((this->x ^ this->lx1) | (this->y ^ this->ly1)) & float2fixed(-0.5) ? in gx_flattened_iterator__prev()
|
| H A D | gscoord.c | 356 dx = float2fixed(fdx); in gx_translate_to_fixed() 357 dy = float2fixed(fdy); in gx_translate_to_fixed()
|
| H A D | zupath.c | 161 fr.p.x = fixed_floor(float2fixed(dxy.x)); in in_path() 162 fr.p.y = fixed_floor(float2fixed(dxy.y)); in in_path()
|
| H A D | gdevpdfd.c | 147 int d = float2fixed(xw) + fixed_1; in pdf_dorect() 1292 p0.x = float2fixed(any_abs(d0.x)); in gdev_pdf_stroke_path() 1293 p0.y = float2fixed(any_abs(d0.y)); in gdev_pdf_stroke_path() 1294 p1.x = float2fixed(any_abs(d1.x)); in gdev_pdf_stroke_path() 1295 p1.y = float2fixed(any_abs(d1.y)); in gdev_pdf_stroke_path()
|
| H A D | gxccache.c | 228 cc->wxy.x = float2fixed(wxy.x); in gx_lookup_xfont_char() 229 cc->wxy.y = float2fixed(wxy.y); in gx_lookup_xfont_char()
|
| H A D | gdevtrac.c | 571 origin.x + float2fixed(dpt.x), in trace_text_begin() 572 origin.y + float2fixed(dpt.y)); in trace_text_begin()
|
| H A D | gxifast.c | 128 float2fixed(penum->matrix.xy + in gs_image_class_1_simple() 137 float2fixed(penum->matrix.xx + fixed2float(fixed_epsilon) / 2); in gs_image_class_1_simple()
|
| H A D | gdevx.c | 757 float2fixed(dest.p.x), float2fixed(dest.p.y), in x_begin_typed_image() 758 float2fixed(dest.q.x), float2fixed(dest.q.y)) in x_begin_typed_image()
|
| H A D | gsciemap.c | 134 hijk[i] = float2fixed(v); in gx_concretize_CIEDEFG() 193 hij[i] = float2fixed(v); in gx_concretize_CIEDEF()
|
| H A D | gxpcopy.c | 59 float2fixed((fabs(pis->ctm.xx) + fabs(pis->ctm.yx)) * width) * 2; in gx_path_copy_reducing() 61 float2fixed((fabs(pis->ctm.xy) + fabs(pis->ctm.yy)) * width) * 2; in gx_path_copy_reducing()
|