Home | History | Annotate | Download | only in coders

Lines Matching refs:colormap

52 #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[i].red=ScaleCharToQuantum(pixel);
879 image->colormap[i].green=ScaleCharToQuantum(pixel);
881 image->colormap[i].blue=ScaleCharToQuantum(pixel);
893 image->colormap[i].red=ScaleShortToQuantum(pixel);
895 image->colormap[i].green=ScaleShortToQuantum(pixel);
897 image->colormap[i].blue=ScaleShortToQuantum(pixel);
909 colormap[i].red=ScaleLongToQuantum(pixel);
911 image->colormap[i].green=ScaleLongToQuantum(pixel);
913 image->colormap[i].blue=ScaleLongToQuantum(pixel);
918 colormap=(unsigned char *) RelinquishMagickMemory(colormap);
1390 *colormap,
1394 Allocate colormap.
1397 colormap=(unsigned char *) AcquireQuantumMemory(image->colors,
1398 packet_size*sizeof(*colormap));
1399 if (colormap == (unsigned char *) NULL)
1402 Write colormap to file.
1404 q=colormap;
1416 pixel=ScaleQuantumToLong(image->colormap[i].red);
1418 pixel=ScaleQuantumToLong(image->colormap[i].green);
1420 pixel=ScaleQuantumToLong(image->colormap[i].blue);
1429 pixel=ScaleQuantumToShort(image->colormap[i].red);
1431 pixel=ScaleQuantumToShort(image->colormap[i].green);
1433 pixel=ScaleQuantumToShort(image->colormap[i].blue);
1442 pixel=(unsigned char) ScaleQuantumToChar(image->colormap[i].red);
1445 image->colormap[i].green);
1447 pixel=(unsigned char) ScaleQuantumToChar(image->colormap[i].blue);
1453 (void) WriteBlob(image,packet_size*image->colors,colormap);
1454 colormap=(unsigned char *) RelinquishMagickMemory(colormap);