/external/ImageMagick/coders/ |
D | map.c | 133 *colormap, in ReadMAPImage() local 168 colormap=(unsigned char *) AcquireQuantumMemory(image->colors,packet_size* in ReadMAPImage() 169 sizeof(*colormap)); in ReadMAPImage() 171 (colormap == (unsigned char *) NULL)) in ReadMAPImage() 176 count=ReadBlob(image,packet_size*image->colors,colormap); in ReadMAPImage() 179 p=colormap; in ReadMAPImage() 183 image->colormap[i].red=ScaleCharToQuantum(*p++); in ReadMAPImage() 184 image->colormap[i].green=ScaleCharToQuantum(*p++); in ReadMAPImage() 185 image->colormap[i].blue=ScaleCharToQuantum(*p++); in ReadMAPImage() 192 image->colormap[i].red=(Quantum) quantum; in ReadMAPImage() [all …]
|
D | rle.c | 187 *colormap, in ReadRLEImage() local 261 colormap=(unsigned char *) NULL; in ReadRLEImage() 267 colormap=(unsigned char *) AcquireQuantumMemory(number_colormaps, in ReadRLEImage() 268 3*map_length*sizeof(*colormap)); in ReadRLEImage() 269 if (colormap == (unsigned char *) NULL) in ReadRLEImage() 271 p=colormap; in ReadRLEImage() 396 colormap=(unsigned char *) RelinquishMagickMemory(colormap); in ReadRLEImage() 428 colormap=(unsigned char *) RelinquishMagickMemory(colormap); in ReadRLEImage() 463 *p=colormap[(ssize_t) index]; in ReadRLEImage() 473 *p=colormap[(ssize_t) index]; in ReadRLEImage() [all …]
|
D | gif.c | 444 SetPixelViaPixelInfo(image,image->colormap+index,q); in DecodeImage() 1279 image->colormap[i].red=(double) ScaleCharToQuantum(*p++); in ReadGIFImage() 1280 image->colormap[i].green=(double) ScaleCharToQuantum(*p++); in ReadGIFImage() 1281 image->colormap[i].blue=(double) ScaleCharToQuantum(*p++); in ReadGIFImage() 1284 image->colormap[i].alpha=(double) TransparentAlpha; in ReadGIFImage() 1285 image->transparent_color=image->colormap[opacity]; in ReadGIFImage() 1288 image->background_color=image->colormap[MagickMin((ssize_t) background, in ReadGIFImage() 1294 *colormap; in ReadGIFImage() local 1299 colormap=(unsigned char *) AcquireQuantumMemory(image->colors,3* in ReadGIFImage() 1300 sizeof(*colormap)); in ReadGIFImage() [all …]
|
D | wpg.c | 295 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow() 306 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow() 324 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow() 328 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow() 332 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow() 336 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow() 344 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow() 350 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow() 357 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow() 377 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow() [all …]
|
D | mpc.c | 845 *colormap; in ReadMPCImage() local 851 colormap=(unsigned char *) AcquireQuantumMemory(image->colors, in ReadMPCImage() 852 packet_size*sizeof(*colormap)); in ReadMPCImage() 853 if (colormap == (unsigned char *) NULL) in ReadMPCImage() 855 count=ReadBlob(image,packet_size*image->colors,colormap); in ReadMPCImage() 859 p=colormap; in ReadMPCImage() 873 image->colormap[i].red=ScaleCharToQuantum(pixel); in ReadMPCImage() 875 image->colormap[i].green=ScaleCharToQuantum(pixel); in ReadMPCImage() 877 image->colormap[i].blue=ScaleCharToQuantum(pixel); in ReadMPCImage() 889 image->colormap[i].red=ScaleShortToQuantum(pixel); in ReadMPCImage() [all …]
|
D | cut.c | 459 image->colormap[i].red=(Quantum) ReadBlobLSBShort(palette); in ReadCUTImage() 462 image->colormap[i].red=ClampToQuantum(((double) in ReadCUTImage() 463 image->colormap[i].red*QuantumRange+(PalHeader.MaxRed>>1))/ in ReadCUTImage() 466 image->colormap[i].green=(Quantum) ReadBlobLSBShort(palette); in ReadCUTImage() 469 image->colormap[i].green=ClampToQuantum in ReadCUTImage() 470 … (((double) image->colormap[i].green*QuantumRange+(PalHeader.MaxGreen>>1))/PalHeader.MaxGreen); in ReadCUTImage() 472 image->colormap[i].blue=(Quantum) ReadBlobLSBShort(palette); in ReadCUTImage() 475 image->colormap[i].blue=ClampToQuantum in ReadCUTImage() 476 … (((double)image->colormap[i].blue*QuantumRange+(PalHeader.MaxBlue>>1))/PalHeader.MaxBlue); in ReadCUTImage() 497 image->colormap[i].red=ScaleCharToQuantum((unsigned char) i); in ReadCUTImage() [all …]
|
D | xpm.c | 412 status=QueryColorCompliance(target,XPMCompliance,&image->colormap[j], in ReadXPMImage() 416 if (image->depth < image->colormap[j].depth) in ReadXPMImage() 417 image->depth=image->colormap[j].depth; in ReadXPMImage() 450 SetPixelViaPixelInfo(image,image->colormap+j,r); in ReadXPMImage() 738 picon->colormap=(PixelInfo *) ResizeQuantumMemory((void **) in WritePICONImage() 739 picon->colormap,(size_t) colors,sizeof(*picon->colormap)); in WritePICONImage() 740 if (picon->colormap == (PixelInfo *) NULL) in WritePICONImage() 782 pixel=picon->colormap[i]; in WritePICONImage() 943 if (image->colormap[i].alpha != OpaqueAlpha) in WriteXPMImage() 951 image->colormap[i].alpha; in WriteXPMImage() [all …]
|
D | fax.c | 221 image->colormap[0].red=QuantumRange; in ReadFAXImage() 222 image->colormap[0].green=QuantumRange; in ReadFAXImage() 223 image->colormap[0].blue=QuantumRange; in ReadFAXImage() 224 image->colormap[1].red=(Quantum) 0; in ReadFAXImage() 225 image->colormap[1].green=(Quantum) 0; in ReadFAXImage() 226 image->colormap[1].blue=(Quantum) 0; in ReadFAXImage()
|
D | rgf.c | 160 image->colormap[0].red=QuantumRange; in ReadRGFImage() 161 image->colormap[0].green=QuantumRange; in ReadRGFImage() 162 image->colormap[0].blue=QuantumRange; in ReadRGFImage() 163 image->colormap[1].red=(Quantum) 0; in ReadRGFImage() 164 image->colormap[1].green=(Quantum) 0; in ReadRGFImage() 165 image->colormap[1].blue=(Quantum) 0; in ReadRGFImage()
|
D | jbig.c | 215 image->colormap[0].red=0; in ReadJBIGImage() 216 image->colormap[0].green=0; in ReadJBIGImage() 217 image->colormap[0].blue=0; in ReadJBIGImage() 218 image->colormap[1].red=QuantumRange; in ReadJBIGImage() 219 image->colormap[1].green=QuantumRange; in ReadJBIGImage() 220 image->colormap[1].blue=QuantumRange; in ReadJBIGImage() 258 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in ReadJBIGImage()
|
D | pcx.c | 370 image->colormap[i].red=ScaleCharToQuantum(*p++); in ReadPCXImage() 371 image->colormap[i].green=ScaleCharToQuantum(*p++); in ReadPCXImage() 372 image->colormap[i].blue=ScaleCharToQuantum(*p++); in ReadPCXImage() 465 image->colormap[0].red=(Quantum) 0; in ReadPCXImage() 466 image->colormap[0].green=(Quantum) 0; in ReadPCXImage() 467 image->colormap[0].blue=(Quantum) 0; in ReadPCXImage() 468 image->colormap[1].red=QuantumRange; in ReadPCXImage() 469 image->colormap[1].green=QuantumRange; in ReadPCXImage() 470 image->colormap[1].blue=QuantumRange; in ReadPCXImage() 483 image->colormap[i].red=ScaleCharToQuantum(*p++); in ReadPCXImage() [all …]
|
D | miff.c | 1169 *colormap; in ReadMIFFImage() local 1175 colormap=(unsigned char *) AcquireQuantumMemory(image->colors, in ReadMIFFImage() 1176 packet_size*sizeof(*colormap)); in ReadMIFFImage() 1177 if (colormap == (unsigned char *) NULL) in ReadMIFFImage() 1179 count=ReadBlob(image,packet_size*image->colors,colormap); in ReadMIFFImage() 1180 p=colormap; in ReadMIFFImage() 1194 image->colormap[i].red=ScaleCharToQuantum(pixel); in ReadMIFFImage() 1196 image->colormap[i].green=ScaleCharToQuantum(pixel); in ReadMIFFImage() 1198 image->colormap[i].blue=ScaleCharToQuantum(pixel); in ReadMIFFImage() 1210 image->colormap[i].red=ScaleShortToQuantum(pixel); in ReadMIFFImage() [all …]
|
D | palm.c | 370 image->colormap[index].red=(MagickRealType) in ReadPALMImage() 372 image->colormap[index].green=(MagickRealType) in ReadPALMImage() 374 image->colormap[index].blue=(MagickRealType) in ReadPALMImage() 382 image->colormap[index].red=(MagickRealType) in ReadPALMImage() 384 image->colormap[index].green=(MagickRealType) in ReadPALMImage() 386 image->colormap[index].blue=(MagickRealType) in ReadPALMImage() 503 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in ReadPALMImage() 529 transpix=image->colormap[index]; in ReadPALMImage() 816 image->colormap[count].red))); in WritePALMImage() 818 image->colormap[count].green))); in WritePALMImage() [all …]
|
/external/opencv3/modules/imgproc/src/ |
D | colormap.cpp | 134 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/ImageMagick/MagickCore/ |
D | colormap.c | 118 if (image->colormap == (PixelInfo *) NULL) in AcquireImageColormap() 119 image->colormap=(PixelInfo *) AcquireQuantumMemory(image->colors, in AcquireImageColormap() 120 sizeof(*image->colormap)); in AcquireImageColormap() 122 image->colormap=(PixelInfo *) ResizeQuantumMemory(image->colormap, in AcquireImageColormap() 123 image->colors,sizeof(*image->colormap)); in AcquireImageColormap() 124 if (image->colormap == (PixelInfo *) NULL) in AcquireImageColormap() 137 GetPixelInfo(image,image->colormap+i); in AcquireImageColormap() 138 image->colormap[i].alpha_trait=BlendPixelTrait; in AcquireImageColormap() 139 image->colormap[i].red=pixel; in AcquireImageColormap() 140 image->colormap[i].green=pixel; in AcquireImageColormap() [all …]
|
D | enhance.c | 737 luma=0.21267f*image->colormap[i].red+0.71526*image->colormap[i].green+ in ColorDecisionListImage() 738 0.07217f*image->colormap[i].blue; in ColorDecisionListImage() 739 image->colormap[i].red=luma+color_correction.saturation*cdl_map[ in ColorDecisionListImage() 740 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].red))].red-luma; in ColorDecisionListImage() 741 image->colormap[i].green=luma+color_correction.saturation*cdl_map[ in ColorDecisionListImage() 742 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].green))].green-luma; in ColorDecisionListImage() 743 image->colormap[i].blue=luma+color_correction.saturation*cdl_map[ in ColorDecisionListImage() 744 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].blue))].blue-luma; in ColorDecisionListImage() 909 red=(double) image->colormap[i].red; in ContrastImage() 910 green=(double) image->colormap[i].green; in ContrastImage() [all …]
|
D | quantize.c | 614 image->colormap[index].red),q); in AssignImageColors() 616 image->colormap[index].green),q); in AssignImageColors() 618 image->colormap[index].blue),q); in AssignImageColors() 621 image->colormap[index].alpha),q); in AssignImageColors() 657 (GetPixelInfoLuma(image->colormap+0) > in AssignImageColors() 658 GetPixelInfoLuma(image->colormap+1))) in AssignImageColors() 660 image->colormap[0].red=intensity; in AssignImageColors() 661 image->colormap[0].green=intensity; in AssignImageColors() 662 image->colormap[0].blue=intensity; in AssignImageColors() 665 image->colormap[1].red=(double) QuantumRange-intensity; in AssignImageColors() [all …]
|
D | xwindow.c | 1026 MagickPrivate void XBestPixel(Display *display,const Colormap colormap, in XBestPixel() argument 1054 status=XAllocColor(display,colormap,color); in XBestPixel() 1074 (void) XQueryColors(display,colormap,colors,(int) number_colors); in XBestPixel() 1097 (void) XAllocColor(display,colormap,&colors[j]); in XBestPixel() 1319 *colormap[MaxStandardColormaps]= in XBestVisualInfo() local 1335 map_property=XInternAtom(display,(char *) colormap[i],MagickTrue); in XBestVisualInfo() 1374 if (map_info->colormap == (Colormap) NULL) in XBestVisualInfo() 1694 colormap; in XConfigureImageColormap() local 1703 colormap=windows->map_info->colormap; in XConfigureImageColormap() 1704 (void) XSetWindowColormap(display,windows->image.id,colormap); in XConfigureImageColormap() [all …]
|
/external/mesa3d/docs/ |
D | MESA_pixmap_colormap.spec | 33 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/ |
D | rdbmp.c | 61 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 …]
|
D | rdtarga.c | 55 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()
|
D | wrrle.c | 59 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()
|
D | rdrle.c | 212 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()
|
D | wrgif.c | 221 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()
|
D | wrbmp.c | 333 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()
|