Home
last modified time | relevance | path

Searched refs:colormap (Results 1 – 25 of 56) sorted by relevance

123

/external/mesa3d/docs/
DMESA_pixmap_colormap.spec33 StaticColor, GrayScale and StaticGray visuals, Mesa needs a colormap
36 The colormap associated with a window can be queried with normal
37 Xlib functions but there is no colormap associated with pixmaps.
40 which allows specification of a colormap.
65 to compute pixel values from RGB values Mesa requires a colormap.
72 allows one to create a GLXPixmap with a specific colormap. The image
74 same colormap and visual) with the expected results.
DREADME.CYGWIN127 to create a window with an appropriate colormap. The aux, tk, and GLUT
128 toolkits try to minimize colormap "flashing" by sharing colormaps when
130 that of the root window, the root window's colormap will be shared by
131 the Mesa window. Otherwise, a new, private colormap will be allocated.
133 When sharing the root colormap, Mesa may be unable to allocate the colors
135 large number of colorcells in the root colormap are already allocated.
136 To prevent colormap sharing in aux, tk and GLUT, define the environment
208 Color or DirectColor, Mesa needs colormap information to convert RGB
210 pixmap does not. This function associates a colormap to a GLX pixmap.
/external/jpeg/
Drdbmp.c57 JSAMPARRAY colormap; /* BMP colormap (converted to my format) */ member
90 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
91 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
92 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
98 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
99 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
100 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
123 register JSAMPARRAY colormap = source->colormap; in get_8bit_row() local
140 *outptr++ = colormap[0][t]; /* can omit GETJSAMPLE() safely */ in get_8bit_row()
141 *outptr++ = colormap[1][t]; in get_8bit_row()
[all …]
Drdtarga.c53 JSAMPARRAY colormap; /* Targa colormap (converted to my format) */ member
111 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
112 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
113 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
197 register JSAMPARRAY colormap = source->colormap; in get_8bit_row() local
203 *ptr++ = colormap[0][t]; in get_8bit_row()
204 *ptr++ = colormap[1][t]; in get_8bit_row()
205 *ptr++ = colormap[2][t]; in get_8bit_row()
451 source->colormap = (*cinfo->mem->alloc_sarray) in start_input_tga()
458 source->colormap = NULL; in start_input_tga()
Dwrrle.c57 rle_map *colormap; /* RLE-style color map, or NULL if none */ member
112 dest->colormap = NULL; in start_output_rle()
117 dest->colormap = (rle_map *) (*cinfo->mem->alloc_small) in start_output_rle()
119 MEMZERO(dest->colormap, cmapsize); in start_output_rle()
125 dest->colormap[ci * CMAPLENGTH + i] = in start_output_rle()
126 GETJSAMPLE(cinfo->colormap[ci][i]) << 8; in start_output_rle()
200 header.cmap = dest->colormap; in finish_output_rle()
Dwrbmp.c295 JSAMPARRAY colormap = cinfo->colormap; in write_colormap() local
300 if (colormap != NULL) { in write_colormap()
304 putc(GETJSAMPLE(colormap[2][i]), outfile); in write_colormap()
305 putc(GETJSAMPLE(colormap[1][i]), outfile); in write_colormap()
306 putc(GETJSAMPLE(colormap[0][i]), outfile); in write_colormap()
313 putc(GETJSAMPLE(colormap[0][i]), outfile); in write_colormap()
314 putc(GETJSAMPLE(colormap[0][i]), outfile); in write_colormap()
315 putc(GETJSAMPLE(colormap[0][i]), outfile); in write_colormap()
Drdrle.c210 rle_map *colormap; in get_pseudocolor_row() local
213 colormap = source->header.cmap; in get_pseudocolor_row()
221 *dest_row++ = (JSAMPLE) (colormap[val ] >> 8); in get_pseudocolor_row()
222 *dest_row++ = (JSAMPLE) (colormap[val + 256] >> 8); in get_pseudocolor_row()
223 *dest_row++ = (JSAMPLE) (colormap[val + 512] >> 8); in get_pseudocolor_row()
247 rle_map *colormap; in load_image() local
253 colormap = source->header.cmap; in load_image()
298 (colormap[GETJSAMPLE(rle_row[channel][col]) + 256 * channel] >> 8); in load_image()
Dwrgif.c219 emit_header (gif_dest_ptr dinfo, int num_colors, JSAMPARRAY colormap) in emit_header() argument
262 if (colormap != NULL) { in emit_header()
265 putc(GETJSAMPLE(colormap[0][i]) >> cshift, dinfo->pub.output_file); in emit_header()
266 putc(GETJSAMPLE(colormap[1][i]) >> cshift, dinfo->pub.output_file); in emit_header()
267 putc(GETJSAMPLE(colormap[2][i]) >> cshift, dinfo->pub.output_file); in emit_header()
270 put_3bytes(dinfo, GETJSAMPLE(colormap[0][i]) >> cshift); in emit_header()
307 emit_header(dest, cinfo->actual_number_of_colors, cinfo->colormap); in start_output_gif()
Drdcolmap.c48 JSAMPROW colormap0 = cinfo->colormap[0]; in add_map_entry()
49 JSAMPROW colormap1 = cinfo->colormap[1]; in add_map_entry()
50 JSAMPROW colormap2 = cinfo->colormap[2]; in add_map_entry()
234 cinfo->colormap = (*cinfo->mem->alloc_sarray) in read_color_map()
Dwrtarga.c150 register JSAMPROW color_map0 = cinfo->colormap[0]; in put_demapped_gray()
191 putc(GETJSAMPLE(cinfo->colormap[2][i]), outfile); in start_output_tga()
192 putc(GETJSAMPLE(cinfo->colormap[1][i]), outfile); in start_output_tga()
193 putc(GETJSAMPLE(cinfo->colormap[0][i]), outfile); in start_output_tga()
Dwrppm.c135 register JSAMPROW color_map0 = cinfo->colormap[0]; in put_demapped_rgb()
136 register JSAMPROW color_map1 = cinfo->colormap[1]; in put_demapped_rgb()
137 register JSAMPROW color_map2 = cinfo->colormap[2]; in put_demapped_rgb()
159 register JSAMPROW color_map = cinfo->colormap[0]; in put_demapped_gray()
Djquant2.c532 cinfo->colormap[0][icolor] = (JSAMPLE) ((c0total + (total>>1)) / total); in compute_color()
533 cinfo->colormap[1][icolor] = (JSAMPLE) ((c1total + (total>>1)) / total); in compute_color()
534 cinfo->colormap[2][icolor] = (JSAMPLE) ((c2total + (total>>1)) / total); in compute_color()
689 x = GETJSAMPLE(cinfo->colormap[0][i]); in find_nearby_colors()
712 x = GETJSAMPLE(cinfo->colormap[1][i]); in find_nearby_colors()
734 x = GETJSAMPLE(cinfo->colormap[2][i]); in find_nearby_colors()
814 inc0 = (minc0 - GETJSAMPLE(cinfo->colormap[0][icolor])) * C0_SCALE; in find_best_colors()
816 inc1 = (minc1 - GETJSAMPLE(cinfo->colormap[1][icolor])) * C1_SCALE; in find_best_colors()
818 inc2 = (minc2 - GETJSAMPLE(cinfo->colormap[2][icolor])) * C2_SCALE; in find_best_colors()
969 JSAMPROW colormap0 = cinfo->colormap[0]; in pass2_fs_dither()
[all …]
Djdmaster.c349 cinfo->colormap = NULL; in master_selection()
350 } else if (cinfo->colormap != NULL) { in master_selection()
476 if (cinfo->quantize_colors && cinfo->colormap == NULL) { in prepare_for_output_pass()
547 cinfo->colormap != NULL) { in jpeg_new_colormap()
Djquant1.c276 JSAMPARRAY colormap; /* Created colormap */ in create_colormap() local
295 colormap = (*cinfo->mem->alloc_sarray) in create_colormap()
314 colormap[i][ptr+k] = (JSAMPLE) val; in create_colormap()
323 cquantize->sv_colormap = colormap; in create_colormap()
748 cinfo->colormap = cquantize->sv_colormap; in start_pass_1_quant()
Dfilelist.doc98 jquant1.c One-pass color quantization using a fixed-spacing colormap.
99 jquant2.c Two-pass color quantization using a custom-generated colormap.
147 rdcolmap.c Code to read a colormap file for djpeg's "-map" switch.
/external/libpng/contrib/gregbook/
Drpng-x.c148 static Colormap colormap; variable
509 colormap = XCreateColormap(display, root, visual, AllocNone); in rpng_x_create_window()
510 if (!colormap) { in rpng_x_create_window()
545 attr.colormap = colormap; in rpng_x_create_window()
561 XSetWindowColormap(display, window, colormap); in rpng_x_create_window()
884 XFreeColormap(display, colormap); in rpng_x_cleanup()
/external/pdfium/samples/fx_lpng/lpng_v163/
Dfx_pngwrite.c1610 png_const_voidp colormap; member
1875 const void *cmap = display->colormap; in png_image_set_PLTE()
2026 int colormap = (format & PNG_FORMAT_FLAG_COLORMAP) != 0; in png_image_write_main() local
2027 int linear = !colormap && (format & PNG_FORMAT_FLAG_LINEAR) != 0; /* input */ in png_image_write_main()
2028 int alpha = !colormap && (format & PNG_FORMAT_FLAG_ALPHA) != 0; in png_image_write_main()
2029 int write_16bit = linear && !colormap && !display->convert_to_8bit; in png_image_write_main()
2043 if (display->colormap != NULL && image->colormap_entries > 0) in png_image_write_main()
2116 if (!colormap && (format & PNG_FORMAT_FLAG_COLOR) != 0) in png_image_write_main()
2125 if (!colormap && (format & PNG_FORMAT_FLAG_ALPHA) != 0) in png_image_write_main()
2134 if (colormap && image->colormap_entries <= 16) in png_image_write_main()
[all …]
Dfx_pngread.c1156 png_voidp colormap; member
1746 png_uint_16p entry = png_voidcast(png_uint_16p, display->colormap); in png_create_colormap_entry()
1801 png_bytep entry = png_voidcast(png_bytep, display->colormap); in png_create_colormap_entry()
2576 if (memcmp((png_const_bytep)display->colormap + in png_image_read_colormap()
2578 (png_const_bytep)display->colormap + in png_image_read_colormap()
2650 png_const_colorp colormap = png_ptr->palette; in png_image_read_colormap() local
2682 png_colormap_compose(display, colormap[i].red, E_FILE, in png_image_read_colormap()
2684 png_colormap_compose(display, colormap[i].green, E_FILE, in png_image_read_colormap()
2686 png_colormap_compose(display, colormap[i].blue, E_FILE, in png_image_read_colormap()
2695 png_create_colormap_entry(display, i, colormap[i].red, in png_image_read_colormap()
[all …]
/external/libpng/
Dpngwrite.c1712 png_const_voidp colormap; member
1981 const void *cmap = display->colormap; in png_image_set_PLTE()
2133 int colormap = (format & PNG_FORMAT_FLAG_COLORMAP) != 0; in png_image_write_main() local
2134 int linear = !colormap && (format & PNG_FORMAT_FLAG_LINEAR) != 0; /* input */ in png_image_write_main()
2135 int alpha = !colormap && (format & PNG_FORMAT_FLAG_ALPHA) != 0; in png_image_write_main()
2136 int write_16bit = linear && !colormap && !display->convert_to_8bit; in png_image_write_main()
2150 if (display->colormap != NULL && image->colormap_entries > 0) in png_image_write_main()
2223 if (!colormap && (format & PNG_FORMAT_FLAG_COLOR) != 0) in png_image_write_main()
2232 if (!colormap && (format & PNG_FORMAT_FLAG_ALPHA) != 0) in png_image_write_main()
2241 if (colormap && image->colormap_entries <= 16) in png_image_write_main()
[all …]
Dpngread.c1415 png_voidp colormap; member
2012 png_uint_16p entry = png_voidcast(png_uint_16p, display->colormap); in png_create_colormap_entry()
2067 png_bytep entry = png_voidcast(png_bytep, display->colormap); in png_create_colormap_entry()
2842 if (memcmp((png_const_bytep)display->colormap + in png_image_read_colormap()
2844 (png_const_bytep)display->colormap + in png_image_read_colormap()
2916 png_const_colorp colormap = png_ptr->palette; in png_image_read_colormap() local
2948 png_colormap_compose(display, colormap[i].red, P_FILE, in png_image_read_colormap()
2950 png_colormap_compose(display, colormap[i].green, P_FILE, in png_image_read_colormap()
2952 png_colormap_compose(display, colormap[i].blue, P_FILE, in png_image_read_colormap()
2961 png_create_colormap_entry(display, i, colormap[i].red, in png_image_read_colormap()
[all …]
/external/pdfium/core/src/fxcodec/libjpeg/
Dfpdfapi_jdmaster.c327 cinfo->colormap = NULL; in master_selection()
328 } else if (cinfo->colormap != NULL) { in master_selection()
454 if (cinfo->quantize_colors && cinfo->colormap == NULL) { in prepare_for_output_pass()
525 cinfo->colormap != NULL) { in jpeg_new_colormap()
/external/libvncserver/x11vnc/
D8to24.c138 if (attr.colormap) { in set_root_cmap()
149 root_cmap = attr.colormap; in set_root_cmap()
716 } else if (depth <= 16 && root_cmap && attr->colormap != root_cmap) { in check_depth_win()
782 windows_8bpp[j].cmap = attr->colormap; in check_depth_win()
1256 windows_8bpp[i].cmap = attr.colormap; in get_8bpp_regions()
1280 attr.colormap = windows_8bpp[i].cmap; in get_8bpp_regions()
1341 if (ncmaps < CMAPMAX && attr.colormap != (Colormap) 0) { in get_8bpp_regions()
1344 if (cmaps[m] == attr.colormap) { in get_8bpp_regions()
1351 cmaps[ncmaps++] = attr.colormap; in get_8bpp_regions()
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11app/
Dd3d11x11main.cpp26 swa.colormap = cmap; in main()
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d10app/
Dd3d10x11main.cpp52 swa.colormap = cmap; in main()
/external/mesa3d/src/gallium/targets/graw-xlib/
Dgraw_xlib.c108 attr.colormap = XCreateColormap( graw.display, root, visinfo->visual, AllocNone); in graw_create_window_and_screen()

123