| /plan9/sys/src/cmd/jpg/ |
| H A D | readbmp.c | 80 load_1T(Biobuf *b, long width, long height, Rgb* buf, Rgb* clut) in load_1T() argument 85 if(height > 0) { /* bottom-up */ in load_1T() 86 i = (height - 1) * width; in load_1T() 89 height = -height; in load_1T() 91 for(iy = height; iy; iy--, i += step_up) in load_1T() 108 load_4T(Biobuf* b, long width, long height, Rgb* buf, Rgb* clut) in load_4T() argument 113 if(height > 0) { /* bottom-up */ in load_4T() 114 i = (height - 1) * width; in load_4T() 117 height = -height; in load_4T() 119 for(iy = height; iy; iy--, i += step_up) { in load_4T() [all …]
|
| /plan9/sys/src/cmd/gs/src/ |
| H A D | gxclrect.c | 30 (rect).width = width, (rect).height = height) 38 cmd_sizew(prect->width) + cmd_sizew(prect->height); in cmd_size_rect() 46 cmd_putw(prect->height, dp); in cmd_put_rect() 52 int op, int x, int y, int width, int height) in cmd_write_rect_cmd() argument 57 int dheight = height - pcls->rect.height; 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() 158 width, height); in clist_fill_rectangle() 166 int x, int y, int width, int height, in clist_strip_tile_rectangle() argument 182 fit_fill(dev, x, y, width, height); in clist_strip_tile_rectangle() [all …]
|
| H A D | gdevmeds.c | 36 float height; member 39 #define X(name, width, height) {name, width, height, 1 / (width * height)} argument 80 float height = pdev->height / pdev->y_pixels_per_inch INCH; in select_medium() local 86 media[j].height + TOLERANCE > height && in select_medium()
|
| H A D | dxmain.c | 52 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, 164 gint height; member 201 int x, y, width, height; in window_draw() local 206 height = min(img->height, event->area.y + event->area.height) - y; in window_draw() 207 gdk_window_clear_area(widget->window, x, y, width, height); in window_draw() 209 if (event->area.y + event->area.height > img->height) { in window_draw() 212 y = img->height; in window_draw() 213 height = (event->area.y + event->area.height) - y; in window_draw() 214 gdk_window_clear_area(widget->window, x, y, width, height); in window_draw() [all …]
|
| H A D | gsbitops.c | 63 mono_fill_chunk pattern, int width_bits, int height) in bits_fill_rectangle() argument 67 int line_count = height; in bits_fill_rectangle() 151 int width_bits, int height) in bits_fill_rectangle_masked() argument 155 int line_count = height; in bits_fill_rectangle_masked() 239 bits_replicate_horizontally(byte * data, uint width, uint height, in bits_replicate_horizontally() argument 243 const byte *orig_row = data + (height - 1) * raster; in bits_replicate_horizontally() 244 byte *tile_row = data + (height - 1) * replicated_raster; in bits_replicate_horizontally() 251 for (y = height; y-- > 0; in bits_replicate_horizontally() 275 for (y = height; y-- > 0; in bits_replicate_horizontally() 301 bits_replicate_vertically(byte * data, uint height, uint raster, in bits_replicate_vertically() argument [all …]
|
| H A D | gdevmr1.c | 44 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() 77 height, "initial dest bits"); 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() 176 no_texture.size.y = height; 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() [all …]
|
| H A D | gdevvglb.c | 104 int width = dev->width, height = dev->height; in vgalib_open() local 115 if (height == 0) in vgalib_open() 116 height = vga_getydim() + 1; in vgalib_open() 120 dev->y_pixels_per_inch = height / 11.0; in vgalib_open() 123 gx_device_set_width_height(dev, width, height); in vgalib_open() 207 int height, gx_color_index zero, gx_color_index one) in vgalib_copy_mono() argument 214 fit_copy(dev, base, sourcex, raster, id, x, y, width, height); in vgalib_copy_mono() 228 vgalib_fill_rectangle(dev, x, y, width, height, zero); in vgalib_copy_mono() 234 while (height--) { /* for each line */ in vgalib_copy_mono() 259 int width, int height) in vgalib_copy_color() argument [all …]
|
| H A D | gdevdrop.c | 50 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() 77 debug_dump_bitmap(sdata, sraster, height, "source bits"); 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() 134 block_height = min(height, max_height); in gx_default_strip_copy_rop() 138 mdev.height = block_height; in gx_default_strip_copy_rop() 153 for (py = y; py < y + height; py += block_height) { in gx_default_strip_copy_rop() [all …]
|
| H A D | gdevprn.c | 259 save_height = ppdev->height; in gdev_prn_allocate() 260 ppdev->height = new_height; in gdev_prn_allocate() 266 ppdev->height = save_height; in gdev_prn_allocate() 273 (&buf_space, pdev, NULL, pdev->height, false); in gdev_prn_allocate() 360 (byte **)(base + buf_space.bits), 0, pdev->height, in gdev_prn_allocate() 361 pdev->height)) < 0 in gdev_prn_allocate() 536 int height = pdev->height; in gdev_prn_put_params() local 681 code = gdev_prn_maybe_realloc_memory(ppdev, &save_sp, width, height, in gdev_prn_put_params() 847 gdev_prn_clear_trailing_bits(byte *data, uint raster, int height, in gdev_prn_clear_trailing_bits() argument 854 -first_bit & 7, height); in gdev_prn_clear_trailing_bits() [all …]
|
| H A D | gdevmem.c | 54 for (y = 0; y < mptr->height; y++) in RELOC_PTRS_WITH() 218 gdev_mem_bits_size(const gx_device_memory * dev, int width, int height) in gdev_mem_bits_size() argument 232 return ROUND_UP(size * height, ARCH_ALIGN_PTR_MOD); in gdev_mem_bits_size() 235 gdev_mem_line_ptrs_size(const gx_device_memory * dev, int width, int height) in gdev_mem_line_ptrs_size() argument 237 return (ulong)height * sizeof(byte *) * max(dev->num_planes, 1); in gdev_mem_line_ptrs_size() 240 gdev_mem_data_size(const gx_device_memory * dev, int width, int height) in gdev_mem_data_size() argument 242 return gdev_mem_bits_size(dev, width, height) + in gdev_mem_data_size() 243 gdev_mem_line_ptrs_size(dev, width, height); in gdev_mem_data_size() 253 int height; in gdev_mem_max_height() local 267 height = (int)min(max_height, max_int); in gdev_mem_max_height() [all …]
|
| H A D | gsnorop.c | 49 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 D | gdevdbit.c | 156 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() 198 for (ry = y; ry < y + height; row += raster, ++ry) { in gx_default_copy_alpha() 300 int x, int y, int width, int height, in gx_no_copy_rop() argument 340 int height = tiles->size.y; in gx_default_strip_tile_rectangle() local 402 int ch = height - ry; in gx_default_strip_tile_rectangle() 433 (w == width && h == height ? tile_id : in gx_default_strip_tile_rectangle() 439 ulong id = (h == height ? tile_id : gs_no_bitmap_id); in gx_default_strip_tile_rectangle() [all …]
|
| H A D | gdevxini.c | 135 xid_height = attrib.height; in gdev_x_open() 154 xdev->height = attrib.height; in gdev_x_open() 192 unsigned int width, height; in gdev_x_open() local 196 &width, &height, &border_width, &depth)) { in gdev_x_open() 198 xdev->height = height; in gdev_x_open() 321 float ysize = (float)xdev->height / xdev->y_pixels_per_inch; in gdev_x_open() 355 if (xdev->height > HeightOfScreen(xdev->scr)) { in gdev_x_open() 356 xdev->height = ysize * xdev->y_pixels_per_inch; in gdev_x_open() 361 (float)xdev->height / xdev->y_pixels_per_inch * 72; in gdev_x_open() 366 sizehints.height = xdev->height; in gdev_x_open() [all …]
|
| H A D | gdevclj.c | 72 float width, height; /* in pts; +- 5 pts */ member 150 float height = MediaSize[1]; in get_paper_size() local 156 (fabs(height - psize->height) <= 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() 213 pmat->ty = pdev->height + psize->offsets.y * ss_res; in clj_get_initial_matrix() 237 clj_paper_sizes[i].height); in clj_get_params() 447 imageable_height = pdev->height - (2 * psize->offsets.y) * ss_res; in clj_print_page() 451 imageable_height = pdev->height - (2 * psize->offsets.x) * fs_res; in clj_print_page() 591 pdev->width = pdev->height; in clj_pr_get_params() [all …]
|
| H A D | gdevbmpc.c | 72 dword height; /* height in pixels */ member 103 int height = pdev->height; in write_bmp_depth_header() local 116 bmp_raster * height); in write_bmp_depth_header() 133 BMP_ASSIGN_DWORD(ihdr.height, height); in write_bmp_depth_header() 137 BMP_ASSIGN_DWORD(ihdr.sizeImage, bmp_raster * height); in write_bmp_depth_header()
|
| H A D | gdevatx.c | 156 int height = min(pdev->height, max_height); in atx_print_page() local 158 (int)ceil((height / pdev->HWResolution[1] + top_bottom_skip) * 100); in atx_print_page() 182 for (blank_lines = 0, lnum = 0; lnum < height; ++lnum) { in atx_print_page() 223 int printed_length = height - blank_lines; in atx_print_page() 225 if (height > paper_length) in atx_print_page() 226 paper_length = height; in atx_print_page()
|
| H A D | zchar32.c | 41 int width, height, raster; in zmakeglyph32() local 69 height = ury - lly; in zmakeglyph32() 71 if (width < 0 || height < 0 || r_size(op - 3) != raster * height) in zmakeglyph32() 84 metrics[1] != 0 || height == 0 || in zmakeglyph32() 85 ((wx | width | height | (llx + 128) | (lly + 128)) & ~255) != 0 in zmakeglyph32() 102 str[1] = (byte)height; in zmakeglyph32()
|
| H A D | gdevsgi.c | 84 header->ysize=bdev->height; in sgi_begin_page() 118 long *rowsizes=(long*)gs_malloc(pdev->memory, 4,3*bdev->height,"sgi_print_page"); in sgi_print_page() 122 #define aref2(a,b) a*bdev->height+b in sgi_print_page() 125 fwrite(rowsizes,sizeof(long),3*bdev->height,pstream); /* rowstarts */ in sgi_print_page() 126 fwrite(rowsizes,sizeof(long),3*bdev->height,pstream); /* rowsizes */ in sgi_print_page() 127 lastval = 512+sizeof(long)*6*bdev->height; in sgi_print_page() 131 cur.lnum = cur.dev->height-1; in sgi_print_page() 205 for(rownumber=0; rownumber<bdev->height; rownumber++) in sgi_print_page() 212 for(rownumber=0; rownumber<bdev->height; rownumber++) in sgi_print_page() 221 gs_free(pdev->memory, (char*)rowsizes,4,3*bdev->height,"sgi_print_page(done)"); in sgi_print_page()
|
| H A D | gshtx.c | 159 int height, in gs_ht_set_threshold_comp() argument 174 phtc->params.ht_threshold.height = height; in gs_ht_set_threshold_comp() 354 porder->params.M1 = phtc->params.ht_threshold.height; in build_component() 359 phtc->params.ht_threshold.height, in build_component() 485 int width, int height, gx_ht_bit * bits) in create_mask_bits() argument 494 for (y = 0; y < height; ++y) in create_mask_bits() 514 int bytes_per_mask = width_bytes * phcop->height; in create_mask_order() 527 phcop->width, phcop->height, NULL); in create_mask_order() 528 code = gx_ht_alloc_client_order(porder, phcop->width, phcop->height, in create_mask_order() 539 phcop->width, phcop->height, in create_mask_order() [all …]
|
| H A D | gsimpath.c | 31 int width, height, raster; member 52 gs_imagepath(gs_state * pgs, int width, int height, const byte * data) in gs_imagepath() argument 62 stat.height = height; in gs_imagepath() 66 for (y = height - 1; y >= 0; y--) in gs_imagepath() 88 if (x < 0 || x >= out->width || y < 0 || y >= out->height) in get_pixel()
|
| /plan9/sys/src/cmd/gs/libpng/ |
| H A D | example.c | 82 png_uint_32 width, height; 93 png_uint_32 width, height; 169 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, 337 png_bytep row_pointers[height]; 339 for (row = 0; row < height; row++) 355 for (y = 0; y < height; y++) 361 for (y = 0; y < height; y += number_of_rows) 502 if((row_num >= 0) && (row_num < height)) 629 png_set_IHDR(png_ptr, info_ptr, width, height, bit_depth, PNG_COLOR_TYPE_???, 741 png_uint_32 k, height, width; [all …]
|
| /plan9/sys/src/libdraw/ |
| H A D | subfont.c | 6 allocsubfont(char *name, int n, int height, int ascent, Fontchar *info, Image *i) in allocsubfont() argument 10 assert(height != 0 /* allocsubfont */); in allocsubfont() 16 f->height = height; in allocsubfont()
|
| /plan9/sys/src/libframe/ |
| H A D | frinit.c | 39 f->tick = allocimage(f->display, Rect(0, 0, FRTICKW, ft->height), b->chan, 0, DWhite); in frinittick() 53 draw(f->tick, Rect(FRTICKW/2, 0, FRTICKW/2+1, ft->height), f->cols[TEXT], nil, ZP); in frinittick() 56 draw(f->tick, Rect(0, ft->height-FRTICKW, FRTICKW, ft->height), f->cols[TEXT], nil, ZP); in frinittick() 65 f->r.max.y -= (r.max.y-r.min.y)%f->font->height; in frsetrects() 66 f->maxlines = (r.max.y-r.min.y)/f->font->height; in frsetrects()
|
| /plan9/sys/src/libmemdraw/ |
| H A D | subfont.c | 7 allocmemsubfont(char *name, int n, int height, int ascent, Fontchar *info, Memimage *i) in allocmemsubfont() argument 15 f->height = height; in allocmemsubfont()
|
| /plan9/sys/src/cmd/unix/drawterm/libmemdraw/ |
| H A D | subfont.c | 7 allocmemsubfont(char *name, int n, int height, int ascent, Fontchar *info, Memimage *i) in allocmemsubfont() argument 15 f->height = height; in allocmemsubfont()
|