| /plan9/sys/src/cmd/ |
| H A D | getmap.c | 28 int cmap, i, j, n, v, rev; in getcmap() local 31 cmap = -1; in getcmap() 34 if((cmap = open(name, OREAD)) >= 0) in getcmap() 38 if(cmap == -1){ in getcmap() 41 cmap = open(name, OREAD); in getcmap() 42 if(cmap < 0) in getcmap() 47 if(cmap==-1){ /* could be gamma or gamma<number> or fb */ in getcmap() 74 n = readn(cmap, s, 20000-1); in getcmap() 107 putcmap(int id, uchar cmap[256*3]) in putcmap() 120 t += sprint(t, "%d %d %d %d\n", i, cmap[3*i+0], cmap[3*i+1], cmap[3*i+2]); in putcmap()
|
| /plan9/sys/src/cmd/gs/src/ |
| H A D | gsfcmap.c | 84 (const gs_cmap_identity_t *)penum->cmap; in identity_next_range() 106 (const gs_cmap_identity_t *)penum->cmap; in identity_next_lookup() 132 (const gs_cmap_identity_t *)penum->cmap; in identity_next_entry() 349 penum->cmap = pcmap; in gs_cmap_ranges_enum_setup() 358 penum->cmap = pcmap; in gs_cmap_lookups_enum_setup() 427 { const gs_cmap_ToUnicode_t *cmap = (gs_cmap_ToUnicode_t *)penum->cmap; in gs_cmap_ToUnicode_next_range() local 429 memset(penum->range.first, 0, cmap->key_size); in gs_cmap_ToUnicode_next_range() 430 memset(penum->range.last, 0xff, cmap->key_size); in gs_cmap_ToUnicode_next_range() 431 penum->range.size = cmap->key_size; in gs_cmap_ToUnicode_next_range() 459 { const gs_cmap_ToUnicode_t *cmap = (gs_cmap_ToUnicode_t *)penum->cmap; in gs_cmap_ToUnicode_next_lookup() local [all …]
|
| H A D | gdevxcmp.c | 79 if (xdev->cmap == sp->colormap) in x_get_std_cmap() 91 XStandardColormap *cmap = XAllocStandardColormap(); in alloc_std_cmap() local 93 if (cmap == 0) in alloc_std_cmap() 99 if ((cmap->red_max = xdev->vinfo->red_mask) == 0) { in alloc_std_cmap() 100 cmap->red_max = (1 << xdev->vinfo->depth) - 1; in alloc_std_cmap() 101 cmap->red_mult = 1; in alloc_std_cmap() 103 for (cmap->red_mult = 1; (cmap->red_max & 1) == 0;) { in alloc_std_cmap() 104 cmap->red_max >>= 1; in alloc_std_cmap() 105 cmap->red_mult <<= 1; in alloc_std_cmap() 109 for (cmap->green_max = xdev->vinfo->green_mask, cmap->green_mult = 1; in alloc_std_cmap() [all …]
|
| H A D | gdevupd.c | 635 int cmap; /* Index for the Parameter-name */ member 665 updcmap_t cmap[UPD_CMAP_MAX]; /** Mapping-Data */ member 768 const updcmap_pc cmap = upd->cmap + i; /* Writing-Shortcut */ in upd_expand() local 769 uint32_t ci = (uint32_t)((ci0 >> cmap->bitshf) & cmap->bitmsk); /* Extract the component */ in upd_expand() 771 if(!cmap->rise) ci = cmap->bitmsk - ci; /* Invert, if necessary */ in upd_expand() 773 if(gx_color_value_bits > cmap->bits) return cmap->code[ci]; in upd_expand() 2206 255.0 * (double) ((rv >> upd->cmap[1].bitshf) & upd->cmap[1].bitmsk) in upd_cmyk_icolor() 2207 / (double) upd->cmap[1].bitmsk, in upd_cmyk_icolor() 2208 255.0 * (double) ((rv >> upd->cmap[2].bitshf) & upd->cmap[2].bitmsk) in upd_cmyk_icolor() 2209 / (double) upd->cmap[2].bitmsk, in upd_cmyk_icolor() [all …]
|
| H A D | gsfcmap1.c | 56 pclr->cmap->mark_glyph(mem, glyph, pclr->cmap->mark_glyph_data); 59 return ENUM_OBJ(pclr->cmap); 65 RELOC_VAR(pclr->cmap); 438 (const gs_cmap_adobe1_t *)penum->cmap; in adobe1_next_range() 473 &((const gs_cmap_adobe1_t *)penum->cmap)->def); in adobe1_next_lookup_def() 479 &((const gs_cmap_adobe1_t *)penum->cmap)->notdef); in adobe1_next_lookup_notdef() 510 &((const gs_cmap_adobe1_t *)penum->cmap)->def); in adobe1_next_entry_def() 516 &((const gs_cmap_adobe1_t *)penum->cmap)->notdef); in adobe1_next_entry_notdef() 582 lookups[i].cmap = pcmap1; in gs_cmap_adobe1_alloc()
|
| H A D | gxfcmap.h | 220 const gs_cmap_t *cmap; member 237 const gs_cmap_t *cmap; member
|
| H A D | gdevxini.c | 133 xdev->cmap = attrib.colormap; in gdev_x_open() 152 xdev->cmap = attrib.colormap; in gdev_x_open() 258 xdev->cmap = DefaultColormapOfScreen(scr); in gdev_x_open() 265 xdev->cmap = XCreateColormap (xdev->dpy, in gdev_x_open() 295 XAllocColor(xdev->dpy, xdev->cmap, &xc); in gdev_x_open() 299 XAllocColor(xdev->dpy, xdev->cmap, &xc); in gdev_x_open() 422 xswa.colormap = xdev->cmap; in gdev_x_open() 1008 if (xdev->cmap != DefaultColormapOfScreen(xdev->scr)) in gdev_x_close() 1009 XFreeColormap(xdev->dpy, xdev->cmap); in gdev_x_close()
|
| H A D | dxmain.c | 167 GdkRgbCmap *cmap; member 234 img->rowstride, img->cmap); in window_draw() 470 if (img->cmap) in display_preclose() 471 gdk_rgb_cmap_free(img->cmap); in display_preclose() 472 img->cmap = NULL; in display_preclose() 523 if (img->cmap) in display_size() 524 gdk_rgb_cmap_free(img->cmap); in display_size() 525 img->cmap = NULL; in display_size() 570 img->cmap = gdk_rgb_cmap_new(color, 96); in display_size()
|
| H A D | gxfcmap1.h | 51 gs_cmap_adobe1_t *cmap; /* back pointer for glyph marking */ member
|
| H A D | zfcmap.c | 68 acquire_code_ranges(gs_cmap_adobe1_t *cmap, const ref *pref, gs_memory_t *mem) in acquire_code_ranges() argument 95 cmap->code_space.ranges = ranges; in acquire_code_ranges() 96 cmap->code_space.num_ranges = num_ranges; in acquire_code_ranges() 181 pclr->cmap = root; in acquire_code_map()
|
| H A D | gxfont42.h | 61 ulong cmap; /* offset to cmap table (not used by */ member
|
| H A D | gsfcid2.c | 194 (const gs_cmap_tt_16bit_format4_t *)penum->cmap; in tt_16bit_format4_next_entry() 266 ulong origin = pfont->data.cmap; in gs_cmap_from_type42_cmap()
|
| /plan9/sys/src/cmd/jpg/ |
| H A D | totruecolor.c | 20 uchar *rp, *gp, *bp, *cmap, *inp, *outp, cmap1[3*256]; in totruecolor() local 45 cmap = i->cmap; in totruecolor() 70 if(cmap == nil) in totruecolor() 81 memmove(cmap1, cmap, i->cmaplen); in totruecolor() 82 cmap = cmap1; in totruecolor() 88 r = cmap[3*k+2]; in totruecolor() 89 g = cmap[3*k+1]; in totruecolor() 90 b = cmap[3*k+0]; in totruecolor() 97 *outp++ = cmap[3*k+2]; in totruecolor() 98 *outp++ = cmap[3*k+1]; in totruecolor() [all …]
|
| H A D | torgbv.c | 41 uchar *cmap, *cm, *in, *out, *inp, *outp, cmap1[3*256], map[256], *rpic, *bpic, *gpic; in torgbv() local 61 cmap = i->cmap; in torgbv() 97 if(cmap == nil) in torgbv() 108 memmove(cmap1, cmap, i->cmaplen); in torgbv() 109 cmap = cmap1; in torgbv() 114 r = cmap[k]>>4; in torgbv() 115 g = cmap[k+1]>>4; in torgbv() 116 b = cmap[k+2]>>4; in torgbv() 132 cm = &cmap[3 * *inp++]; in torgbv()
|
| H A D | readtga.c | 32 uchar *cmap; /* colour map (optional) */ member 107 h->cmap = 0; in rdhdr() 112 if((h->cmap = malloc(n)) == nil){ in rdhdr() 116 if(Bread(bp, h->cmap, n) != n){ in rdhdr() 118 free(h->cmap); in rdhdr() 388 free(h->cmap); in Breadtga() 398 free(h->cmap); in Breadtga()
|
| H A D | readgif.c | 73 clear(&h->new->cmap); in giffreeall() 80 clear(&h->array[i]->cmap); in giffreeall() 182 new->cmap = readcmap(h, (new->fields&7)+1); in readarray() 185 new->cmap = malloc(new->cmaplen); in readarray() 186 memmove(new->cmap, h->globalcmap, new->cmaplen); in readarray() 388 if(i->cmap!=nil && i->cmaplen!=3*(1<<codesize) in decode()
|
| H A D | jpg.c | 216 if(a2->cmap != nil) in vidmerge() 217 free(a2->cmap); in vidmerge() 307 free(r->cmap); in show() 335 free(r->cmap); in show()
|
| H A D | imagefile.h | 6 uchar *cmap; member
|
| /plan9/sys/src/libmemdraw/ |
| H A D | alloc.c | 58 i->cmap = memdefcmap; in allocmemimaged() 186 if(t == CMap && i->cmap == nil){ in memsetchan() 187 i->cmap = memdefcmap; in memsetchan()
|
| H A D | mkfile | 8 cmap.$O\
|
| /plan9/sys/src/cmd/unix/drawterm/libmemdraw/ |
| H A D | alloc.c | 61 i->cmap = memdefcmap; in allocmemimaged() 189 if(t == CMap && i->cmap == nil){ in memsetchan() 190 i->cmap = memdefcmap; in memsetchan()
|
| H A D | Makefile | 9 cmap.$O\
|
| /plan9/sys/src/cmd/postscript/postgif/ |
| H A D | postgif.c | 32 unsigned char *cmap, *gcmap, *lcmap; variable 257 for (i = 0; i < maplength; i++) puthex(cmap[i], fp_out); in writeimage() 259 for (i = maplength ; i < maplength*2; i++) puthex(cmap[i], fp_out); in writeimage() 261 for (i = maplength*2 ; i < maplength*3; i++) puthex(cmap[i], fp_out); in writeimage() 379 cmap = lcmap; in readimage() 427 cmap = gcmap; in readimage() 523 cmap = gcmap; in readgif()
|
| /plan9/sys/src/cmd/postscript/postmd/ |
| H A D | postmd.c | 663 char *cmap = NULL; /* remember header colormap list */ in getheader() local 732 cmap = savestring(buf); in getheader() 735 cmap = savestring(buf); in getheader() 748 addcolormap(cmap); /* must happen last */ in getheader()
|
| /plan9/sys/src/cmd/gs/jpeg/ |
| H A D | rdrle.c | 213 colormap = source->header.cmap; in get_pseudocolor_row() 253 colormap = source->header.cmap; in load_image()
|