Lines Matching refs:colormap
96 % 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[0].red=intensity;
667 image->colormap[0].green=intensity;
668 image->colormap[0].blue=intensity;
671 image->colormap[1].red=(double) QuantumRange-intensity;
672 image->colormap[1].green=(double) QuantumRange-intensity;
673 image->colormap[1].blue=(double) QuantumRange-intensity;
709 % number of colors in the output image (currently log2(colormap size)).
1082 % determines which colormap entry best represents the input color.
1134 p=image->colormap+node_info->color_number;
1183 % CompressImageColormap() compresses an image colormap by removing any
1228 % DefineImageColormap() traverses the color cube tree and notes each colormap
1229 % entry. A colormap entry is any node in the color cube tree where the
1231 % colors in the image colormap.
1273 Colormap entry is defined by the mean color in this cube.
1275 q=image->colormap+image->colors;
1642 Assign pixel to closest colormap entry.
1649 SetPixelRed(image,ClampToQuantum(image->colormap[index].red),
1651 SetPixelGreen(image,ClampToQuantum(image->colormap[index].green),
1653 SetPixelBlue(image,ClampToQuantum(image->colormap[index].blue),
1656 SetPixelAlpha(image,ClampToQuantum(image->colormap[index].alpha),
1664 AssociateAlphaPixelInfo(&cube,image->colormap+index,&color);
1898 Assign pixel to closest colormap entry.
1905 SetPixelRed(image,ClampToQuantum(image->colormap[index].red),q);
1906 SetPixelGreen(image,ClampToQuantum(image->colormap[index].green),q);
1907 SetPixelBlue(image,ClampToQuantum(image->colormap[index].blue),q);
1909 SetPixelAlpha(image,ClampToQuantum(image->colormap[index].alpha),q);
1918 AssociateAlphaPixelInfo(cube_info,image->colormap+index,&color);
2251 beta=(double) (QuantumScale*image->colormap[index].alpha);
2254 image->colormap[index].red));
2260 image->colormap[index].green));
2266 image->colormap[index].blue));
2400 Posterize colormap.
2403 image->colormap[i].red=(double)
2404 PosterizePixel(image->colormap[i].red);
2406 image->colormap[i].green=(double)
2407 PosterizePixel(image->colormap[i].green);
2409 image->colormap[i].blue=(double)
2410 PosterizePixel(image->colormap[i].blue);
2412 image->colormap[i].alpha=(double)
2413 PosterizePixel(image->colormap[i].alpha);
2710 Depth of color tree is: Log4(colormap size)+2.
2830 Depth of color tree is: Log4(colormap size)+2.
3245 Create a global colormap for an image sequence.
3338 *colormap;
3402 image->colormap[image->colors].red=(double)
3404 image->colormap[image->colors].green=(double)
3406 image->colormap[image->colors].blue=(double)
3420 image->colormap[i].alpha=(double) i;
3421 qsort((void *) image->colormap,image->colors,sizeof(PixelInfo),
3423 colormap=(PixelInfo *) AcquireQuantumMemory(image->colors,sizeof(*colormap));
3424 if (colormap == (PixelInfo *) NULL)
3428 colormap[j]=image->colormap[0];
3431 if (IsPixelInfoEquivalent(&colormap[j],&image->colormap[i]) == MagickFalse)
3434 colormap[j]=image->colormap[i];
3436 colormap_index[(ssize_t) image->colormap[i].alpha]=j;
3439 image->colormap=(PixelInfo *) RelinquishMagickMemory(image->colormap);
3440 image->colormap=colormap;