Lines Matching refs:colormap
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()
891 image->colormap[i].green=ScaleShortToQuantum(pixel); in ReadMPCImage()
893 image->colormap[i].blue=ScaleShortToQuantum(pixel); in ReadMPCImage()
905 image->colormap[i].red=ScaleLongToQuantum(pixel); in ReadMPCImage()
907 image->colormap[i].green=ScaleLongToQuantum(pixel); in ReadMPCImage()
909 image->colormap[i].blue=ScaleLongToQuantum(pixel); in ReadMPCImage()
914 colormap=(unsigned char *) RelinquishMagickMemory(colormap); in ReadMPCImage()
1383 *colormap, in WriteMPCImage() local
1390 colormap=(unsigned char *) AcquireQuantumMemory(image->colors, in WriteMPCImage()
1391 packet_size*sizeof(*colormap)); in WriteMPCImage()
1392 if (colormap == (unsigned char *) NULL) in WriteMPCImage()
1397 q=colormap; in WriteMPCImage()
1409 pixel=ScaleQuantumToLong(image->colormap[i].red); in WriteMPCImage()
1411 pixel=ScaleQuantumToLong(image->colormap[i].green); in WriteMPCImage()
1413 pixel=ScaleQuantumToLong(image->colormap[i].blue); in WriteMPCImage()
1422 pixel=ScaleQuantumToShort(image->colormap[i].red); in WriteMPCImage()
1424 pixel=ScaleQuantumToShort(image->colormap[i].green); in WriteMPCImage()
1426 pixel=ScaleQuantumToShort(image->colormap[i].blue); in WriteMPCImage()
1435 pixel=(unsigned char) ScaleQuantumToChar(image->colormap[i].red); in WriteMPCImage()
1438 image->colormap[i].green); in WriteMPCImage()
1440 pixel=(unsigned char) ScaleQuantumToChar(image->colormap[i].blue); in WriteMPCImage()
1446 (void) WriteBlob(image,packet_size*image->colors,colormap); in WriteMPCImage()
1447 colormap=(unsigned char *) RelinquishMagickMemory(colormap); in WriteMPCImage()