Home
last modified time | relevance | path

Searched refs:cmap (Results 1 – 25 of 49) sorted by relevance

12

/plan9/sys/src/cmd/
H A Dgetmap.c28 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 Dgsfcmap.c84 (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 Dgdevxcmp.c79 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 Dgdevupd.c635 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 Dgsfcmap1.c56 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 Dgxfcmap.h220 const gs_cmap_t *cmap; member
237 const gs_cmap_t *cmap; member
H A Dgdevxini.c133 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 Ddxmain.c167 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 Dgxfcmap1.h51 gs_cmap_adobe1_t *cmap; /* back pointer for glyph marking */ member
H A Dzfcmap.c68 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 Dgxfont42.h61 ulong cmap; /* offset to cmap table (not used by */ member
H A Dgsfcid2.c194 (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 Dtotruecolor.c20 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 Dtorgbv.c41 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 Dreadtga.c32 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 Dreadgif.c73 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 Djpg.c216 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 Dimagefile.h6 uchar *cmap; member
/plan9/sys/src/libmemdraw/
H A Dalloc.c58 i->cmap = memdefcmap; in allocmemimaged()
186 if(t == CMap && i->cmap == nil){ in memsetchan()
187 i->cmap = memdefcmap; in memsetchan()
H A Dmkfile8 cmap.$O\
/plan9/sys/src/cmd/unix/drawterm/libmemdraw/
H A Dalloc.c61 i->cmap = memdefcmap; in allocmemimaged()
189 if(t == CMap && i->cmap == nil){ in memsetchan()
190 i->cmap = memdefcmap; in memsetchan()
H A DMakefile9 cmap.$O\
/plan9/sys/src/cmd/postscript/postgif/
H A Dpostgif.c32 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 Dpostmd.c663 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 Drdrle.c213 colormap = source->header.cmap; in get_pseudocolor_row()
253 colormap = source->header.cmap; in load_image()

12