Home
last modified time | relevance | path

Searched refs:width_bytes (Results 1 – 11 of 11) sorted by relevance

/plan9/sys/src/cmd/gs/src/
H A Dgdevpcfb.c650 int xmod, width_bytes; in ega_tile_rectangle() local
688 width_bytes = tile->size.x >> 3; in ega_tile_rectangle()
727 int xpos = width_bytes - xmod; in ega_tile_rectangle()
744 xleft = width_bytes, in ega_tile_rectangle()
745 params.src -= width_bytes; in ega_tile_rectangle()
754 xleft = width_bytes, in ega_tile_rectangle()
755 params.src -= width_bytes; in ega_tile_rectangle()
790 int width_bytes = (dev->width + 7) >> 3; in ega_get_bits() local
820 memcpy(planes + 100 * i, mk_fb_ptr(0, y), width_bytes); in ega_get_bits()
823 for (dest = (bits32 *) data, src = planes, end = src + width_bytes; in ega_get_bits()
H A Dgxclbits.c49 uint * width_bytes, uint * raster) in clist_bitmap_bytes() argument
56 *width_bytes = width_bytes_last = full_raster; in clist_bitmap_bytes()
61 *width_bytes = width_bytes_last = short_raster; in clist_bitmap_bytes()
63 *width_bytes = full_raster, width_bytes_last = short_raster; in clist_bitmap_bytes()
65 (height == 0 ? 0 : *width_bytes * (height - 1) + width_bytes_last); in clist_bitmap_bytes()
76 uint width_bytes = bitmap_raster(width_bits); in cmd_compress_bitmap() local
81 if (raster == width_bytes) { in cmd_compress_bitmap()
87 for (y = 1; (r.limit = r.ptr + width_bytes), y < height; ++y) { in cmd_compress_bitmap()
96 r.ptr += raster - width_bytes; in cmd_compress_bitmap()
H A Dgshtx.c490 int width_bytes = (width + 7) >> 3; in create_mask_bits() local
496 int offset = y * width_bytes + (x >> 3); in create_mask_bits()
512 int width_bytes = (phcop->width + 7) >> 3; in create_mask_order() local
514 int bytes_per_mask = width_bytes * phcop->height; in create_mask_order()
H A Dgxclrast.c218 int width_bytes, int height,
715 uint width_bits, width_bytes; in clist_playback_band() local
724 op & 3, &width_bytes, in clist_playback_band()
777 width_bytes << 3 /*state.rect.width */ , in clist_playback_band()
792 width_bytes != raster in clist_playback_band()
795 cbp = cmd_read_short_bits(&cbuf, source, width_bytes, in clist_playback_band()
1604 uint width_bytes; in read_set_bits() local
1612 &width_bytes, in read_set_bits()
1669 width_bytes << 3 /*width_bits */ , in read_set_bits()
1681 } else if (rep_height > 1 && width_bytes != bits->cb_raster) { in read_set_bits()
[all …]
H A Dgdevpx.c479 uint width_bytes = (width_bits + 7) >> 3; in pclxl_write_image_data() local
480 uint num_bytes = ROUND_UP(width_bytes, 4) * height; in pclxl_write_image_data()
515 r.limit = r.ptr + width_bytes; in pclxl_write_image_data()
522 r.limit = r.ptr + (-(int)width_bytes & 3); in pclxl_write_image_data()
552 px_put_bytes(s, data + i * raster, width_bytes); in pclxl_write_image_data()
553 px_put_bytes(s, (const byte *)"\000\000\000\000", -(int)width_bytes & 3); in pclxl_write_image_data()
637 uint width_bytes = (width_bits + 7) >> 3; in pclxl_define_bitmap_char() local
638 uint size = 10 + width_bytes * height; in pclxl_define_bitmap_char()
655 px_put_bytes(s, data + i * raster, width_bytes); in pclxl_define_bitmap_char()
722 uint width_bytes = (w + 7) >> 3; in pclxl_copy_text_char() local
[all …]
H A Dgsbitops.c646 byte value, int width_bytes, int height) in bytes_fill_rectangle() argument
649 memset(dest, value, width_bytes); in bytes_fill_rectangle()
657 const byte * src, uint src_raster, int width_bytes, int height) in bytes_copy_rectangle() argument
660 memcpy(dest, src, width_bytes); in bytes_copy_rectangle()
H A Dgdevwddb.c331 int width_bytes, height; in win_ddb_copy_mono() local
367 width_bytes = (sourcex + w + 7) >> 3; in win_ddb_copy_mono()
399 switch (width_bytes) { in win_ddb_copy_mono()
401 memcpy(aptr, ptr_line, width_bytes); in win_ddb_copy_mono()
H A Dgdevwprn.c461 int width_bytes, height; in win_prn_copy_mono() local
497 width_bytes = (sourcex + w + 7) >> 3; in win_prn_copy_mono()
529 switch (width_bytes) { in win_prn_copy_mono()
531 memcpy(aptr, ptr_line, width_bytes); in win_prn_copy_mono()
H A Dgsbitops.h317 byte value, int width_bytes, int height);
321 const byte * src, uint src_raster, int width_bytes, int height);
H A Dgxcldev.h207 uint * width_bytes, uint * raster);
H A Dgdevx.c788 uint width_bytes = ((x1 - x0) * depth + 7) >> 3; in x_get_bits_rectangle() local
789 uint band = xdev->MaxTempImage / width_bytes; in x_get_bits_rectangle()
884 memcpy(dest, source, width_bytes); in x_get_bits_rectangle()