Searched refs:colormap (Results 1 - 25 of 113) sorted by relevance

12345

/external/ImageMagick/coders/
H A Dmap.c50 #include "MagickCore/colormap.h"
51 #include "MagickCore/colormap-private.h"
88 % ReadMAPImage() reads an image of raw RGB colormap and colormap index
136 *colormap,
171 colormap=(unsigned char *) AcquireQuantumMemory(image->colors,packet_size*
172 sizeof(*colormap));
174 (colormap == (unsigned char *) NULL))
177 Read image colormap.
179 count=ReadBlob(image,packet_size*image->colors,colormap);
133 *colormap, local
362 *colormap, local
[all...]
H A Drle.c47 #include "MagickCore/colormap.h"
48 #include "MagickCore/colormap-private.h"
190 *colormap,
264 colormap=(unsigned char *) NULL;
270 colormap=(unsigned char *) AcquireQuantumMemory(number_colormaps,
271 3*map_length*sizeof(*colormap));
272 if (colormap == (unsigned char *) NULL)
274 p=colormap;
399 colormap=(unsigned char *) RelinquishMagickMemory(colormap);
187 *colormap, local
[all...]
H A Dmpc.c52 #include "MagickCore/colormap.h"
839 Create image colormap.
849 *colormap;
852 Read image colormap from file.
855 colormap=(unsigned char *) AcquireQuantumMemory(image->colors,
856 packet_size*sizeof(*colormap));
857 if (colormap == (unsigned char *) NULL)
859 count=ReadBlob(image,packet_size*image->colors,colormap);
863 p=colormap;
877 image->colormap[
845 *colormap; local
1383 *colormap, local
[all...]
H A Dwpg.c46 #include "MagickCore/colormap.h"
47 #include "MagickCore/colormap-private.h"
299 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q);
310 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q);
328 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q);
332 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q);
336 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q);
340 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q);
348 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q);
354 SetPixelViaPixelInfo(image,image->colormap
[all...]
H A Dcut.c58 #include "MagickCore/colormap.h"
59 #include "MagickCore/colormap-private.h"
463 image->colormap[i].red=(Quantum) ReadBlobLSBShort(palette);
466 image->colormap[i].red=ClampToQuantum(((double)
467 image->colormap[i].red*QuantumRange+(PalHeader.MaxRed>>1))/
470 image->colormap[i].green=(Quantum) ReadBlobLSBShort(palette);
473 image->colormap[i].green=ClampToQuantum
474 (((double) image->colormap[i].green*QuantumRange+(PalHeader.MaxGreen>>1))/PalHeader.MaxGreen);
476 image->colormap[i].blue=(Quantum) ReadBlobLSBShort(palette);
479 image->colormap[
[all...]
H A Dgif.c50 #include "MagickCore/colormap.h"
51 #include "MagickCore/colormap-private.h"
169 % o opacity: The colormap index associated with the transparent color.
449 SetPixelViaPixelInfo(image,image->colormap+index,q);
1273 Inititialize colormap.
1283 Use global colormap.
1288 image->colormap[i].red=(double) ScaleCharToQuantum(*p++);
1289 image->colormap[i].green=(double) ScaleCharToQuantum(*p++);
1290 image->colormap[i].blue=(double) ScaleCharToQuantum(*p++);
1293 image->colormap[
1294 *colormap; local
1508 *colormap, local
[all...]
H A Dfax.c47 #include "MagickCore/colormap.h"
223 Monochrome colormap.
225 image->colormap[0].red=QuantumRange;
226 image->colormap[0].green=QuantumRange;
227 image->colormap[0].blue=QuantumRange;
228 image->colormap[1].red=(Quantum) 0;
229 image->colormap[1].green=(Quantum) 0;
230 image->colormap[1].blue=(Quantum) 0;
H A Drgf.c49 #include "MagickCore/colormap.h"
161 Initialize colormap.
163 image->colormap[0].red=QuantumRange;
164 image->colormap[0].green=QuantumRange;
165 image->colormap[0].blue=QuantumRange;
166 image->colormap[1].red=(Quantum) 0;
167 image->colormap[1].green=(Quantum) 0;
168 image->colormap[1].blue=(Quantum) 0;
H A Djbig.c49 #include "MagickCore/colormap.h"
207 Create colormap.
218 image->colormap[0].red=0;
219 image->colormap[0].green=0;
220 image->colormap[0].blue=0;
221 image->colormap[1].red=QuantumRange;
222 image->colormap[1].green=QuantumRange;
223 image->colormap[1].blue=QuantumRange;
261 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q);
H A Dxpm.c50 #include "MagickCore/colormap.h"
377 Read image colormap.
416 status=QueryColorCompliance(target,XPMCompliance,&image->colormap[j],
420 if (image->depth < image->colormap[j].depth)
421 image->depth=image->colormap[j].depth;
454 SetPixelViaPixelInfo(image,image->colormap+j,r);
745 picon->colormap=(PixelInfo *) ResizeQuantumMemory((void **)
746 picon->colormap,(size_t) colors,sizeof(*picon->colormap));
747 if (picon->colormap
[all...]
/external/ImageMagick/MagickCore/
H A Dcolormap.c52 #include "MagickCore/colormap.h"
87 % AcquireImageColormap() allocates an image colormap and initializes
88 % it to a linear gray colorspace. If the image already has a colormap,
101 % o colors: the number of colors in the image colormap.
113 Allocate image colormap.
120 if (image->colormap == (PixelInfo *) NULL)
121 image->colormap=(PixelInfo *) AcquireQuantumMemory(image->colors,
122 sizeof(*image->colormap));
124 image->colormap=(PixelInfo *) ResizeQuantumMemory(image->colormap,
[all...]
H A Denhance.c738 Apply transfer function to colormap.
743 luma=0.21267f*image->colormap[i].red+0.71526*image->colormap[i].green+
744 0.07217f*image->colormap[i].blue;
745 image->colormap[i].red=luma+color_correction.saturation*cdl_map[
746 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].red))].red-luma;
747 image->colormap[i].green=luma+color_correction.saturation*cdl_map[
748 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].green))].green-luma;
749 image->colormap[i].blue=luma+color_correction.saturation*cdl_map[
750 ScaleQuantumToMap(ClampToQuantum(image->colormap[
[all...]
H A Dquantize.c96 % number of colors in the output image (currently log2(colormap size)).
182 #include "MagickCore/colormap.h"
510 Allocate image colormap.
620 image->colormap[index].red),q);
622 image->colormap[index].green),q);
624 image->colormap[index].blue),q);
627 image->colormap[index].alpha),q);
663 (GetPixelInfoLuma(image->colormap+0) >
664 GetPixelInfoLuma(image->colormap+1)))
666 image->colormap[
3308 *colormap; local
[all...]
/external/mesa3d/docs/
H A 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.
/external/libjpeg-turbo/
H A Drdbmp.c61 JSAMPARRAY colormap; /* BMP colormap (converted to my format) */ member in struct:_bmp_source_struct
86 /* Read the colormap from a BMP file */
94 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo);
95 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo);
96 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo);
102 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo);
103 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo);
104 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo);
124 /* This version is for reading 8-bit colormap indexe
127 register JSAMPARRAY colormap = source->colormap; local
[all...]
H A Dwrrle.c59 rle_map *colormap; /* RLE-style color map, or NULL if none */ member in struct:__anon9929
112 /* Convert colormap, if any, to RLE format. */
114 dest->colormap = NULL;
119 dest->colormap = (rle_map *) (*cinfo->mem->alloc_small)
121 MEMZERO(dest->colormap, cmapsize);
127 dest->colormap[ci * CMAPLENGTH + i] =
128 GETJSAMPLE(cinfo->colormap[ci][i]) << 8;
202 header.cmap = dest->colormap;
203 /* Add a comment to the output image with the true colormap length. */
H A Drdcolmap.c9 * and constructs a colormap to be supplied to the JPEG decompressor.
12 * GIF: the contents of the GIF's global colormap are used.
48 JSAMPROW colormap0 = cinfo->colormap[0];
49 JSAMPROW colormap1 = cinfo->colormap[1];
50 JSAMPROW colormap2 = cinfo->colormap[2];
227 * Output: colormap and actual_number_of_colors fields are set in cinfo.
234 cinfo->colormap = (*cinfo->mem->alloc_sarray)
H A Drdtarga.c55 JSAMPARRAY colormap; /* Targa colormap (converted to my format) */ member in struct:_tga_source_struct
103 /* Read the colormap from a Targa file */
112 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo);
113 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo);
114 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo);
192 /* This version is for reading 8-bit colormap indexes */
198 register JSAMPARRAY colormap = source->colormap; local
204 *ptr++ = colormap[
[all...]
H A Drdrle.c44 * GRAYSCALE - 8 bits, no colormap
46 * PSEUDOCOLOR - 8 bits, 3 channel colormap
47 * TRUECOLOR - 24 bits, 3 channel colormap
48 * DIRECTCOLOR - 24 bits, no colormap
212 rle_map *colormap; local
215 colormap = source->header.cmap;
223 *dest_row++ = (JSAMPLE) (colormap[val ] >> 8);
224 *dest_row++ = (JSAMPLE) (colormap[val + 256] >> 8);
225 *dest_row++ = (JSAMPLE) (colormap[val + 512] >> 8);
249 rle_map *colormap; local
[all...]
H A Dwrgif.c212 /* Emit 3 copies of same byte value --- handy subr for colormap construction */
221 emit_header (gif_dest_ptr dinfo, int num_colors, JSAMPARRAY colormap) argument
223 /* If colormap==NULL, synthesize a grayscale colormap */
264 if (colormap != NULL) {
267 putc(GETJSAMPLE(colormap[0][i]) >> cshift, dinfo->pub.output_file);
268 putc(GETJSAMPLE(colormap[1][i]) >> cshift, dinfo->pub.output_file);
269 putc(GETJSAMPLE(colormap[2][i]) >> cshift, dinfo->pub.output_file);
272 put_3bytes(dinfo, GETJSAMPLE(colormap[0][i]) >> cshift);
309 emit_header(dest, cinfo->actual_number_of_colors, cinfo->colormap);
[all...]
H A Dwrbmp.c190 /* Write a Windows-style BMP file header, including colormap if needed */
205 /* Compute colormap size and total file size */
220 /* Grayscale output. We need to fake a 256-entry colormap. */
225 headersize = 14 + 40 + cmap_entries * 4; /* Header and colormap */
266 /* Write an OS2-style BMP file header, including colormap if needed */
273 /* Compute colormap size and total file size */
288 /* Grayscale output. We need to fake a 256-entry colormap. */
293 headersize = 14 + 12 + cmap_entries * 3; /* Header and colormap */
325 * Write the colormap.
333 JSAMPARRAY colormap local
[all...]
H A Dwrppm.c119 register JSAMPROW color_map0 = cinfo->colormap[0];
120 register JSAMPROW color_map1 = cinfo->colormap[1];
121 register JSAMPROW color_map2 = cinfo->colormap[2];
143 register JSAMPROW color_map = cinfo->colormap[0];
225 /* When quantizing, we need an output buffer for colormap indexes
/external/ImageMagick/www/api/
H A Dcolormap.php15 <meta name="keywords" content="magickcore, c, api, for, imagemagick:, colormap, methods, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert"/>
55 <p class="text-center"><a href="colormap.php#AcquireImageColormap">AcquireImageColormap</a> &bull; <a href="colormap.php#CycleColormap">CycleColormap</a></p>
59 <p>AcquireImageColormap() allocates an image colormap and initializes it to a linear gray colorspace. If the image already has a colormap, it is replaced. AcquireImageColormap() returns MagickTrue if successful, otherwise MagickFalse if there is not enough memory.</p>
80 <dd>the number of colors in the image colormap. </dd>
90 <p>CycleColormap() displaces an image's colormap by a given number of positions. If you cycle the colormap a number of times you can produce a psychodelic effect.</p>
92 <p>WARNING: this assumes an images colormap is in a well know and defined order. Currently Imagemagick has no way of setting that order.</p>
113 <dd> displace the colormap thi
[all...]
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/
H A Dplot_dynamics.py87 colormap = {'Available0':'#AAAAAA',
103 if key in colormap:
104 plt.setp(line, color=colormap[key])
/external/autotest/client/deps/glbench/src/
H A Dxlib_window.cc50 attr.colormap = XCreateColormap(g_xlib_display, root_window,

Completed in 694 milliseconds

12345