Home
last modified time | relevance | path

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

12

/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.c345 cinfo->colormap = NULL; in master_selection()
346 } else if (cinfo->colormap != NULL) { in master_selection()
472 if (cinfo->quantize_colors && cinfo->colormap == NULL) { in prepare_for_output_pass()
543 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.
Djdapimin.c205 cinfo->colormap = NULL; in default_decompress_parms()
Dlibjpeg.doc240 that is, colormap[i][j] is the value of the i'th color component for pixel
241 value (map index) j. Note that since the colormap indexes are stored in
629 scaling, are available in the JPEG object; so is the selected colormap, if
636 colormap the selected colormap, if any
637 actual_number_of_colors number of entries in colormap
639 output_components is 1 (a colormap index) when quantizing colors; otherwise it
1097 fits-all colormap that is used otherwise. Default is TRUE. Ignored
1106 only in the single-pass, standard-colormap case. If you ask for
1111 two fields. colormap is set to NULL by jpeg_read_header(). The application
1112 can supply a color map by setting colormap non-NULL and setting
[all …]
/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()
Drpng2-x.c282 static Colormap colormap; variable
892 colormap = XCreateColormap(display, root, visual, AllocNone); in rpng2_x_create_window()
893 if (!colormap) { in rpng2_x_create_window()
923 attr.colormap = colormap; in rpng2_x_create_window()
939 XSetWindowColormap(display, window, colormap); in rpng2_x_create_window()
2107 XFreeColormap(display, colormap); in rpng2_x_cleanup()
/external/tesseract/liblept/
Dpix1.c769 pixs->colormap = NULL; /* pixs no longer owns colormap */ in pixTransferAllData()
1288 return pix->colormap; in pixGetColormap()
1307 PIXCMAP *colormap) in pixSetColormap() argument
1315 pix->colormap = colormap; in pixSetColormap()
1336 if ((cmap = pix->colormap) != NULL) { in pixDestroyColormap()
1338 pix->colormap = NULL; in pixDestroyColormap()
Djpegio.c280 rval = cinfo.colormap[0][cindex]; in pixReadStreamJpeg()
281 gval = cinfo.colormap[1][cindex]; in pixReadStreamJpeg()
282 bval = cinfo.colormap[2][cindex]; in pixReadStreamJpeg()
Dpix.h84 struct PixColormap *colormap; /* colormap (may be null) */ member
DMakefile.am25 colormap.c colormorph.c \
/external/webkit/WebCore/plugins/qt/
DPluginViewQt.cpp505 wsi->colormap = platformPluginWidget()->x11Info().colormap(); in init()
/external/webkit/WebCore/plugins/gtk/
Dgtk2xtbin.h142 Colormap colormap; /* colormap */ member
DPluginViewGtk.cpp513 …ws->colormap = GDK_COLORMAP_XCOLORMAP(gdk_drawable_get_colormap(GDK_DRAWABLE(platformPluginWidget(… in init()
519 ws->colormap = GTK_XTBIN(platformPluginWidget())->xtclient.xtcolormap; in init()
/external/tesseract/include/
Dpix.h82 struct PixColormap *colormap; /* colormap (may be null) */ member

12