| /plan9/sys/src/cmd/gs/src/ |
| H A D | gxhintn.h | 52 typedef fixed t1_glyph_space_coord; /* measured in original glyph space units */ 129 fixed orig_dx, orig_dy; /* glyph origin in device space */ 130 fixed orig_ox, orig_oy; /* glyph origin in hinter space */ 185 fixed origin_x, fixed origin_y, bool align_to_pixels); 191 int t1_hinter__sbw(t1_hinter * this, fixed sbx, fixed sby, fixed wx, fixed wy); 192 int t1_hinter__sbw_seac(t1_hinter * this, fixed sbx, fixed sby); 193 int t1_hinter__rmoveto(t1_hinter * this, fixed xx, fixed yy); 194 int t1_hinter__rlineto(t1_hinter *, fixed xx, fixed yy); 195 int t1_hinter__rcurveto(t1_hinter * this, fixed xx0, fixed yy0, fixed xx1, fixed yy1, fixed xx2, f… 196 void t1_hinter__setcurrentpoint(t1_hinter * this, fixed xx, fixed yy); [all …]
|
| H A D | gzpath.h | 156 int gx_curve_log2_samples(fixed, fixed, const curve_segment *, fixed); 162 int gx_curve_monotonic_points(fixed, fixed, fixed, fixed, double[2]); 276 int (*add_point)(gx_path *, fixed, fixed); 277 int (*add_line)(gx_path *, fixed, fixed, segment_notes); 278 int (*add_curve)(gx_path *, fixed, fixed, fixed, fixed, fixed, fixed, segment_notes); 372 fixed x0, y0, x3, y3; 373 fixed cx, bx, ax, cy, by, ay; 374 fixed x, y; 377 fixed idx, idy, id2x, id2y, id3x, id3y; /* I */ 381 fixed lx0, ly0, lx1, ly1; [all …]
|
| H A D | gxpath.h | 140 gx_path_add_point(gx_path *, fixed, fixed), 141 gx_path_add_relative_point(gx_path *, fixed, fixed), 142 gx_path_add_line_notes(gx_path *, fixed, fixed, segment_notes), 144 gx_path_add_rectangle(gx_path *, fixed, fixed, fixed, fixed), 146 gx_path_add_curve_notes(gx_path *, fixed, fixed, fixed, fixed, fixed, fixed, segment_notes), 147 gx_path_add_partial_arc_notes(gx_path *, fixed, fixed, fixed, fixed, floatp, segment_notes), 199 gx_path__check_curves(const gx_path * ppath, gx_path_copy_options options, fixed fixed_flat); 224 fixed fixed_flatness, const gs_imager_state *pis, 243 gx_path_translate(gx_path *, fixed, fixed), 333 gx_cpath_includes_rectangle(const gx_clip_path *, fixed, fixed, [all …]
|
| H A D | gxpath.c | 69 gz_path_add_point(gx_path *, fixed, fixed), 70 gz_path_add_line_notes(gx_path *, fixed, fixed, segment_notes), 71 gz_path_add_curve_notes(gx_path *, fixed, fixed, fixed, fixed, fixed, fixed, segment_notes), 87 gz_path_bbox_add_point(gx_path *, fixed, fixed), 88 gz_path_bbox_add_line_notes(gx_path *, fixed, fixed, segment_notes), 89 … gz_path_bbox_add_curve_notes(gx_path *, fixed, fixed, fixed, fixed, fixed, fixed, segment_notes), 478 gz_path_bbox_add(gx_path * ppath, fixed x, fixed y) in gz_path_bbox_add() 497 gz_path_bbox_move(gx_path * ppath, fixed x, fixed y) in gz_path_bbox_move() 507 gx_path_add_point(gx_path * ppath, fixed x, fixed y) in gx_path_add_point() 512 gz_path_add_point(gx_path * ppath, fixed x, fixed y) in gz_path_add_point() [all …]
|
| H A D | gzspotan.h | 53 fixed ybot, ytop; 54 fixed xlbot, xrbot, xltop, xrtop; 88 fixed xl, yl, xr, yr; 107 fixed xmin, xmax; 131 fixed ybot, fixed ytop, fixed xlbot, fixed xrbot, fixed xltop, fixed xrtop,
|
| H A D | gxfixed.h | 28 typedef long fixed; typedef 42 #define fixed_int_bits (sizeof(fixed) * 8 - _fixed_shift) 67 #define int2fixed(i) ((fixed)(i)<<_fixed_shift) 107 #define float2fixed(f) ((fixed)((f)*(float)fixed_scale)) 108 #define float2fixed_rounded(f) ((fixed)floor((f)*(float)fixed_scale + 0.5)) 162 fixed fixed_mult_quo(fixed A, fixed B, fixed C); 191 int set_fmul2fixed_(fixed *, long, long); 196 int set_dfmul2fixed_(fixed *, ulong, long, long); 233 int set_float2fixed_(fixed *, long, int); 234 int set_double2fixed_(fixed *, ulong, long, int); [all …]
|
| H A D | gxtype1.h | 39 fixed unit; /* # of pixels per device pixel */ 40 fixed half; /* unit / 2 */ 110 fixed ostack[ostack_size]; /* the Type 1 operand stack */ 123 fixed save_asb; /* save seac asb */ 126 fixed asb_diff; /* save_asb - save_lsb.x, */ 140 fixed transient_array[32]; /* Type 2 transient array, */ 152 typedef fixed *cs_ptr; 165 memcpy(cstack, pcis->ostack, pcis->os_count * sizeof(fixed));\ 239 int gs_type1_sbw(gs_type1_state * pcis, fixed sbx, fixed sby, 240 fixed wx, fixed wy); [all …]
|
| H A D | gxfdrop.c | 218 private inline fixed Y_AT_X(active_line *alp, fixed xp) in Y_AT_X() 223 fixed xx0, fixed xx1, fixed yy0, fixed yy1, int dir, fixed y0, fixed y1) in margin_boundary() 225 fixed x0, x1, xmin, xmax; in margin_boundary() 253 fixed y = (alp == 0 ? yy0 : Y_AT_X(alp, xp)); in margin_boundary() 254 fixed dy = y - set->y; in margin_boundary() 279 fixed y = (alp==0 ? yy0 : Y_AT_X(alp, xp)); in margin_boundary() 280 fixed dy = y - set->y; in margin_boundary() 302 …_common(line_list * ll, margin_set * set, active_line * flp, active_line * alp, fixed y0, fixed y1) in continue_margin_common() 306 fixed yy0 = max(max(y0, alp->start.y), set->y); in continue_margin_common() 307 fixed yy1 = min(min(y1, alp->end.y), set->y + fixed_1); in continue_margin_common() [all …]
|
| H A D | gxfdrop.h | 100 { fixed y; 116 …lists(line_list * ll, active_line * plp, active_line * flp, active_line * alp, fixed y0, fixed y1); 117 int margin_interior(line_list * ll, active_line * flp, active_line * alp, fixed y0, fixed y1); 118 int start_margin_set(gx_device * dev, line_list * ll, fixed y0); 119 …common(line_list * ll, margin_set * set, active_line * flp, active_line * alp, fixed y0, fixed y1);
|
| H A D | gxpcopy.c | 36 fixed fixed_flatness, const gs_imager_state *pis, in gx_path_copy_reducing() 40 fixed flat = fixed_flatness; in gx_path_copy_reducing() 84 fixed x0 = ppath->position.x; in gx_path_copy_reducing() 85 fixed y0 = ppath->position.y; in gx_path_copy_reducing() 101 fixed min01, max01, min23, max23; in gx_path_copy_reducing() 102 fixed ex, ey, flat_x, flat_y; in gx_path_copy_reducing() 236 const fixed x0 = pseg->pt.x, y0 = pseg->pt.y; in adjust_point_to_tangent() 237 const fixed fC = p1->x - x0, fD = p1->y - y0; in adjust_point_to_tangent() 246 const fixed DT = arith_rshift(next->pt.y - y0, 2); in adjust_point_to_tangent() 256 const fixed CT = arith_rshift(next->pt.x - x0, 2); in adjust_point_to_tangent() [all …]
|
| H A D | gxpflat.c | 51 gx_curve_log2_samples(fixed x0, fixed y0, const curve_segment * pc, in gx_curve_log2_samples() 52 fixed fixed_flat) in gx_curve_log2_samples() 54 fixed in gx_curve_log2_samples() 66 fixed m = max(x03, y03); in gx_curve_log2_samples() 71 const fixed in gx_curve_log2_samples() 77 fixed in gx_curve_log2_samples() 107 split_curve_midpoint(fixed x0, fixed y0, const curve_segment * pc, in split_curve_midpoint() 116 fixed x12 = midpoint(pc->p1.x, pc->p2.x); in split_curve_midpoint() 117 fixed y12 = midpoint(pc->p1.y, pc->p2.y); in split_curve_midpoint() 154 curve_coeffs_ranged(fixed x0, fixed x1, fixed x2, fixed x3, in curve_coeffs_ranged() [all …]
|
| H A D | gxfillsl.h | 30 TEMPLATE_spot_into_scanlines (line_list *ll, fixed band_mask) in TEMPLATE_spot_into_scanlines() 34 fixed y_limit = fo.ymax; in TEMPLATE_spot_into_scanlines() 44 fixed y_frac_min = in TEMPLATE_spot_into_scanlines() 47 fixed y_frac_max = in TEMPLATE_spot_into_scanlines() 50 fixed y_bot = min_fixed; /* normally int2fixed(y0) + y_frac_min */ in TEMPLATE_spot_into_scanlines() 51 fixed y_top = min_fixed; /* normally int2fixed(y0) + y_frac_max */ in TEMPLATE_spot_into_scanlines() 52 fixed y = min_fixed; in TEMPLATE_spot_into_scanlines() 64 fixed x; in TEMPLATE_spot_into_scanlines() 82 fixed yy = max(alp->fi.y3, alp->fi.y0); in TEMPLATE_spot_into_scanlines() 105 fixed nx; in TEMPLATE_spot_into_scanlines() [all …]
|
| H A D | gdevddrw.c | 48 private fixed 49 fixed_mult_rem(fixed a, fixed b, fixed c) in fixed_mult_rem() 64 fixed h; 71 fixed df; 89 fixed x, xf; 95 fixed ldi, ldf; 117 compute_dx(trap_line *tl, fixed xd, fixed ys) in compute_dx() 119 fixed h = tl->h; in compute_dx() 145 compute_ldx(trap_line *tl, fixed ys) in compute_ldx() 148 fixed df = tl->df; in compute_ldx() [all …]
|
| H A D | gdevddrw.h | 30 const gs_fixed_edge * right, fixed ybot, fixed ytop, int flags, 33 const gs_fixed_edge * right, fixed ybot, fixed ytop, int flags,
|
| H A D | gdevvec.h | 123 int (*dorect) (gx_device_vector * vdev, fixed x0, fixed y0, fixed x1, 124 fixed y1, gx_path_type_t type); 148 int gdev_vector_dorect(gx_device_vector * vdev, fixed x0, fixed y0, 149 fixed x1, fixed y1, gx_path_type_t type); 316 fixed x0, fixed y0, fixed x1, fixed y1,
|
| H A D | gxfill.h | 32 fixed y_fast_max; /* can do x_at_y in fixed point */ 34 fixed num_adjust; /* 0 if diff.x >= 0, -diff.y + epsilon if */ 71 fixed x_current; /* current x position */ 72 fixed x_next; /* x position at end of band */ 95 fixed ymin, ymax; 99 fixed fixed_flat; 101 fixed adjust_left, adjust_right; 102 fixed adjust_below, adjust_above; 132 fixed y_break;
|
| H A D | gxpdash.c | 58 fixed x0 = psub->pt.x, y0 = psub->pt.y; in subpath_expand_dashes() 59 fixed x, y; in subpath_expand_dashes() 81 fixed sx = pseg->pt.x, sy = pseg->pt.y; in subpath_expand_dashes() 82 fixed udx = sx - x, udy = sy - y; in subpath_expand_dashes() 118 fixed nx = x + (fixed) (dx * fraction); in subpath_expand_dashes() 119 fixed ny = y + (fixed) (dy * fraction); in subpath_expand_dashes()
|
| H A D | gxctable.c | 31 gx_color_interpolate_nearest(const fixed * pi, in gx_color_interpolate_nearest() 57 interpolate_accum(const fixed * pi, const gx_color_lookup_table * pclt, in interpolate_accum() 58 frac * pv, fixed factor) in interpolate_accum() 67 fixed fx = fixed_fraction(pi[0]); in interpolate_accum() 82 fixed fc = fixed_fraction(pi[2]); in interpolate_accum() 85 fixed fb = fixed_fraction(pi[1]); in interpolate_accum() 90 fixed fa = fixed_fraction(pi[0]); in interpolate_accum() 141 gx_color_interpolate_linear(const fixed * pi, in gx_color_interpolate_linear()
|
| H A D | gdevvec.c | 49 coord_between(fixed start, fixed mid, fixed end) in coord_between() 89 code = vdev_proc(vdev, dorect)(vdev, (fixed)p.x, (fixed)p.y, in gdev_vector_dopath() 90 (fixed)q.x, (fixed)q.y, type); in gdev_vector_dopath() 212 gdev_vector_dorect(gx_device_vector * vdev, fixed x0, fixed y0, fixed x1, in gdev_vector_dorect() 213 fixed y1, gx_path_type_t type) in gdev_vector_dorect() 713 gdev_vector_write_rectangle(gx_device_vector * vdev, fixed x0, fixed y0, in gdev_vector_write_rectangle() 714 fixed x1, fixed y1, bool close, gx_rect_direction_t direction) in gdev_vector_write_rectangle() 1100 const gs_fixed_edge * right, fixed ybot, fixed ytop, bool swap_axes, in gdev_vector_fill_trapezoid() 1103 fixed xl = left->start.x; in gdev_vector_fill_trapezoid() 1104 fixed wl = left->end.x - xl; in gdev_vector_fill_trapezoid() [all …]
|
| H A D | gsmisc.c | 553 set_fmul2fixed_(fixed * pr, long /*float */ a, long /*float */ b) in set_fmul2fixed_() 582 set_dfmul2fixed_(fixed * pr, ulong /*double lo */ xalo, long /*float */ b, long /*double hi */ xahi) in set_dfmul2fixed_() 602 set_float2fixed_(fixed * pr, long /*float */ vf, int frac_bits) in set_float2fixed_() 604 fixed mantissa; in set_float2fixed_() 611 mantissa = (fixed) ((vf & 0x7fffff) | 0x800000); in set_float2fixed_() 614 if (shift >= sizeof(fixed) * 8 - 24) in set_float2fixed_() 618 *pr = (fixed) (mantissa << shift); in set_float2fixed_() 621 vf < 0 ? -(fixed) (mantissa >> -shift) : /* truncate */ in set_float2fixed_() 622 (fixed) (mantissa >> -shift)); in set_float2fixed_() 626 set_double2fixed_(fixed * pr, ulong /*double lo */ lo, in set_double2fixed_() [all …]
|
| H A D | gxmatrix.h | 38 fixed tx_fixed, ty_fixed; 71 fixed round; /* ditto */ 84 fixed fixed_coeff_mult(fixed, long, const fixed_coeff *, int);
|
| H A D | gdevbbox.c | 177 bbox_default_add_rect(void *pdata, fixed x0, fixed y0, fixed x1, fixed y1) in bbox_default_add_rect() 590 private fixed 591 edge_x_at_y(const gs_fixed_edge * edge, fixed y) in edge_x_at_y() 600 fixed ybot, fixed ytop, bool swap_axes, in bbox_fill_trapezoid() 612 fixed x0l = in bbox_fill_trapezoid() 615 fixed x1l = in bbox_fill_trapezoid() 618 fixed x0r = in bbox_fill_trapezoid() 621 fixed x1r = in bbox_fill_trapezoid() 624 fixed xminl = min(x0l, x1l), xmaxl = max(x0l, x1l); in bbox_fill_trapezoid() 625 fixed xminr = min(x0r, x1r), xmaxr = max(x0r, x1r); in bbox_fill_trapezoid() [all …]
|
| /plan9/lib/font/bit/lucm/ |
| H A D | unicode.9.font | 7 0x0500 0x05FF ../fixed/10x20.0500 8 0x0600 0x06FF ../fixed/10x20.0600 9 0x0E00 0x0EFF ../fixed/10x20.0E00 10 0x1000 0x10FF ../fixed/10x20.1000 11 0x1200 0x12FF ../fixed/10x20.1200 12 0x1300 0x13FF ../fixed/10x20.1300 13 0x1600 0x16FF ../fixed/10x20.1600 14 0x1D00 0x1DFF ../fixed/10x20.1D00 15 0x1E00 0x1EFF ../fixed/10x20.1E00 16 0x1F00 0x1FFF ../fixed/10x20.1F00 [all …]
|
| /plan9/lib/font/bit/pelm/ |
| H A D | unicode.9.font | 7 0x0500 0x05FF ../fixed/10x20.0500 8 0x0600 0x06FF ../fixed/10x20.0600 9 0x0E00 0x0EFF ../fixed/10x20.0E00 10 0x1000 0x10FF ../fixed/10x20.1000 11 0x1200 0x12FF ../fixed/10x20.1200 12 0x1300 0x13FF ../fixed/10x20.1300 13 0x1600 0x16FF ../fixed/10x20.1600 14 0x1D00 0x1DFF ../fixed/10x20.1D00 15 0x1E00 0x1EFF ../fixed/10x20.1E00 16 0x1F00 0x1FFF ../fixed/10x20.1F00 [all …]
|
| H A D | unicode.8.font | 7 0x0500 0x05FF ../fixed/10x20.0500 8 0x0600 0x06FF ../fixed/10x20.0600 9 0x0E00 0x0EFF ../fixed/10x20.0E00 10 0x1000 0x10FF ../fixed/10x20.1000 11 0x1200 0x12FF ../fixed/10x20.1200 12 0x1300 0x13FF ../fixed/10x20.1300 13 0x1600 0x16FF ../fixed/10x20.1600 14 0x1D00 0x1DFF ../fixed/10x20.1D00 15 0x1E00 0x1EFF ../fixed/10x20.1E00 16 0x1F00 0x1FFF ../fixed/10x20.1F00 [all …]
|