Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 470) sorted by relevance

12345678910>>...19

/plan9/sys/src/ape/lib/ap/stdio/
H A Dvfscanf.c9 static int icvt_f(FILE *f, va_list *args, int store, int width, int type);
10 static int icvt_x(FILE *f, va_list *args, int store, int width, int type);
11 static int icvt_sq(FILE *f, va_list *args, int store, int width, int type);
12 static int icvt_c(FILE *f, va_list *args, int store, int width, int type);
13 static int icvt_d(FILE *f, va_list *args, int store, int width, int type);
14 static int icvt_i(FILE *f, va_list *args, int store, int width, int type);
15 static int icvt_n(FILE *f, va_list *args, int store, int width, int type);
16 static int icvt_o(FILE *f, va_list *args, int store, int width, int type);
17 static int icvt_p(FILE *f, va_list *args, int store, int width, int type);
18 static int icvt_s(FILE *f, va_list *args, int store, int width, int type);
[all …]
H A Dvfprintf.c154 int tfl, flags, width, precision; in vfprintf() local
167 width = va_arg(args, int); in vfprintf()
169 if(width<0){ in vfprintf()
171 width = -width; in vfprintf()
175 width = 0; in vfprintf()
176 while('0'<=*s && *s<='9') width = width*10 + *s++ - '0'; in vfprintf()
199 if(ocvt[*s]) nprint += (*ocvt[*s++])(f, &args, flags, width, precision); in vfprintf()
209 ocvt_c(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_c() argument
214 if(!(flags&LEFT)) for(i=1; i<width; i++) putc(' ', f); in ocvt_c()
216 if(flags&LEFT) for(i=1; i<width; i++) putc(' ', f); in ocvt_c()
[all …]
/plan9/sys/src/libstdio/
H A Dvfscanf.c6 static int icvt_f(FILE *f, va_list *args, int store, int width, int type);
7 static int icvt_x(FILE *f, va_list *args, int store, int width, int type);
8 static int icvt_sq(FILE *f, va_list *args, int store, int width, int type);
9 static int icvt_c(FILE *f, va_list *args, int store, int width, int type);
10 static int icvt_d(FILE *f, va_list *args, int store, int width, int type);
11 static int icvt_i(FILE *f, va_list *args, int store, int width, int type);
12 static int icvt_n(FILE *f, va_list *args, int store, int width, int type);
13 static int icvt_o(FILE *f, va_list *args, int store, int width, int type);
14 static int icvt_p(FILE *f, va_list *args, int store, int width, int type);
15 static int icvt_s(FILE *f, va_list *args, int store, int width, int type);
[all …]
H A Dvfprintf.c151 int flags, width, precision; in vfprintf() local
166 width = va_arg(args, int); in vfprintf()
168 if(width<0){ in vfprintf()
170 width = -width; in vfprintf()
174 width = 0; in vfprintf()
175 while('0'<=*s && *s<='9') width = width*10 + *s++ - '0'; in vfprintf()
191 if(ocvt[*s]) nprint += (*ocvt[*s++])(f, &args, flags, width, precision); in vfprintf()
211 ocvt_c(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_c() argument
216 if(!(flags&LEFT)) for(i=1; i<width; i++) putc(' ', f); in ocvt_c()
218 if(flags&LEFT) for(i=1; i<width; i++) putc(' ', f); in ocvt_c()
[all …]
/plan9/sys/src/cmd/jpg/
H A Dreadbmp.c80 load_1T(Biobuf *b, long width, long height, Rgb* buf, Rgb* clut) in load_1T() argument
82 long ix, iy, i = 0, step_up = 0, padded_width = ((width + 31) / 32) * 32; in load_1T()
86 i = (height - 1) * width; in load_1T()
87 step_up = -2 * width; in load_1T()
97 if(ix < width) { in load_1T()
108 load_4T(Biobuf* b, long width, long height, Rgb* buf, Rgb* clut) in load_4T() argument
110 long ix, iy, i = 0, step_up = 0, skip = (4 - (((width % 8) + 1) / 2)) & 3; in load_4T()
114 i = (height - 1) * width; in load_4T()
115 step_up = -2 * width; in load_4T()
120 for(ix = 0; ix < width; ) { in load_4T()
[all …]
/plan9/sys/src/cmd/gs/libpng/
H A Dpnggccrd.c431 (png_size_t)PNG_ROWBYTES(png_ptr->row_info.pixel_depth,png_ptr->width)); in png_combine_row()
466 for (i = 0; i < png_ptr->width; i++) in png_combine_row()
524 for (i = 0; i < png_ptr->width; i++) in png_combine_row()
578 for (i = 0; i < png_ptr->width; i++) in png_combine_row()
626 len = png_ptr->width &~7; // reduce to multiple of 8 in png_combine_row()
627 diff = (int) (png_ptr->width & 7); // amount lost in png_combine_row()
710 png_uint_32 len = png_ptr->width &~7; /* reduce to mult. of 8 */ in png_combine_row()
711 int diff = (int) (png_ptr->width & 7); /* amount lost */ in png_combine_row()
764 len = png_ptr->width &~7; // reduce to multiple of 8 in png_combine_row()
765 diff = (int) (png_ptr->width & 7); // amount lost // in png_combine_row()
[all …]
/plan9/sys/src/libmemdraw/
H A Dstring.c10 int w, width; in memimagestring() local
16 for(; c=*s; p.x+=width, cp.x+=width){ in memimagestring()
17 width = 0; in memimagestring()
31 width = i->width; in memimagestring()
45 int w, width; in memsubfontwidth() local
49 for(; c=*s; p.x+=width){ in memsubfontwidth()
50 width = 0; in memsubfontwidth()
64 width = i->width; in memsubfontwidth()
/plan9/sys/src/cmd/unix/drawterm/libmemdraw/
H A Dstring.c10 int w, width; in memimagestring() local
16 for(; (c=*s); p.x+=width, cp.x+=width){ in memimagestring()
17 width = 0; in memimagestring()
32 width = i->width; in memimagestring()
46 int w, width; in memsubfontwidth() local
50 for(; (c=*s); p.x+=width){ in memsubfontwidth()
51 width = 0; in memsubfontwidth()
65 width = i->width; in memsubfontwidth()
/plan9/sys/src/libdraw/
H A Dstringsubfont.c8 int w, width; in stringsubfont() local
14 for(; c=*s; p.x+=width){ in stringsubfont()
15 width = 0; in stringsubfont()
29 width = i->width; in stringsubfont()
43 int w, width; in strsubfontwidth() local
47 for(; c=*s; p.x+=width){ in strsubfontwidth()
48 width = 0; in strsubfontwidth()
62 width = i->width; in strsubfontwidth()
/plan9/sys/src/cmd/gs/src/
H A Ddxmain.c52 static int display_presize(void *handle, void *device, int width, int height,
54 static int display_size(void *handle, void *device, int width, int height,
163 gint width; member
201 int x, y, width, height; in window_draw() local
202 if (event->area.x + event->area.width > img->width) { in window_draw()
203 x = img->width; in window_draw()
204 width = (event->area.x + event->area.width) - x; in window_draw()
207 gdk_window_clear_area(widget->window, x, y, width, height); in window_draw()
211 width = event->area.width; in window_draw()
214 gdk_window_clear_area(widget->window, x, y, width, height); in window_draw()
[all …]
H A Dgdevdrop.c50 int x, int y, int width, int height, in trace_copy_rop() argument
73 x, y, x + width, y + height, phase_x, phase_y, in trace_copy_rop()
100 int x, int y, int width, int height, in gx_default_strip_copy_rop() argument
121 x, y, width, height, phase_x, phase_y, lop); in gx_default_strip_copy_rop()
126 fit_fill(dev, x, y, width, height); in gx_default_strip_copy_rop()
128 fit_copy(dev, sdata, sourcex, sraster, id, x, y, width, height); in gx_default_strip_copy_rop()
130 draster = bitmap_raster(width * depth); in gx_default_strip_copy_rop()
137 mdev.width = width; in gx_default_strip_copy_rop()
152 rect.q.x = x + width; in gx_default_strip_copy_rop()
173 draster, gx_no_bitmap_id, 0, 0, width, in gx_default_strip_copy_rop()
[all …]
H A Dgdevmeds.c35 float width; member
39 #define X(name, width, height) {name, width, height, 1 / (width * height)} argument
79 float width = pdev->width / pdev->x_pixels_per_inch INCH; in select_medium() local
85 media[j].width + TOLERANCE > width && in select_medium()
H A Dgsht.c278 gx_ht_alloc_ht_order(gx_ht_order * porder, uint width, uint height, in gx_ht_alloc_ht_order() argument
284 porder->width = width; in gx_ht_alloc_ht_order()
286 porder->raster = bitmap_raster(width); in gx_ht_alloc_ht_order()
333 code = gx_ht_alloc_ht_order(pdest, psrc->width, psrc->height, in gx_ht_copy_ht_order()
356 uint width = psrc->width, height = psrc->height, shift = psrc->shift; in gx_ht_move_ht_order() local
361 pdest->width = width; in gx_ht_move_ht_order()
363 pdest->raster = bitmap_raster(width); in gx_ht_move_ht_order()
382 gx_ht_alloc_order(gx_ht_order * porder, uint width, uint height, in gx_ht_alloc_order() argument
390 code = gx_ht_alloc_ht_order(&order, width, height, num_levels, in gx_ht_alloc_order()
391 width * height, strip_shift, in gx_ht_alloc_order()
[all …]
H A Dgxclrect.c30 (rect).width = width, (rect).height = height)
38 cmd_sizew(prect->width) + cmd_sizew(prect->height); in cmd_size_rect()
45 cmd_putw(prect->width, dp); in cmd_put_rect()
52 int op, int x, int y, int width, int height) in cmd_write_rect_cmd() argument
56 int dwidth = width - pcls->rect.width; in cmd_write_rect_cmd()
75 if (dx == width - dwidth && dy == 0) { in cmd_write_rect_cmd()
117 int rcsize = 1 + cmd_sizew(x) + cmd_sizew(width); in cmd_write_rect_cmd()
124 cmd_put2w(x, width, dp); in cmd_write_rect_cmd()
141 clist_fill_rectangle(gx_device * dev, int x, int y, int width, int height, in clist_fill_rectangle() argument
148 fit_fill(dev, x, y, width, height); in clist_fill_rectangle()
[all …]
H A Dgdevo182.c188 int i, spaces, width; in oki_print_page() local
262 oki_transpose(in, out1, pdev->width, 2 * line_size); in oki_print_page()
264 pdev->width, 2 * line_size); in oki_print_page()
266 oki_transpose(in, out1, pdev->width, line_size); in oki_print_page()
268 out3 = oki_compress(out1, pdev->width, highRes, in oki_print_page()
269 &spaces, &width); in oki_print_page()
275 fwrite(out3, 1, width, prn_stream); in oki_print_page()
280 out3 = oki_compress(out2, pdev->width, highRes, in oki_print_page()
281 &spaces, &width); in oki_print_page()
285 fwrite(out3, 1, width, prn_stream); in oki_print_page()
H A Dgdevvglb.c104 int width = dev->width, height = dev->height; in vgalib_open() local
113 if (width == 0) in vgalib_open()
114 width = vga_getxdim() + 1; in vgalib_open()
123 gx_device_set_width_height(dev, width, height); in vgalib_open()
206 int raster, gx_bitmap_id id, int x, int y, int width, in vgalib_copy_mono() argument
214 fit_copy(dev, base, sourcex, raster, id, x, y, width, height); in vgalib_copy_mono()
217 dest_y = y, end_x = x + width; in vgalib_copy_mono()
228 vgalib_fill_rectangle(dev, x, y, width, height, zero); in vgalib_copy_mono()
259 int width, int height) in vgalib_copy_color() argument
262 fit_copy(dev, base, sourcex, raster, id, x, y, width, height); in vgalib_copy_color()
[all …]
H A Dgdevwdib.c144 (dev->width & 0xffff) + in win_dib_open()
306 if (!dev || !dev->is_open || dev->mdev.width == 0 || dev->mdev.height == 0) in gsdll_copy_dib()
308 return win_dib_make_dib((gx_device_win *) dev, 0, 0, dev->width, dev->height); in gsdll_copy_dib()
318 if (!dev || !dev->is_open || dev->mdev.width == 0 || dev->mdev.height == 0) in gsdll_copy_palette()
335 if (!dev || !dev->is_open || dev->mdev.width == 0 || dev->mdev.height == 0) in gsdll_draw()
368 bmi.h.biWidth = wdev->mdev.width; in win_dib_repaint()
447 if (orgx + wx > wdev->width) in win_dib_make_dib()
448 wx = wdev->width - orgx; in win_dib_make_dib()
540 int width; in win_dib_alloc_bitmap() local
557 width = param_dev->width * 3 - 1; in win_dib_alloc_bitmap()
[all …]
H A Dgdevdbit.c156 int raster, gx_bitmap_id id, int x, int y, int width, int height, in gx_no_copy_alpha() argument
164 int raster, gx_bitmap_id id, int x, int y, int width, int height, in gx_default_copy_alpha() argument
169 x, y, width, height, in gx_default_copy_alpha()
188 fit_copy(dev, data, data_x, raster, id, x, y, width, height); in gx_default_copy_alpha()
190 out_size = bitmap_raster(width * bpp); in gx_default_copy_alpha()
207 for (sx = data_x, rx = x; sx < data_x + width; ++sx, ++rx) { in gx_default_copy_alpha()
300 int x, int y, int width, int height, in gx_no_copy_rop() argument
339 int width = tiles->size.x; in gx_default_strip_tile_rectangle() local
401 int icw = width - irx; in gx_default_strip_tile_rectangle()
433 (w == width && h == height ? tile_id : in gx_default_strip_tile_rectangle()
[all …]
H A Dgshtx.c158 int width, in gs_ht_set_threshold_comp() argument
173 phtc->params.ht_threshold.width = width; in gs_ht_set_threshold_comp()
351 porder->params.M = phtc->params.ht_threshold.width; in build_component()
358 phtc->params.ht_threshold.width, in build_component()
440 pocs[j].corder.width) * 4 in gs_ht_install()
485 int width, int height, gx_ht_bit * bits) in create_mask_bits() argument
490 int width_bytes = (width + 7) >> 3; in create_mask_bits()
495 for (x = 0; x < width; ++x) { in create_mask_bits()
501 gx_ht_construct_bit(&bits[count], width, y * width + x); in create_mask_bits()
512 int width_bytes = (phcop->width + 7) >> 3; in create_mask_order()
[all …]
H A Dgdevmr1.c44 int x, int y, int width, int height, in mem_mono_strip_copy_rop() argument
74 x, y, width, height, phase_x, phase_y, lop); in mem_mono_strip_copy_rop()
136 (dev, x, y, width, height, (gx_color_index) (rop & 1)); in mem_mono_strip_copy_rop()
142 fit_fill(dev, x, y, width, height); in mem_mono_strip_copy_rop()
154 (dev, sdata, sourcex, sraster, id, x, y, width, height, in mem_mono_strip_copy_rop()
171 fit_copy(dev, sdata, sourcex, sraster, id, x, y, width, height); in mem_mono_strip_copy_rop()
175 no_texture.size.x = width; in mem_mono_strip_copy_rop()
188 (dev, textures, x, y, width, height, color0, color1, in mem_mono_strip_copy_rop()
205 fit_fill(dev, x, y, width, height); in mem_mono_strip_copy_rop()
213 fit_copy(dev, sdata, sourcex, sraster, id, x, y, width, height); in mem_mono_strip_copy_rop()
[all …]
H A Dgsnorop.c49 int x, int y, int width, int height, in mem_mono_strip_copy_rop() argument
60 int x, int y, int width, int height, in mem_gray_strip_copy_rop() argument
71 int x, int y, int width, int height, in mem_gray8_rgb24_strip_copy_rop() argument
84 int x, int y, int width, int height, in gx_default_copy_rop() argument
95 int x, int y, int width, int height, in gx_default_strip_copy_rop() argument
106 int x, int y, int width, int height, in mem_default_strip_copy_rop() argument
H A Dgxoprect.c41 int width, in unpack_scanline_lt8() argument
48 if (width == 0) in unpack_scanline_lt8()
59 width += src_offset; in unpack_scanline_lt8()
63 for (; i < width; i++, buff <<= depth) { in unpack_scanline_lt8()
79 int width, in pack_scanline_lt8() argument
86 if (width == 0) in pack_scanline_lt8()
97 width += dest_offset; in pack_scanline_lt8()
101 for (; i < width; i++) { in pack_scanline_lt8()
123 int width, in unpack_scanline_ge8() argument
133 width *= bytes_per_p; in unpack_scanline_ge8()
[all …]
H A Dgdevclj.c72 float width, height; /* in pts; +- 5 pts */ member
149 float width = MediaSize[0]; in get_paper_size() local
155 if ( (fabs(width - psize->width) <= tolerance) && in get_paper_size()
160 } else if ( (fabs(width - psize->height) <= tolerance) && in get_paper_size()
161 (fabs(height - psize->width) <= tolerance) ) { in get_paper_size()
236 clj_paper_sizes[i].width, in clj_get_params()
417 int lsize = pdev->width; in clj_print_page()
446 imageable_width = pdev->width - (2 * psize->offsets.x) * fs_res; in clj_print_page()
450 imageable_width = pdev->width - (2 * psize->offsets.y) * ss_res; in clj_print_page()
590 itmp = pdev->width; in clj_pr_get_params()
[all …]
/plan9/sys/src/9/pc/
H A Dether8390.h12 uchar width; /* data transfer width in bytes */ member
43 switch(ctlr->width){ in rdread()
45 panic("dp8390 rdread: width %d\n", ctlr->width); in rdread()
61 switch(ctlr->width){ in rdwrite()
63 panic("dp8390 rdwrite: width %d\n", ctlr->width); in rdwrite()
/plan9/sys/src/cmd/cc/
H A Ddcl.c22 t->width = 0; in dodecl()
34 t->width = v * t->link->width; in dodecl()
73 if(lastfield > tfield->width*8) { in dodecl()
78 if(lastbit > tfield->width*8) { in dodecl()
147 (et == TARRAY && t->width == 0)) { in tcopy()
238 a->type->width -= b->type->width; in nextinit()
239 if(a->type->width <= 0) in nextinit()
400 gextern(s, a, o, t->width); in init1()
405 w = t->link->width; in init1()
412 mw = t->width/w; in init1()
[all …]

12345678910>>...19