Home
last modified time | relevance | path

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

123

/external/opencv3/modules/imgproc/src/
Dcolormap.cpp134 namespace colormap namespace
530 void applyColorMap(InputArray src, OutputArray dst, int colormap) in applyColorMap() argument
532 colormap::ColorMap* cm = in applyColorMap()
533 colormap == COLORMAP_AUTUMN ? (colormap::ColorMap*)(new colormap::Autumn) : in applyColorMap()
534 colormap == COLORMAP_BONE ? (colormap::ColorMap*)(new colormap::Bone) : in applyColorMap()
535 colormap == COLORMAP_COOL ? (colormap::ColorMap*)(new colormap::Cool) : in applyColorMap()
536 colormap == COLORMAP_HOT ? (colormap::ColorMap*)(new colormap::Hot) : in applyColorMap()
537 colormap == COLORMAP_HSV ? (colormap::ColorMap*)(new colormap::HSV) : in applyColorMap()
538 colormap == COLORMAP_JET ? (colormap::ColorMap*)(new colormap::Jet) : in applyColorMap()
539 colormap == COLORMAP_OCEAN ? (colormap::ColorMap*)(new colormap::Ocean) : in applyColorMap()
[all …]
/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/libjpeg-turbo/
Drdbmp.c61 JSAMPARRAY colormap; /* BMP colormap (converted to my format) */ member
94 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
95 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
96 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
102 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
103 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
104 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
127 register JSAMPARRAY colormap = source->colormap; in get_8bit_row() local
144 *outptr++ = colormap[0][t]; /* can omit GETJSAMPLE() safely */ in get_8bit_row()
145 *outptr++ = colormap[1][t]; in get_8bit_row()
[all …]
Drdtarga.c55 JSAMPARRAY colormap; /* Targa colormap (converted to my format) */ member
112 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
113 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
114 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
198 register JSAMPARRAY colormap = source->colormap; in get_8bit_row() local
204 *ptr++ = colormap[0][t]; in get_8bit_row()
205 *ptr++ = colormap[1][t]; in get_8bit_row()
206 *ptr++ = colormap[2][t]; in get_8bit_row()
453 source->colormap = (*cinfo->mem->alloc_sarray) in start_input_tga()
460 source->colormap = NULL; in start_input_tga()
Dwrrle.c59 rle_map *colormap; /* RLE-style color map, or NULL if none */ member
114 dest->colormap = NULL; in start_output_rle()
119 dest->colormap = (rle_map *) (*cinfo->mem->alloc_small) in start_output_rle()
121 MEMZERO(dest->colormap, cmapsize); in start_output_rle()
127 dest->colormap[ci * CMAPLENGTH + i] = in start_output_rle()
128 GETJSAMPLE(cinfo->colormap[ci][i]) << 8; in start_output_rle()
202 header.cmap = dest->colormap; in finish_output_rle()
Drdrle.c212 rle_map *colormap; in get_pseudocolor_row() local
215 colormap = source->header.cmap; in get_pseudocolor_row()
223 *dest_row++ = (JSAMPLE) (colormap[val ] >> 8); in get_pseudocolor_row()
224 *dest_row++ = (JSAMPLE) (colormap[val + 256] >> 8); in get_pseudocolor_row()
225 *dest_row++ = (JSAMPLE) (colormap[val + 512] >> 8); in get_pseudocolor_row()
249 rle_map *colormap; in load_image() local
255 colormap = source->header.cmap; in load_image()
299 (colormap[GETJSAMPLE(rle_row[channel][col]) + 256 * channel] >> 8); in load_image()
Dwrgif.c221 emit_header (gif_dest_ptr dinfo, int num_colors, JSAMPARRAY colormap) in emit_header() argument
264 if (colormap != NULL) { in emit_header()
267 putc(GETJSAMPLE(colormap[0][i]) >> cshift, dinfo->pub.output_file); in emit_header()
268 putc(GETJSAMPLE(colormap[1][i]) >> cshift, dinfo->pub.output_file); in emit_header()
269 putc(GETJSAMPLE(colormap[2][i]) >> cshift, dinfo->pub.output_file); in emit_header()
272 put_3bytes(dinfo, GETJSAMPLE(colormap[0][i]) >> cshift); in emit_header()
309 emit_header(dest, cinfo->actual_number_of_colors, cinfo->colormap); in start_output_gif()
Dwrbmp.c333 JSAMPARRAY colormap = cinfo->colormap; in write_colormap() local
338 if (colormap != NULL) { in write_colormap()
342 putc(GETJSAMPLE(colormap[2][i]), outfile); in write_colormap()
343 putc(GETJSAMPLE(colormap[1][i]), outfile); in write_colormap()
344 putc(GETJSAMPLE(colormap[0][i]), outfile); in write_colormap()
351 putc(GETJSAMPLE(colormap[0][i]), outfile); in write_colormap()
352 putc(GETJSAMPLE(colormap[0][i]), outfile); in write_colormap()
353 putc(GETJSAMPLE(colormap[0][i]), outfile); in write_colormap()
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.c143 register JSAMPROW color_map0 = cinfo->colormap[0]; in put_demapped_gray()
184 putc(GETJSAMPLE(cinfo->colormap[2][i]), outfile); in start_output_tga()
185 putc(GETJSAMPLE(cinfo->colormap[1][i]), outfile); in start_output_tga()
186 putc(GETJSAMPLE(cinfo->colormap[0][i]), outfile); in start_output_tga()
Dwrppm.c119 register JSAMPROW color_map0 = cinfo->colormap[0]; in put_demapped_rgb()
120 register JSAMPROW color_map1 = cinfo->colormap[1]; in put_demapped_rgb()
121 register JSAMPROW color_map2 = cinfo->colormap[2]; in put_demapped_rgb()
143 register JSAMPROW color_map = cinfo->colormap[0]; in put_demapped_gray()
Djquant2.c511 cinfo->colormap[0][icolor] = (JSAMPLE) ((c0total + (total>>1)) / total); in compute_color()
512 cinfo->colormap[1][icolor] = (JSAMPLE) ((c1total + (total>>1)) / total); in compute_color()
513 cinfo->colormap[2][icolor] = (JSAMPLE) ((c2total + (total>>1)) / total); in compute_color()
668 x = GETJSAMPLE(cinfo->colormap[0][i]); in find_nearby_colors()
691 x = GETJSAMPLE(cinfo->colormap[1][i]); in find_nearby_colors()
713 x = GETJSAMPLE(cinfo->colormap[2][i]); in find_nearby_colors()
793 inc0 = (minc0 - GETJSAMPLE(cinfo->colormap[0][icolor])) * C0_SCALE; in find_best_colors()
795 inc1 = (minc1 - GETJSAMPLE(cinfo->colormap[1][icolor])) * C1_SCALE; in find_best_colors()
797 inc2 = (minc2 - GETJSAMPLE(cinfo->colormap[2][icolor])) * C2_SCALE; in find_best_colors()
948 JSAMPROW colormap0 = cinfo->colormap[0]; in pass2_fs_dither()
[all …]
Djquant1.c278 JSAMPARRAY colormap; /* Created colormap */ in create_colormap() local
297 colormap = (*cinfo->mem->alloc_sarray) in create_colormap()
316 colormap[i][ptr+k] = (JSAMPLE) val; in create_colormap()
325 cquantize->sv_colormap = colormap; in create_colormap()
748 cinfo->colormap = cquantize->sv_colormap; in start_pass_1_quant()
Djdmaster.c486 cinfo->colormap = NULL; in master_selection()
487 } else if (cinfo->colormap != NULL) { in master_selection()
623 if (cinfo->quantize_colors && cinfo->colormap == NULL) { in prepare_for_output_pass()
694 cinfo->colormap != NULL) { in jpeg_new_colormap()
/external/libpng/
Dpngwrite.c1500 png_const_voidp colormap; member
1774 const void *cmap = display->colormap; in png_image_set_PLTE()
1927 int colormap = (format & PNG_FORMAT_FLAG_COLORMAP); in png_image_write_main() local
1928 int linear = !colormap && (format & PNG_FORMAT_FLAG_LINEAR); /* input */ in png_image_write_main()
1929 int alpha = !colormap && (format & PNG_FORMAT_FLAG_ALPHA); in png_image_write_main()
1930 int write_16bit = linear && !colormap && (display->convert_to_8bit == 0); in png_image_write_main()
1978 if (display->colormap != NULL && image->colormap_entries > 0) in png_image_write_main()
2051 if (colormap == 0 && (format & PNG_FORMAT_FLAG_COLOR) != 0) in png_image_write_main()
2060 if (colormap == 0 && (format & PNG_FORMAT_FLAG_ALPHA) != 0) in png_image_write_main()
2069 if (colormap != 0 && image->colormap_entries <= 16) in png_image_write_main()
[all …]
Dpngread.c1263 png_voidp colormap; member
1863 png_uint_16p entry = png_voidcast(png_uint_16p, display->colormap); in png_create_colormap_entry()
1918 png_bytep entry = png_voidcast(png_bytep, display->colormap); in png_create_colormap_entry()
2706 if (memcmp((png_const_bytep)display->colormap + in png_image_read_colormap()
2708 (png_const_bytep)display->colormap + in png_image_read_colormap()
2780 png_const_colorp colormap = png_ptr->palette; in png_image_read_colormap() local
2812 png_colormap_compose(display, colormap[i].red, P_FILE, in png_image_read_colormap()
2814 png_colormap_compose(display, colormap[i].green, P_FILE, in png_image_read_colormap()
2816 png_colormap_compose(display, colormap[i].blue, P_FILE, in png_image_read_colormap()
2825 png_create_colormap_entry(display, i, colormap[i].red, in png_image_read_colormap()
[all …]
/external/opencv3/3rdparty/libjpeg/
Djquant2.c533 cinfo->colormap[0][icolor] = (JSAMPLE) ((c0total + (total>>1)) / total); in compute_color()
534 cinfo->colormap[1][icolor] = (JSAMPLE) ((c1total + (total>>1)) / total); in compute_color()
535 cinfo->colormap[2][icolor] = (JSAMPLE) ((c2total + (total>>1)) / total); in compute_color()
690 x = GETJSAMPLE(cinfo->colormap[0][i]); in find_nearby_colors()
713 x = GETJSAMPLE(cinfo->colormap[1][i]); in find_nearby_colors()
735 x = GETJSAMPLE(cinfo->colormap[2][i]); in find_nearby_colors()
815 inc0 = (minc0 - GETJSAMPLE(cinfo->colormap[0][icolor])) * C0_SCALE; in find_best_colors()
817 inc1 = (minc1 - GETJSAMPLE(cinfo->colormap[1][icolor])) * C1_SCALE; in find_best_colors()
819 inc2 = (minc2 - GETJSAMPLE(cinfo->colormap[2][icolor])) * C2_SCALE; in find_best_colors()
970 JSAMPROW colormap0 = cinfo->colormap[0]; in pass2_fs_dither()
[all …]
Djdmaster.c307 cinfo->colormap = NULL; in master_selection()
308 } else if (cinfo->colormap != NULL) { in master_selection()
427 if (cinfo->quantize_colors && cinfo->colormap == NULL) { in prepare_for_output_pass()
498 cinfo->colormap != NULL) { in jpeg_new_colormap()
Djquant1.c277 JSAMPARRAY colormap; /* Created colormap */ in create_colormap() local
296 colormap = (*cinfo->mem->alloc_sarray) in create_colormap()
315 colormap[i][ptr+k] = (JSAMPLE) val; in create_colormap()
324 cquantize->sv_colormap = colormap; in create_colormap()
749 cinfo->colormap = cquantize->sv_colormap; in start_pass_1_quant()
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/
Dplot_dynamics.py87 colormap = {'Available0':'#AAAAAA',
103 if key in colormap:
104 plt.setp(line, color=colormap[key])
/external/libpng/contrib/gregbook/
Drpng-x.c150 static Colormap colormap; variable
515 colormap = XCreateColormap(display, root, visual, AllocNone); in rpng_x_create_window()
516 if (!colormap) { in rpng_x_create_window()
551 attr.colormap = colormap; in rpng_x_create_window()
567 XSetWindowColormap(display, window, colormap); in rpng_x_create_window()
890 XFreeColormap(display, colormap); in rpng_x_cleanup()
/external/pdfium/third_party/lpng_v163/
Dpngwrite.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 …]
Dpngread.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/pdfium/third_party/libjpeg/
Dfpdfapi_jdmaster.c326 cinfo->colormap = NULL; in master_selection()
327 } else if (cinfo->colormap != NULL) { in master_selection()
453 if (cinfo->quantize_colors && cinfo->colormap == NULL) { in prepare_for_output_pass()
524 cinfo->colormap != NULL) { in jpeg_new_colormap()

123