| /plan9/sys/src/cmd/gs/src/ |
| H A D | gsfcmap.c | 30 int num_bytes; member 65 int num_bytes = pcimap->num_bytes; in identity_decode_next() local 68 if (str->size < *pindex + num_bytes) { in identity_decode_next() 72 value = get_integer_bytes(str->data + *pindex, num_bytes); in identity_decode_next() 75 *pindex += num_bytes; in identity_decode_next() 86 memset(penum->range.first, 0, pcimap->num_bytes); in identity_next_range() 87 memset(penum->range.last, 0xff, pcimap->num_bytes); in identity_next_range() 107 int num_bytes = pcimap->num_bytes; in identity_next_lookup() local 109 memset(penum->entry.key[0], 0, num_bytes); in identity_next_lookup() 110 memset(penum->entry.key[1], 0xff, num_bytes); in identity_next_lookup() [all …]
|
| H A D | gxclutil.c | 456 int num_bytes = (cldev->color_info.depth + 7) >> 3; in cmd_put_color() local 457 int delta_bytes = (num_bytes + 1) / 2; in cmd_put_color() 458 gx_color_index delta_offset = cmd_delta_offsets[num_bytes]; in cmd_put_color() 459 gx_color_index delta_mask = cmd_delta_masks[num_bytes]; in cmd_put_color() 470 bytes_dropped = num_bytes; in cmd_put_color() 480 if (use_delta && delta_bytes < num_bytes - bytes_dropped) { in cmd_put_color() 489 if ((num_bytes >= 3) && (num_bytes & 1)) { in cmd_put_color() 490 data = delta >> ((num_bytes - 3) * 8); in cmd_put_color() 500 num_bytes -= bytes_dropped; in cmd_put_color() 502 (byte)(op + bytes_dropped), num_bytes + 1); in cmd_put_color() [all …]
|
| H A D | gxdcolor.c | 686 int num_bytes = (depth + 8) >> 3; /* NB: +8, not +7 */ in gx_dc_write_color() local 690 num_bytes = 1; in gx_dc_write_color() 693 if (*psize < num_bytes) { in gx_dc_write_color() 694 *psize = num_bytes; in gx_dc_write_color() 697 *psize = num_bytes; in gx_dc_write_color() 706 while (--num_bytes >= 0) { in gx_dc_write_color() 707 pdata[num_bytes] = color & 0xff; in gx_dc_write_color() 741 int i, num_bytes = (depth + 8) >> 3; /* NB: +8, not +7 */ in gx_dc_read_color() local 744 if (size < 1 || (pdata[0] != 0xff && size < num_bytes)) in gx_dc_read_color() 754 for (i = (num_bytes >= arch_sizeof_color_index ? 1 : 0); i < num_bytes; i++) in gx_dc_read_color() [all …]
|
| H A D | sdctd.c | 57 dctd_skip_input_data(j_decompress_ptr dinfo, long num_bytes) in dctd_skip_input_data() argument 64 if (num_bytes > 0) { in dctd_skip_input_data() 65 if (num_bytes > src->bytes_in_buffer) { in dctd_skip_input_data() 66 jddp->skip += num_bytes - src->bytes_in_buffer; in dctd_skip_input_data() 71 src->next_input_byte += num_bytes; in dctd_skip_input_data() 72 src->bytes_in_buffer -= num_bytes; in dctd_skip_input_data()
|
| H A D | gdevtknk.c | 122 int line_size,color_line_size,scan_line,num_bytes,scan_lines,color_plane; in tekink_print_page() local 202 if (num_bytes=(outdataend-outdata)){ in tekink_print_page() 217 4*color_plane,num_bytes); in tekink_print_page() 218 fwrite(outdata+1,1,num_bytes,prn_stream); in tekink_print_page()
|
| H A D | gsfcmap.h | 36 int gs_cmap_create_identity(gs_cmap_t **ppcmap, int num_bytes, int wmode, 44 int gs_cmap_create_char_identity(gs_cmap_t **ppcmap, int num_bytes,
|
| H A D | gsovrc.c | 61 int num_bytes = 0; in write_color_index() local 64 for (num_bytes = 1; (ctmp >>= 7) != 0; ++num_bytes) in write_color_index() 66 if (num_bytes > *psize) { in write_color_index() 67 *psize = num_bytes; in write_color_index() 71 *psize = num_bytes; in write_color_index() 72 for (; num_bytes > 1; ctmp >>= 7, --num_bytes) in write_color_index()
|
| H A D | gdevpxut.c | 273 px_put_data_length(stream * s, uint num_bytes) in px_put_data_length() argument 275 if (num_bytes > 255) { in px_put_data_length() 277 px_put_l(s, (ulong) num_bytes); in px_put_data_length() 280 spputc(s, (byte) num_bytes); in px_put_data_length()
|
| H A D | gdevatx.c | 212 int num_bytes = end - row; in atx_print_page() local 214 fput_atx_command(f, ATX_UNCOMPRESSED_DATA, num_bytes); in atx_print_page() 215 fwrite(row, 1, num_bytes, f); in atx_print_page()
|
| H A D | shcgen.h | 36 void hc_sizes_from_bytes(hc_definition * def, const byte * dbytes, int num_bytes);
|
| H A D | gdevpxut.h | 80 void px_put_data_length(stream * s, uint num_bytes);
|
| H A D | zfcid0.c | 212 uint num_bytes = pfont->cidata.FDBytes + pfont->cidata.common.GDBytes; in z9_glyph_data() local 213 ulong base = pfont->cidata.CIDMapOffset + glyph_index * num_bytes; in z9_glyph_data() 215 int rcode = cid0_read_bytes(pfont, base, (ulong)(num_bytes * 2), fd_gd, in z9_glyph_data()
|
| H A D | gdevpdfv.c | 630 put_clamped(byte *p, floatp v, int num_bytes) in put_clamped() argument 632 int limit = 1 << (num_bytes * 8); in put_clamped() 641 for (shift = (num_bytes - 1) * 8; shift >= 0; shift -= 8) in put_clamped() 645 put_clamped_coord(byte *p, floatp v, int num_bytes) in put_clamped_coord() argument 647 put_clamped(p, ENCODE_MESH_COORDINATE(v), num_bytes); in put_clamped_coord()
|
| H A D | gxcht.c | 276 int num_bytes = (num_comps + 7) >> 3; in gx_dc_ht_colored_write() local 283 for (i = 0; i < num_bytes; i++, base_mask >>= 8) in gx_dc_ht_colored_write() 394 int num_bytes = (num_comps + 7) >> 3; in gx_dc_ht_colored_read() local 397 if (size < num_bytes) in gx_dc_ht_colored_read() 399 size -= num_bytes; in gx_dc_ht_colored_read() 400 for (i = 0; i < num_bytes; i++, shift += 8) in gx_dc_ht_colored_read()
|
| H A D | shcgen.c | 325 hc_sizes_from_bytes(hc_definition * def, const byte * dbytes, int num_bytes) in hc_sizes_from_bytes() argument 330 for (i = 0; i < num_bytes; i++) { in hc_sizes_from_bytes()
|
| H A D | gdevdrop.c | 410 uint num_bytes = (size) * block_height;\ in mem_default_strip_copy_rop() 412 if (num_bytes <= sizeof(prebuf))\ in mem_default_strip_copy_rop() 415 buf = gs_alloc_bytes(mem, num_bytes, cname);\ in mem_default_strip_copy_rop()
|
| H A D | gdevpx.c | 480 uint num_bytes = ROUND_UP(width_bytes, 4) * height; in pclxl_write_image_data() local 481 bool compress = num_bytes >= 8; in pclxl_write_image_data() 498 byte *buf = gs_alloc_bytes(xdev->v_memory, num_bytes, in pclxl_write_image_data() 507 w.limit = w.ptr + num_bytes; in pclxl_write_image_data() 550 px_put_data_length(s, num_bytes); in pclxl_write_image_data()
|
| H A D | jpeglib0.h | 731 JMETHOD(void, skip_input_data, (j_decompress_ptr cinfo, long num_bytes));
|
| H A D | jpeglib_.h | 731 JMETHOD(void, skip_input_data, (j_decompress_ptr cinfo, long num_bytes));
|
| H A D | jpeglib.h | 731 JMETHOD(void, skip_input_data, (j_decompress_ptr cinfo, long num_bytes));
|
| /plan9/sys/src/cmd/gs/jpeg/ |
| H A D | jdatasrc.c | 128 skip_input_data (j_decompress_ptr cinfo, long num_bytes) in skip_input_data() argument 136 if (num_bytes > 0) { in skip_input_data() 137 while (num_bytes > (long) src->pub.bytes_in_buffer) { in skip_input_data() 138 num_bytes -= (long) src->pub.bytes_in_buffer; in skip_input_data() 144 src->pub.next_input_byte += (size_t) num_bytes; in skip_input_data() 145 src->pub.bytes_in_buffer -= (size_t) num_bytes; in skip_input_data()
|
| H A D | jpeglib.h | 731 JMETHOD(void, skip_input_data, (j_decompress_ptr cinfo, long num_bytes));
|
| H A D | libjpeg.doc | 1477 skip_input_data (j_decompress_ptr cinfo, long num_bytes) 1478 Skip num_bytes worth of data. The buffer pointer and count should 1479 be advanced over num_bytes input bytes, refilling the buffer as
|
| /plan9/sys/src/cmd/gs/libpng/ |
| H A D | png.c | 92 png_set_sig_bytes(png_structp png_ptr, int num_bytes) in png_set_sig_bytes() argument 95 if (num_bytes > 8) in png_set_sig_bytes() 98 png_ptr->sig_bytes = (png_byte)(num_bytes < 0 ? 0 : num_bytes); in png_set_sig_bytes() 148 png_uint_32 num_bytes; in png_zalloc() local 155 num_bytes = (png_uint_32)items * size; in png_zalloc() 158 ptr = (png_voidp)png_malloc((png_structp)png_ptr, num_bytes); in png_zalloc() 165 if (num_bytes > (png_uint_32)0x8000L) in png_zalloc() 169 (png_size_t)(num_bytes - (png_uint_32)0x8000L)); in png_zalloc() 173 png_memset(ptr, 0, (png_size_t)num_bytes); in png_zalloc()
|
| H A D | png.h | 1376 int num_bytes));
|