Lines Matching refs:pixel
64 #include "MagickCore/pixel.h"
65 #include "MagickCore/pixel-accessor.h"
66 #include "MagickCore/pixel-private.h"
88 % ImportQuantumPixels() transfers one or more pixel components from a user
89 % supplied buffer into the image pixel cache of an image. The pixels are
107 % o quantum_type: Declare which pixel components to transfer (red, green,
110 % o pixels: The pixel components are transferred from this buffer.
126 const unsigned char *magick_restrict pixels,double *pixel)
145 *pixel=(*p);
146 *pixel-=quantum_info->minimum;
147 *pixel*=quantum_info->scale;
159 *pixel=(*p);
160 *pixel-=quantum_info->minimum;
161 *pixel*=quantum_info->scale;
166 const unsigned char *magick_restrict pixels,float *pixel)
181 *pixel=(*p);
182 *pixel-=quantum_info->minimum;
183 *pixel*=quantum_info->scale;
191 *pixel=(*p);
192 *pixel-=quantum_info->minimum;
193 *pixel*=quantum_info->scale;
211 quantum_info->state.pixel=(*pixels++);
220 ((quantum_info->state.pixel >> quantum_info->state.bits) &~ ((~0UL) <<
242 &quantum_info->state.pixel);
248 *quantum|=(((quantum_info->state.pixel >> (32U-quantum_info->state.bits)) &
267 pixel;
276 pixel;
280 p=PushCharPixel(p,&pixel);
281 SetPixelAlpha(image,ScaleCharToQuantum(pixel),q);
290 pixel;
296 p=PushShortPixel(quantum_info->endian,p,&pixel);
298 HalfToSinglePrecision(pixel)),q);
306 p=PushShortPixel(quantum_info->endian,p,&pixel);
307 SetPixelAlpha(image,ScaleShortToQuantum(pixel),q);
316 pixel;
321 pixel;
325 p=PushFloatPixel(quantum_info,p,&pixel);
326 SetPixelAlpha(image,ClampToQuantum(pixel),q);
334 p=PushLongPixel(quantum_info->endian,p,&pixel);
335 SetPixelAlpha(image,ScaleLongToQuantum(pixel),q);
346 pixel;
350 p=PushDoublePixel(quantum_info,p,&pixel);
351 SetPixelAlpha(image,ClampToQuantum(pixel),q);
363 p=PushQuantumPixel(quantum_info,p,&pixel);
364 SetPixelAlpha(image,ScaleAnyToQuantum(pixel,range),q);
387 pixel;
396 pixel;
400 p=PushCharPixel(p,&pixel);
401 SetPixelBlue(image,ScaleCharToQuantum(pixel),q);
402 p=PushCharPixel(p,&pixel);
403 SetPixelGreen(image,ScaleCharToQuantum(pixel),q);
404 p=PushCharPixel(p,&pixel);
405 SetPixelRed(image,ScaleCharToQuantum(pixel),q);
419 p=PushLongPixel(quantum_info->endian,p,&pixel);
420 SetPixelRed(image,ScaleAnyToQuantum((pixel >> 22) & 0x3ff,range),q);
421 SetPixelGreen(image,ScaleAnyToQuantum((pixel >> 12) & 0x3ff,range),
423 SetPixelBlue(image,ScaleAnyToQuantum((pixel >> 2) & 0x3ff,range),q);
433 p=PushQuantumLongPixel(quantum_info,p,&pixel);
434 SetPixelBlue(image,ScaleAnyToQuantum(pixel,range),q);
435 p=PushQuantumLongPixel(quantum_info,p,&pixel);
436 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
437 p=PushQuantumLongPixel(quantum_info,p,&pixel);
438 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
445 p=PushQuantumPixel(quantum_info,p,&pixel);
446 SetPixelBlue(image,ScaleAnyToQuantum(pixel,range),q);
447 p=PushQuantumPixel(quantum_info,p,&pixel);
448 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
449 p=PushQuantumPixel(quantum_info,p,&pixel);
450 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
461 pixel;
465 p=PushShortPixel(quantum_info->endian,p,&pixel);
471 SetPixelRed(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
477 SetPixelGreen(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
483 SetPixelBlue(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
489 p=PushShortPixel(quantum_info->endian,p,&pixel);
495 SetPixelRed(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
501 SetPixelGreen(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
507 SetPixelBlue(image,ScaleAnyToQuantum((QuantumAny) (pixel
517 p=PushShortPixel(quantum_info->endian,p,&pixel);
523 SetPixelRed(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
529 SetPixelGreen(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
535 SetPixelBlue(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
551 p=PushQuantumLongPixel(quantum_info,p,&pixel);
552 SetPixelBlue(image,ScaleAnyToQuantum(pixel,range),q);
553 p=PushQuantumLongPixel(quantum_info,p,&pixel);
554 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
555 p=PushQuantumLongPixel(quantum_info,p,&pixel);
556 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
563 p=PushQuantumPixel(quantum_info,p,&pixel);
564 SetPixelBlue(image,ScaleAnyToQuantum(pixel,range),q);
565 p=PushQuantumPixel(quantum_info,p,&pixel);
566 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
567 p=PushQuantumPixel(quantum_info,p,&pixel);
568 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
576 pixel;
582 p=PushShortPixel(quantum_info->endian,p,&pixel);
584 HalfToSinglePrecision(pixel)),q);
585 p=PushShortPixel(quantum_info->endian,p,&pixel);
587 HalfToSinglePrecision(pixel)),q);
588 p=PushShortPixel(quantum_info->endian,p,&pixel);
590 HalfToSinglePrecision(pixel)),q);
598 p=PushShortPixel(quantum_info->endian,p,&pixel);
599 SetPixelBlue(image,ScaleShortToQuantum(pixel),q);
600 p=PushShortPixel(quantum_info->endian,p,&pixel);
601 SetPixelGreen(image,ScaleShortToQuantum(pixel),q);
602 p=PushShortPixel(quantum_info->endian,p,&pixel);
603 SetPixelRed(image,ScaleShortToQuantum(pixel),q);
612 pixel;
617 pixel;
621 p=PushFloatPixel(quantum_info,p,&pixel);
622 SetPixelRed(image,ClampToQuantum(pixel),q);
623 p=PushFloatPixel(quantum_info,p,&pixel);
624 SetPixelGreen(image,ClampToQuantum(pixel),q);
625 p=PushFloatPixel(quantum_info,p,&pixel);
626 SetPixelBlue(image,ClampToQuantum(pixel),q);
634 p=PushLongPixel(quantum_info->endian,p,&pixel);
635 SetPixelBlue(image,ScaleLongToQuantum(pixel),q);
636 p=PushLongPixel(quantum_info->endian,p,&pixel);
637 SetPixelGreen(image,ScaleLongToQuantum(pixel),q);
638 p=PushLongPixel(quantum_info->endian,p,&pixel);
639 SetPixelRed(image,ScaleLongToQuantum(pixel),q);
650 pixel;
654 p=PushDoublePixel(quantum_info,p,&pixel);
655 SetPixelRed(image,ClampToQuantum(pixel),q);
656 p=PushDoublePixel(quantum_info,p,&pixel);
657 SetPixelGreen(image,ClampToQuantum(pixel),q);
658 p=PushDoublePixel(quantum_info,p,&pixel);
659 SetPixelBlue(image,ClampToQuantum(pixel),q);
671 p=PushQuantumPixel(quantum_info,p,&pixel);
672 SetPixelBlue(image,ScaleAnyToQuantum(pixel,range),q);
673 p=PushQuantumPixel(quantum_info,p,&pixel);
674 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
675 p=PushQuantumPixel(quantum_info,p,&pixel);
676 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
695 pixel;
704 pixel;
708 p=PushCharPixel(p,&pixel);
709 SetPixelBlue(image,ScaleCharToQuantum(pixel),q);
710 p=PushCharPixel(p,&pixel);
711 SetPixelGreen(image,ScaleCharToQuantum(pixel),q);
712 p=PushCharPixel(p,&pixel);
713 SetPixelRed(image,ScaleCharToQuantum(pixel),q);
714 p=PushCharPixel(p,&pixel);
715 SetPixelAlpha(image,ScaleCharToQuantum(pixel),q);
723 pixel=0;
745 p=PushLongPixel(quantum_info->endian,p,&pixel);
747 (((pixel >> 22) & 0x3ff) << 6)));
753 (((pixel >> 12) & 0x3ff) << 6)));
759 (((pixel >> 2) & 0x3ff) << 6)));
779 p=PushQuantumPixel(quantum_info,p,&pixel);
780 SetPixelRed(image,ScaleShortToQuantum((unsigned short) (pixel << 6)),q);
781 p=PushQuantumPixel(quantum_info,p,&pixel);
782 SetPixelGreen(image,ScaleShortToQuantum((unsigned short) (pixel << 6)),
784 p=PushQuantumPixel(quantum_info,p,&pixel);
785 SetPixelBlue(image,ScaleShortToQuantum((unsigned short) (pixel << 6)),
787 p=PushQuantumPixel(quantum_info,p,&pixel);
788 SetPixelAlpha(image,ScaleShortToQuantum((unsigned short) (pixel << 6)),
797 pixel;
803 p=PushShortPixel(quantum_info->endian,p,&pixel);
805 HalfToSinglePrecision(pixel)),q);
806 p=PushShortPixel(quantum_info->endian,p,&pixel);
808 HalfToSinglePrecision(pixel)),q);
809 p=PushShortPixel(quantum_info->endian,p,&pixel);
811 HalfToSinglePrecision(pixel)),q);
812 p=PushShortPixel(quantum_info->endian,p,&pixel);
814 HalfToSinglePrecision(pixel)),q);
822 p=PushShortPixel(quantum_info->endian,p,&pixel);
823 SetPixelBlue(image,ScaleShortToQuantum(pixel),q);
824 p=PushShortPixel(quantum_info->endian,p,&pixel);
825 SetPixelGreen(image,ScaleShortToQuantum(pixel),q);
826 p=PushShortPixel(quantum_info->endian,p,&pixel);
827 SetPixelRed(image,ScaleShortToQuantum(pixel),q);
828 p=PushShortPixel(quantum_info->endian,p,&pixel);
829 SetPixelAlpha(image,ScaleShortToQuantum(pixel),q);
838 pixel;
843 pixel;
847 p=PushFloatPixel(quantum_info,p,&pixel);
848 SetPixelRed(image,ClampToQuantum(pixel),q);
849 p=PushFloatPixel(quantum_info,p,&pixel);
850 SetPixelGreen(image,ClampToQuantum(pixel),q);
851 p=PushFloatPixel(quantum_info,p,&pixel);
852 SetPixelBlue(image,ClampToQuantum(pixel),q);
853 p=PushFloatPixel(quantum_info,p,&pixel);
854 SetPixelAlpha(image,ClampToQuantum(pixel),q);
862 p=PushLongPixel(quantum_info->endian,p,&pixel);
863 SetPixelBlue(image,ScaleLongToQuantum(pixel),q);
864 p=PushLongPixel(quantum_info->endian,p,&pixel);
865 SetPixelGreen(image,ScaleLongToQuantum(pixel),q);
866 p=PushLongPixel(quantum_info->endian,p,&pixel);
867 SetPixelRed(image,ScaleLongToQuantum(pixel),q);
868 p=PushLongPixel(quantum_info->endian,p,&pixel);
869 SetPixelAlpha(image,ScaleLongToQuantum(pixel),q);
880 pixel;
884 p=PushDoublePixel(quantum_info,p,&pixel);
885 SetPixelRed(image,ClampToQuantum(pixel),q);
886 p=PushDoublePixel(quantum_info,p,&pixel);
887 SetPixelGreen(image,ClampToQuantum(pixel),q);
888 p=PushDoublePixel(quantum_info,p,&pixel);
889 SetPixelBlue(image,ClampToQuantum(pixel),q);
890 p=PushDoublePixel(quantum_info,p,&pixel);
891 SetPixelAlpha(image,ClampToQuantum(pixel),q);
903 p=PushQuantumPixel(quantum_info,p,&pixel);
904 SetPixelBlue(image,ScaleAnyToQuantum(pixel,range),q);
905 p=PushQuantumPixel(quantum_info,p,&pixel);
906 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
907 p=PushQuantumPixel(quantum_info,p,&pixel);
908 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
909 p=PushQuantumPixel(quantum_info,p,&pixel);
910 SetPixelAlpha(image,ScaleAnyToQuantum(pixel,range),q);
929 pixel;
938 pixel;
942 p=PushCharPixel(p,&pixel);
943 SetPixelBlue(image,ScaleCharToQuantum(pixel),q);
944 p=PushCharPixel(p,&pixel);
945 SetPixelGreen(image,ScaleCharToQuantum(pixel),q);
946 p=PushCharPixel(p,&pixel);
947 SetPixelRed(image,ScaleCharToQuantum(pixel),q);
948 p=PushCharPixel(p,&pixel);
949 SetPixelOpacity(image,ScaleCharToQuantum(pixel),q);
957 pixel=0;
979 p=PushLongPixel(quantum_info->endian,p,&pixel);
981 (((pixel >> 22) & 0x3ff) << 6)));
987 (((pixel >> 12) & 0x3ff) << 6)));
993 (((pixel >> 2) & 0x3ff) << 6)));
1013 p=PushQuantumPixel(quantum_info,p,&pixel);
1014 SetPixelRed(image,ScaleShortToQuantum((unsigned short) (pixel << 6)),q);
1015 p=PushQuantumPixel(quantum_info,p,&pixel);
1016 SetPixelGreen(image,ScaleShortToQuantum((unsigned short) (pixel << 6)),
1018 pixel);
1019 SetPixelBlue(image,ScaleShortToQuantum((unsigned short) (pixel << 6)),
1021 p=PushQuantumPixel(quantum_info,p,&pixel);
1022 SetPixelOpacity(image,ScaleShortToQuantum((unsigned short) (pixel << 6)),
1031 pixel;
1037 p=PushShortPixel(quantum_info->endian,p,&pixel);
1039 HalfToSinglePrecision(pixel)),q);
1040 p=PushShortPixel(quantum_info->endian,p,&pixel);
1042 HalfToSinglePrecision(pixel)),q);
1043 p=PushShortPixel(quantum_info->endian,p,&pixel);
1045 HalfToSinglePrecision(pixel)),q);
1046 p=PushShortPixel(quantum_info->endian,p,&pixel);
1048 HalfToSinglePrecision(pixel)),q);
1056 p=PushShortPixel(quantum_info->endian,p,&pixel);
1057 SetPixelBlue(image,ScaleShortToQuantum(pixel),q);
1058 p=PushShortPixel(quantum_info->endian,p,&pixel);
1059 SetPixelGreen(image,ScaleShortToQuantum(pixel),q);
1060 p=PushShortPixel(quantum_info->endian,p,&pixel);
1061 SetPixelRed(image,ScaleShortToQuantum(pixel),q);
1062 p=PushShortPixel(quantum_info->endian,p,&pixel);
1063 SetPixelOpacity(image,ScaleShortToQuantum(pixel),q);
1072 pixel;
1077 pixel;
1081 p=PushFloatPixel(quantum_info,p,&pixel);
1082 SetPixelRed(image,ClampToQuantum(pixel),q);
1083 p=PushFloatPixel(quantum_info,p,&pixel);
1084 SetPixelGreen(image,ClampToQuantum(pixel),q);
1085 p=PushFloatPixel(quantum_info,p,&pixel);
1086 SetPixelBlue(image,ClampToQuantum(pixel),q);
1087 p=PushFloatPixel(quantum_info,p,&pixel);
1088 SetPixelOpacity(image,ClampToQuantum(pixel),q);
1096 p=PushLongPixel(quantum_info->endian,p,&pixel);
1097 SetPixelBlue(image,ScaleLongToQuantum(pixel),q);
1098 p=PushLongPixel(quantum_info->endian,p,&pixel);
1099 SetPixelGreen(image,ScaleLongToQuantum(pixel),q);
1100 p=PushLongPixel(quantum_info->endian,p,&pixel);
1101 SetPixelRed(image,ScaleLongToQuantum(pixel),q);
1102 p=PushLongPixel(quantum_info->endian,p,&pixel);
1103 SetPixelOpacity(image,ScaleLongToQuantum(pixel),q);
1114 pixel;
1118 p=PushDoublePixel(quantum_info,p,&pixel);
1119 SetPixelRed(image,ClampToQuantum(pixel),q);
1120 p=PushDoublePixel(quantum_info,p,&pixel);
1121 SetPixelGreen(image,ClampToQuantum(pixel),q);
1122 p=PushDoublePixel(quantum_info,p,&pixel);
1123 SetPixelBlue(image,ClampToQuantum(pixel),q);
1124 p=PushDoublePixel(quantum_info,p,&pixel);
1125 SetPixelOpacity(image,ClampToQuantum(pixel),q);
1137 p=PushQuantumPixel(quantum_info,p,&pixel);
1138 SetPixelBlue(image,ScaleAnyToQuantum(pixel,range),q);
1139 p=PushQuantumPixel(quantum_info,p,&pixel);
1140 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
1141 p=PushQuantumPixel(quantum_info,p,&pixel);
1142 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
1143 p=PushQuantumPixel(quantum_info,p,&pixel);
1144 SetPixelOpacity(image,ScaleAnyToQuantum(pixel,range),q);
1163 pixel;
1176 pixel;
1180 p=PushCharPixel(p,&pixel);
1181 SetPixelBlack(image,ScaleCharToQuantum(pixel),q);
1190 pixel;
1196 p=PushShortPixel(quantum_info->endian,p,&pixel);
1198 HalfToSinglePrecision(pixel)),q);
1206 p=PushShortPixel(quantum_info->endian,p,&pixel);
1207 SetPixelBlack(image,ScaleShortToQuantum(pixel),q);
1216 pixel;
1221 pixel;
1225 p=PushFloatPixel(quantum_info,p,&pixel);
1226 SetPixelBlack(image,ClampToQuantum(pixel),q);
1234 p=PushLongPixel(quantum_info->endian,p,&pixel);
1235 SetPixelBlack(image,ScaleLongToQuantum(pixel),q);
1246 pixel;
1250 p=PushDoublePixel(quantum_info,p,&pixel);
1251 SetPixelBlack(image,ClampToQuantum(pixel),q);
1263 p=PushQuantumPixel(quantum_info,p,&pixel);
1264 SetPixelBlack(image,ScaleAnyToQuantum(pixel,range),q);
1284 pixel;
1293 pixel;
1297 p=PushCharPixel(p,&pixel);
1298 SetPixelBlue(image,ScaleCharToQuantum(pixel),q);
1307 pixel;
1313 p=PushShortPixel(quantum_info->endian,p,&pixel);
1315 HalfToSinglePrecision(pixel)),q);
1323 p=PushShortPixel(quantum_info->endian,p,&pixel);
1324 SetPixelBlue(image,ScaleShortToQuantum(pixel),q);
1333 pixel;
1338 pixel;
1342 p=PushFloatPixel(quantum_info,p,&pixel);
1343 SetPixelBlue(image,ClampToQuantum(pixel),q);
1351 p=PushLongPixel(quantum_info->endian,p,&pixel);
1352 SetPixelBlue(image,ScaleLongToQuantum(pixel),q);
1363 pixel;
1367 p=PushDoublePixel(quantum_info,p,&pixel);
1368 SetPixelBlue(image,ClampToQuantum(pixel),q);
1380 p=PushQuantumPixel(quantum_info,p,&pixel);
1381 SetPixelBlue(image,ScaleAnyToQuantum(pixel,range),q);
1401 pixel;
1412 pixel=0;
1434 p=PushLongPixel(quantum_info->endian,p,&pixel);
1436 (((pixel >> 22) & 0x3ff) << 6)));
1442 (((pixel >> 12) & 0x3ff) << 6)));
1448 (((pixel >> 2) & 0x3ff) << 6)));
1473 p=PushQuantumPixel(quantum_info,p,&pixel);
1474 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
1475 p=PushQuantumPixel(quantum_info,p,&pixel);
1476 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
1495 pixel;
1508 pixel;
1512 p=PushCharPixel(p,&pixel);
1513 SetPixelRed(image,ScaleCharToQuantum(pixel),q);
1514 p=PushCharPixel(p,&pixel);
1515 SetPixelGreen(image,ScaleCharToQuantum(pixel),q);
1516 p=PushCharPixel(p,&pixel);
1517 SetPixelBlue(image,ScaleCharToQuantum(pixel),q);
1518 p=PushCharPixel(p,&pixel);
1519 SetPixelBlack(image,ScaleCharToQuantum(pixel),q);
1528 pixel;
1534 p=PushShortPixel(quantum_info->endian,p,&pixel);
1536 HalfToSinglePrecision(pixel)),q);
1537 p=PushShortPixel(quantum_info->endian,p,&pixel);
1539 HalfToSinglePrecision(pixel)),q);
1540 p=PushShortPixel(quantum_info->endian,p,&pixel);
1542 HalfToSinglePrecision(pixel)),q);
1543 p=PushShortPixel(quantum_info->endian,p,&pixel);
1545 HalfToSinglePrecision(pixel)),q);
1553 p=PushShortPixel(quantum_info->endian,p,&pixel);
1554 SetPixelRed(image,ScaleShortToQuantum(pixel),q);
1555 p=PushShortPixel(quantum_info->endian,p,&pixel);
1556 SetPixelGreen(image,ScaleShortToQuantum(pixel),q);
1557 p=PushShortPixel(quantum_info->endian,p,&pixel);
1558 SetPixelBlue(image,ScaleShortToQuantum(pixel),q);
1559 p=PushShortPixel(quantum_info->endian,p,&pixel);
1560 SetPixelBlack(image,ScaleShortToQuantum(pixel),q);
1569 pixel;
1574 pixel;
1578 p=PushFloatPixel(quantum_info,p,&pixel);
1579 SetPixelRed(image,ClampToQuantum(pixel),q);
1580 p=PushFloatPixel(quantum_info,p,&pixel);
1581 SetPixelGreen(image,ClampToQuantum(pixel),q);
1582 p=PushFloatPixel(quantum_info,p,&pixel);
1583 pixel),q);
1584 p=PushFloatPixel(quantum_info,p,&pixel);
1585 SetPixelBlack(image,ClampToQuantum(pixel),q);
1593 p=PushLongPixel(quantum_info->endian,p,&pixel);
1594 SetPixelRed(image,ScaleLongToQuantum(pixel),q);
1595 p=PushLongPixel(quantum_info->endian,p,&pixel);
1596 SetPixelGreen(image,ScaleLongToQuantum(pixel),q);
1597 p=PushLongPixel(quantum_info->endian,p,&pixel);
1598 SetPixelBlue(image,ScaleLongToQuantum(pixel),q);
1599 p=PushLongPixel(quantum_info->endian,p,&pixel);
1600 SetPixelBlack(image,ScaleLongToQuantum(pixel),q);
1611 pixel;
1615 p=PushDoublePixel(quantum_info,p,&pixel);
1616 SetPixelRed(image,ClampToQuantum(pixel),q);
1617 p=PushDoublePixel(quantum_info,p,&pixel);
1618 SetPixelGreen(image,ClampToQuantum(pixel),q);
1619 p=PushDoublePixel(quantum_info,p,&pixel);
1620 SetPixelBlue(image,ClampToQuantum(pixel),q);
1621 p=PushDoublePixel(quantum_info,p,&pixel);
1622 SetPixelBlack(image,ClampToQuantum(pixel),q);
1634 p=PushQuantumPixel(quantum_info,p,&pixel);
1635 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
1636 p=PushQuantumPixel(quantum_info,p,&pixel);
1637 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
1638 p=PushQuantumPixel(quantum_info,p,&pixel);
1639 SetPixelBlue(image,ScaleAnyToQuantum(pixel,range),q);
1640 p=PushQuantumPixel(quantum_info,p,&pixel);
1641 SetPixelBlack(image,ScaleAnyToQuantum(pixel,range),q);
1660 pixel;
1673 pixel;
1677 p=PushCharPixel(p,&pixel);
1678 SetPixelRed(image,ScaleCharToQuantum(pixel),q);
1679 p=PushCharPixel(p,&pixel);
1680 SetPixelGreen(image,ScaleCharToQuantum(pixel),q);
1681 p=PushCharPixel(p,&pixel);
1682 SetPixelBlue(image,ScaleCharToQuantum(pixel),q);
1683 p=PushCharPixel(p,&pixel);
1684 SetPixelBlack(image,ScaleCharToQuantum(pixel),q);
1685 p=PushCharPixel(p,&pixel);
1686 SetPixelAlpha(image,ScaleCharToQuantum(pixel),q);
1695 pixel;
1701 p=PushShortPixel(quantum_info->endian,p,&pixel);
1703 HalfToSinglePrecision(pixel)),q);
1704 p=PushShortPixel(quantum_info->endian,p,&pixel);
1706 HalfToSinglePrecision(pixel)),q);
1707 p=PushShortPixel(quantum_info->endian,p,&pixel);
1709 HalfToSinglePrecision(pixel)),q);
1710 p=PushShortPixel(quantum_info->endian,p,&pixel);
1712 HalfToSinglePrecision(pixel)),q);
1713 p=PushShortPixel(quantum_info->endian,p,&pixel);
1715 HalfToSinglePrecision(pixel)),q);
1723 p=PushShortPixel(quantum_info->endian,p,&pixel);
1724 SetPixelRed(image,ScaleShortToQuantum(pixel),q);
1725 p=PushShortPixel(quantum_info->endian,p,&pixel);
1726 SetPixelGreen(image,ScaleShortToQuantum(pixel),q);
1727 p=PushShortPixel(quantum_info->endian,p,&pixel);
1728 SetPixelBlue(image,ScaleShortToQuantum(pixel),q);
1729 p=PushShortPixel(quantum_info->endian,p,&pixel);
1730 SetPixelBlack(image,ScaleShortToQuantum(pixel),q);
1731 p=PushShortPixel(quantum_info->endian,p,&pixel);
1732 SetPixelAlpha(image,ScaleShortToQuantum(pixel),q);
1741 pixel;
1746 pixel;
1750 p=PushFloatPixel(quantum_info,p,&pixel);
1751 SetPixelRed(image,ClampToQuantum(pixel),q);
1752 p=PushFloatPixel(quantum_info,p,&pixel);
1753 SetPixelGreen(image,ClampToQuantum(pixel),q);
1754 p=PushFloatPixel(quantum_info,p,&pixel);
1755 SetPixelBlue(image,ClampToQuantum(pixel),q);
1756 p=PushFloatPixel(quantum_info,p,&pixel);
1757 SetPixelBlack(image,ClampToQuantum(pixel),q);
1758 p=PushFloatPixel(quantum_info,p,&pixel);
1759 SetPixelAlpha(image,ClampToQuantum(pixel),q);
1767 p=PushLongPixel(quantum_info->endian,p,&pixel);
1768 SetPixelRed(image,ScaleLongToQuantum(pixel),q);
1769 p=PushLongPixel(quantum_info->endian,p,&pixel);
1770 SetPixelGreen(image,ScaleLongToQuantum(pixel),q);
1771 p=PushLongPixel(quantum_info->endian,p,&pixel);
1772 SetPixelBlue(image,ScaleLongToQuantum(pixel),q);
1773 p=PushLongPixel(quantum_info->endian,p,&pixel);
1774 SetPixelBlack(image,ScaleLongToQuantum(pixel),q);
1775 p=PushLongPixel(quantum_info->endian,p,&pixel);
1776 SetPixelAlpha(image,ScaleLongToQuantum(pixel),q);
1787 pixel;
1791 p=PushDoublePixel(quantum_info,p,&pixel);
1792 SetPixelRed(image,ClampToQuantum(pixel),q);
1793 p=PushDoublePixel(quantum_info,p,&pixel);
1794 SetPixelGreen(image,ClampToQuantum(pixel),q);
1795 p=PushDoublePixel(quantum_info,p,&pixel);
1796 SetPixelBlue(image,ClampToQuantum(pixel),q);
1797 p=PushDoublePixel(quantum_info,p,&pixel);
1798 SetPixelBlack(image,ClampToQuantum(pixel),q);
1799 p=PushDoublePixel(quantum_info,p,&pixel);
1800 SetPixelAlpha(image,ClampToQuantum(pixel),q);
1801 p=PushDoublePixel(quantum_info,p,&pixel);
1813 p=PushQuantumPixel(quantum_info,p,&pixel);
1814 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
1815 p=PushQuantumPixel(quantum_info,p,&pixel);
1816 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
1817 p=PushQuantumPixel(quantum_info,p,&pixel);
1818 SetPixelBlue(image,ScaleAnyToQuantum(pixel,range),q);
1819 p=PushQuantumPixel(quantum_info,p,&pixel);
1820 SetPixelBlack(image,ScaleAnyToQuantum(pixel,range),q);
1821 p=PushQuantumPixel(quantum_info,p,&pixel);
1822 SetPixelAlpha(image,ScaleAnyToQuantum(pixel,range),q);
1841 pixel;
1854 pixel;
1858 p=PushCharPixel(p,&pixel);
1859 SetPixelRed(image,ScaleCharToQuantum(pixel),q);
1860 p=PushCharPixel(p,&pixel);
1861 SetPixelGreen(image,ScaleCharToQuantum(pixel),q);
1862 p=PushCharPixel(p,&pixel);
1863 SetPixelBlue(image,ScaleCharToQuantum(pixel),q);
1864 p=PushCharPixel(p,&pixel);
1865 SetPixelBlack(image,ScaleCharToQuantum(pixel),q);
1866 p=PushCharPixel(p,&pixel);
1867 SetPixelOpacity(image,ScaleCharToQuantum(pixel),q);
1876 pixel;
1882 p=PushShortPixel(quantum_info->endian,p,&pixel);
1884 HalfToSinglePrecision(pixel)),q);
1885 p=PushShortPixel(quantum_info->endian,p,&pixel);
1887 HalfToSinglePrecision(pixel)),q);
1888 p=PushShortPixel(quantum_info->endian,p,&pixel);
1890 HalfToSinglePrecision(pixel)),q);
1891 p=PushShortPixel(quantum_info->endian,p,&pixel);
1893 HalfToSinglePrecision(pixel)),q);
1894 p=PushShortPixel(quantum_info->endian,p,&pixel);
1896 HalfToSinglePrecision(pixel)),q);
1904 p=PushShortPixel(quantum_info->endian,p,&pixel);
1905 SetPixelRed(image,ScaleShortToQuantum(pixel),q);
1906 p=PushShortPixel(quantum_info->endian,p,&pixel);
1907 SetPixelGreen(image,ScaleShortToQuantum(pixel),q);
1908 p=PushShortPixel(quantum_info->endian,p,&pixel);
1909 SetPixelBlue(image,ScaleShortToQuantum(pixel),q);
1910 p=PushShortPixel(quantum_info->endian,p,&pixel);
1911 SetPixelBlack(image,ScaleShortToQuantum(pixel),q);
1912 p=PushShortPixel(quantum_info->endian,p,&pixel);
1913 SetPixelOpacity(image,ScaleShortToQuantum(pixel),q);
1922 pixel;
1927 pixel;
1931 p=PushFloatPixel(quantum_info,p,&pixel);
1932 SetPixelRed(image,ClampToQuantum(pixel),q);
1933 p=PushFloatPixel(quantum_info,p,&pixel);
1934 SetPixelGreen(image,ClampToQuantum(pixel),q);
1935 p=PushFloatPixel(quantum_info,p,&pixel);
1936 SetPixelBlue(image,ClampToQuantum(pixel),q);
1937 p=PushFloatPixel(quantum_info,p,&pixel);
1938 SetPixelBlack(image,ClampToQuantum(pixel),q);
1939 p=PushFloatPixel(quantum_info,p,&pixel);
1940 SetPixelOpacity(image,ClampToQuantum(pixel),q);
1948 p=PushLongPixel(quantum_info->endian,p,&pixel);
1949 SetPixelRed(image,ScaleLongToQuantum(pixel),q);
1950 p=PushLongPixel(quantum_info->endian,p,&pixel);
1951 SetPixelGreen(image,ScaleLongToQuantum(pixel),q);
1952 p=PushLongPixel(quantum_info->endian,p,&pixel);
1953 SetPixelBlue(image,ScaleLongToQuantum(pixel),q);
1954 p=PushLongPixel(quantum_info->endian,p,&pixel);
1955 SetPixelBlack(image,ScaleLongToQuantum(pixel),q);
1956 p=PushLongPixel(quantum_info->endian,p,&pixel);
1957 SetPixelOpacity(image,ScaleLongToQuantum(pixel),q);
1968 pixel;
1972 p=PushDoublePixel(quantum_info,p,&pixel);
1973 SetPixelRed(image,ClampToQuantum(pixel),q);
1974 p=PushDoublePixel(quantum_info,p,&pixel);
1975 SetPixelGreen(image,ClampToQuantum(pixel),q);
1976 p=PushDoublePixel(quantum_info,p,&pixel);
1977 SetPixelBlue(image,ClampToQuantum(pixel),q);
1978 p=PushDoublePixel(quantum_info,p,&pixel);
1979 SetPixelBlack(image,ClampToQuantum(pixel),q);
1980 p=PushDoublePixel(quantum_info,p,&pixel);
1981 SetPixelOpacity(image,ClampToQuantum(pixel),q);
1982 p=PushDoublePixel(quantum_info,p,&pixel);
1994 p=PushQuantumPixel(quantum_info,p,&pixel);
1995 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
1996 p=PushQuantumPixel(quantum_info,p,&pixel);
1997 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
1998 p=PushQuantumPixel(quantum_info,p,&pixel);
1999 SetPixelBlue(image,ScaleAnyToQuantum(pixel,range),q);
2000 p=PushQuantumPixel(quantum_info,p,&pixel);
2001 SetPixelBlack(image,ScaleAnyToQuantum(pixel,range),q);
2002 p=PushQuantumPixel(quantum_info,p,&pixel);
2003 SetPixelOpacity(image,ScaleAnyToQuantum(pixel,range),q);
2025 pixel;
2029 pixel=0;
2066 pixel;
2071 pixel
2072 SetPixelGray(image,ScaleAnyToQuantum(pixel,range),q);
2074 pixel=(unsigned char) ((*p) & 0xf);
2075 SetPixelGray(image,ScaleAnyToQuantum(pixel,range),q);
2081 pixel=(unsigned char) (*p++ >> 4);
2082 SetPixelGray(image,ScaleAnyToQuantum(pixel,range),q);
2090 pixel;
2096 p=PushCharPixel(p,&pixel);
2097 SetPixelGray(image,ScaleCharToQuantum(pixel),q);
2106 p=PushCharPixel(p,&pixel);
2107 SetPixelGray(image,ScaleCharToQuantum(pixel),q);
2123 p=PushLongPixel(quantum_info->endian,p,&pixel);
2124 SetPixelGray(image,ScaleAnyToQuantum((pixel >> 22) & 0x3ff,
2127 SetPixelGray(image,ScaleAnyToQuantum((pixel >> 12) & 0x3ff,
2130 SetPixelGray(image,ScaleAnyToQuantum((pixel >> 2) & 0x3ff,
2135 p=PushLongPixel(quantum_info->endian,p,&pixel);
2138 SetPixelGray(image,ScaleAnyToQuantum((pixel >> 22) & 0x3ff,
2144 SetPixelGray(image,ScaleAnyToQuantum((pixel >> 12) & 0x3ff,
2152 p=PushLongPixel(quantum_info->endian,p,&pixel);
2153 SetPixelGray(image,ScaleAnyToQuantum((pixel >> 2) & 0x3ff,range),
2156 SetPixelGray(image,ScaleAnyToQuantum((pixel >> 12) & 0x3ff,range),
2159 SetPixelGray(image,ScaleAnyToQuantum((pixel >> 22) & 0x3ff,range),
2164 p=PushLongPixel(quantum_info->endian,p,&pixel);
2167 SetPixelGray(image,ScaleAnyToQuantum((pixel >> 2) & 0x3ff,
2173 SetPixelGray(image,ScaleAnyToQuantum((pixel >> 12) & 0x3ff,
2181 p=PushQuantumPixel(quantum_info,p,&pixel);
2182 SetPixelGray(image,ScaleAnyToQuantum(pixel,range),q);
2194 pixel;
2198 p=PushShortPixel(quantum_info->endian,p,&pixel);
2199 SetPixelGray(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
2202 p=PushShortPixel(quantum_info->endian,p,&pixel);
2203 SetPixelGray(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
2210 p=PushShortPixel(quantum_info->endian,p,&pixel);
2211 SetPixelGray(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
2222 p=PushQuantumPixel(quantum_info,p,&pixel);
2223 SetPixelGray(image,ScaleAnyToQuantum(pixel,range),q);
2232 pixel;
2238 p=PushShortPixel(quantum_info->endian,p,&pixel);
2239 SetPixelGray(image,ScaleShortToQuantum(pixel),q);
2249 p=PushShortPixel(quantum_info->endian,p,&pixel);
2251 HalfToSinglePrecision(pixel)),q);
2259 p=PushShortPixel(quantum_info->endian,p,&pixel);
2260 SetPixelGray(image,ScaleShortToQuantum(pixel),q);
2269 pixel;
2274 pixel;
2278 p=PushFloatPixel(quantum_info,p,&pixel);
2279 SetPixelGray(image,ClampToQuantum(pixel),q);
2287 p=PushLongPixel(quantum_info->endian,p,&pixel);
2288 SetPixelGray(image,ScaleLongToQuantum(pixel),q);
2299 pixel;
2303 p=PushDoublePixel(quantum_info,p,&pixel);
2304 SetPixelGray(image,ClampToQuantum(pixel),q);
2316 p=PushQuantumPixel(quantum_info,p,&pixel);
2317 SetPixelGray(image,ScaleAnyToQuantum(pixel,range),q);
2340 pixel;
2349 pixel;
2356 pixel=(unsigned char) (((*p) & (1 << (7-bit))) != 0 ? 0x00 : 0x01);
2357 SetPixelGray(image,(Quantum) (pixel == 0 ? 0 : QuantumRange),q);
2367 pixel=(unsigned char) (((*p) & (1 << (7-bit))) != 0 ? 0x00 : 0x01);
2368 SetPixelGray(image,(Quantum) (pixel != 0 ? 0 : QuantumRange),q);
2380 pixel;
2385 pixel=(unsigned char) ((*p >> 4) & 0xf);
2386 SetPixelGray(image,ScaleAnyToQuantum(pixel,range),q);
2387 pixel=(unsigned char) ((*p) & 0xf);
2388 SetPixelAlpha(image,ScaleAnyToQuantum(pixel,range),q);
2397 pixel;
2401 p=PushCharPixel(p,&pixel);
2402 SetPixelGray(image,ScaleCharToQuantum(pixel),q);
2403 p=PushCharPixel(p,&pixel);
2404 SetPixelAlpha(image,ScaleCharToQuantum(pixel),q);
2415 p=PushQuantumPixel(quantum_info,p,&pixel);
2416 SetPixelGray(image,ScaleAnyToQuantum(pixel,range),q);
2417 p=PushQuantumPixel(quantum_info,p,&pixel);
2418 SetPixelAlpha(image,ScaleAnyToQuantum(pixel,range),q);
2429 p=PushQuantumPixel(quantum_info,p,&pixel);
2430 SetPixelGray(image,ScaleAnyToQuantum(pixel,range),q);
2431 p=PushQuantumPixel(quantum_info,p,&pixel);
2432 SetPixelAlpha(image,ScaleAnyToQuantum(pixel,range),q);
2441 pixel;
2447 p=PushShortPixel(quantum_info->endian,p,&pixel);
2449 HalfToSinglePrecision(pixel)),q);
2450 p=PushShortPixel(quantum_info->endian,p,&pixel);
2452 HalfToSinglePrecision(pixel)),q);
2460 p=PushShortPixel(quantum_info->endian,p,&pixel);
2461 SetPixelGray(image,ScaleShortToQuantum(pixel),q);
2462 p=PushShortPixel(quantum_info->endian,p,&pixel);
2463 SetPixelAlpha(image,ScaleShortToQuantum(pixel),q);
2472 pixel;
2477 pixel;
2481 p=PushFloatPixel(quantum_info,p,&pixel);
2482 SetPixelGray(image,ClampToQuantum(pixel),q);
2483 p=PushFloatPixel(quantum_info,p,&pixel);
2484 SetPixelAlpha(image,ClampToQuantum(pixel),q);
2492 p=PushLongPixel(quantum_info->endian,p,&pixel);
2493 SetPixelGray(image,ScaleLongToQuantum(pixel),q);
2494 p=PushLongPixel(quantum_info->endian,p,&pixel);
2495 SetPixelAlpha(image,ScaleLongToQuantum(pixel),q);
2506 pixel;
2510 p=PushDoublePixel(quantum_info,p,&pixel);
2511 SetPixelGray(image,ClampToQuantum(pixel),q);
2512 p=PushDoublePixel(quantum_info,p,&pixel);
2513 SetPixelAlpha(image,ClampToQuantum(pixel),q);
2525 p=PushQuantumPixel(quantum_info,p,&pixel);
2526 SetPixelGray(image,ScaleAnyToQuantum(pixel,range),q);
2527 p=PushQuantumPixel(quantum_info,p,&pixel);
2528 SetPixelAlpha(image,ScaleAnyToQuantum(pixel,range),q);
2548 pixel;
2557 pixel;
2561 p=PushCharPixel(p,&pixel);
2562 SetPixelGreen(image,ScaleCharToQuantum(pixel),q);
2571 pixel;
2577 p=PushShortPixel(quantum_info->endian,p,&pixel);
2579 HalfToSinglePrecision(pixel)),q);
2587 p=PushShortPixel(quantum_info->endian,p,&pixel);
2588 SetPixelGreen(image,ScaleShortToQuantum(pixel),q);
2597 pixel;
2602 pixel;
2606 p=PushFloatPixel(quantum_info,p,&pixel);
2607 SetPixelGreen(image,ClampToQuantum(pixel),q);
2615 p=PushLongPixel(quantum_info->endian,p,&pixel);
2616 SetPixelGreen(image,ScaleLongToQuantum(pixel),q);
2627 pixel;
2631 p=PushDoublePixel(quantum_info,p,&pixel);
2632 SetPixelGreen(image,ClampToQuantum(pixel),q);
2644 p=PushQuantumPixel(quantum_info,p,&pixel);
2645 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
2668 pixel;
2682 pixel;
2689 pixel=(unsigned char) (((*p) & (1 << (7-bit))) == 0 ?
2692 pixel=(unsigned char) (((*p) & (1 << (7-bit))) != 0 ?
2694 SetPixelIndex(image,PushColormapIndex(image,pixel,&range_exception),
2705 pixel=(unsigned char) (((*p) & (1 << (7-bit))) == 0 ? 0x00 : 0x01);
2707 pixel=(unsigned char) (((*p) & (1 << (7-bit))) != 0 ? 0x00 : 0x01);
2708 SetPixelIndex(image,PushColormapIndex(image,pixel,&range_exception),q);
2718 pixel;
2722 pixel=(unsigned char) ((*p >> 4) & 0xf);
2723 SetPixelIndex(image,PushColormapIndex(image,pixel,&range_exception),q);
2727 pixel=(unsigned char) ((*p) & 0xf);
2728 SetPixelIndex(image,PushColormapIndex(image,pixel,&range_exception),q);
2736 pixel=(unsigned char) ((*p++ >> 4) & 0xf);
2737 SetPixelIndex(image,PushColormapIndex(image,pixel,&range_exception),q);
2747 pixel;
2751 p=PushCharPixel(p,&pixel);
2752 SetPixelIndex(image,PushColormapIndex(image,pixel,&range_exception),q);
2763 pixel;
2769 p=PushShortPixel(quantum_info->endian,p,&pixel);
2771 (double) QuantumRange*HalfToSinglePrecision(pixel)),
2782 p=PushShortPixel(quantum_info->endian,p,&pixel);
2783 SetPixelIndex(image,PushColormapIndex(image,pixel,&range_exception),q);
2794 pixel;
2799 pixel;
2803 p=PushFloatPixel(quantum_info,p,&pixel);
2804 SetPixelIndex(image,PushColormapIndex(image,ClampToQuantum(pixel),
2815 p=PushLongPixel(quantum_info->endian,p,&pixel);
2816 SetPixelIndex(image,PushColormapIndex(image,pixel,&range_exception),q);
2829 pixel;
2833 p=PushDoublePixel(quantum_info,p,&pixel);
2834 SetPixelIndex(image,PushColormapIndex(image,ClampToQuantum(pixel),
2848 p=PushQuantumPixel(quantum_info,p,&pixel);
2849 SetPixelIndex(image,PushColormapIndex(image,pixel,&range_exception),q);
2881 pixel;
2895 pixel;
2902 pixel=(unsigned char) (((*p) & (1 << (7-bit))) == 0 ? 0x00 : 0x01);
2904 pixel=(unsigned char) (((*p) & (1 << (7-bit))) != 0 ? 0x00 : 0x01);
2905 SetPixelGray(image,(Quantum) (pixel == 0 ? 0 : QuantumRange),q);
2908 SetPixelIndex(image,(Quantum) (pixel == 0 ? 0 : 1),q);
2916 pixel=(unsigned char) (((*p) & (1 << (7-bit))) == 0 ? 0x00 : 0x01);
2918 pixel=(unsigned char) (((*p) & (1 << (7-bit))) != 0 ? 0x00 : 0x01);
2919 SetPixelIndex(image,(Quantum) (pixel == 0 ? 0 : 1),q);
2920 SetPixelGray(image,(Quantum) (pixel == 0 ? 0 : QuantumRange),q);
2930 pixel;
2935 pixel=(unsigned char) ((*p >> 4) & 0xf);
2936 SetPixelIndex(image,PushColormapIndex(image,pixel,&range_exception),q);
2939 pixel=(unsigned char) ((*p) & 0xf);
2940 SetPixelAlpha(image,ScaleAnyToQuantum(pixel,range),q);
2949 pixel;
2953 p=PushCharPixel(p,&pixel);
2954 SetPixelIndex(image,PushColormapIndex(image,pixel,&range_exception),q);
2957 p=PushCharPixel(p,&pixel);
2958 SetPixelAlpha(image,ScaleCharToQuantum(pixel),q);
2967 pixel;
2973 p=PushShortPixel(quantum_info->endian,p,&pixel);
2975 (double) QuantumRange*HalfToSinglePrecision(pixel)),
2979 p=PushShortPixel(quantum_info->endian,p,&pixel);
2981 HalfToSinglePrecision(pixel)),q);
2989 p=PushShortPixel(quantum_info->endian,p,&pixel);
2990 SetPixelIndex(image,PushColormapIndex(image,pixel,&range_exception),q);
2993 p=PushShortPixel(quantum_info->endian,p,&pixel);
2994 SetPixelAlpha(image,ScaleShortToQuantum(pixel),q);
3003 pixel;
3008 pixel;
3012 p=PushFloatPixel(quantum_info,p,&pixel);
3014 ClampToQuantum(pixel),&range_exception),q);
3017 p=PushFloatPixel(quantum_info,p,&pixel);
3018 SetPixelAlpha(image,ClampToQuantum(pixel),q);
3026 p=PushLongPixel(quantum_info->endian,p,&pixel);
3027 SetPixelIndex(image,PushColormapIndex(image,pixel,&range_exception),q);
3030 p=PushLongPixel(quantum_info->endian,p,&pixel);
3031 SetPixelAlpha(image,ScaleLongToQuantum(pixel),q);
3042 pixel;
3046 p=PushDoublePixel(quantum_info,p,&pixel);
3047 SetPixelIndex(image,PushColormapIndex(image,ClampToQuantum(pixel),
3051 p=PushDoublePixel(quantum_info,p,&pixel);
3052 SetPixelAlpha(image,ClampToQuantum(pixel),q);
3064 p=PushQuantumPixel(quantum_info,p,&pixel);
3065 SetPixelIndex(image,PushColormapIndex(image,pixel,&range_exception),q);
3068 p=PushQuantumPixel(quantum_info,p,&pixel);
3069 SetPixelAlpha(image,ScaleAnyToQuantum(pixel,range),q);
3092 pixel;
3101 pixel;
3105 p=PushCharPixel(p,&pixel);
3106 SetPixelOpacity(image,ScaleCharToQuantum(pixel),q);
3115 pixel;
3121 p=PushShortPixel(quantum_info->endian,p,&pixel);
3123 HalfToSinglePrecision(pixel)),q);
3131 p=PushShortPixel(quantum_info->endian,p,&pixel);
3132 SetPixelOpacity(image,ScaleShortToQuantum(pixel),q);
3141 pixel;
3146 pixel;
3150 p=PushFloatPixel(quantum_info,p,&pixel);
3151 SetPixelOpacity(image,ClampToQuantum(pixel),q);
3159 p=PushLongPixel(quantum_info->endian,p,&pixel);
3160 SetPixelOpacity(image,ScaleLongToQuantum(pixel),q);
3171 pixel;
3175 p=PushDoublePixel(quantum_info,p,&pixel);
3176 SetPixelOpacity(image,ClampToQuantum(pixel),q);
3188 p=PushQuantumPixel(quantum_info,p,&pixel);
3189 SetPixelOpacity(image,ScaleAnyToQuantum(pixel,range),q);
3209 pixel;
3218 pixel;
3222 p=PushCharPixel(p,&pixel);
3223 SetPixelRed(image,ScaleCharToQuantum(pixel),q);
3232 pixel;
3238 p=PushShortPixel(quantum_info->endian,p,&pixel);
3240 HalfToSinglePrecision(pixel)),q);
3248 p=PushShortPixel(quantum_info->endian,p,&pixel);
3249 SetPixelRed(image,ScaleShortToQuantum(pixel),q);
3258 pixel;
3263 pixel;
3267 p=PushFloatPixel(quantum_info,p,&pixel);
3268 SetPixelRed(image,ClampToQuantum(pixel),q);
3276 p=PushLongPixel(quantum_info->endian,p,&pixel);
3277 SetPixelRed(image,ScaleLongToQuantum(pixel),q);
3288 pixel;
3292 p=PushDoublePixel(quantum_info,p,&pixel);
3293 SetPixelRed(image,ClampToQuantum(pixel),q);
3305 p=PushQuantumPixel(quantum_info,p,&pixel);
3306 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
3329 pixel;
3338 pixel;
3342 p=PushCharPixel(p,&pixel);
3343 SetPixelRed(image,ScaleCharToQuantum(pixel),q);
3344 p=PushCharPixel(p,&pixel);
3345 SetPixelGreen(image,ScaleCharToQuantum(pixel),q);
3346 p=PushCharPixel(p,&pixel);
3347 SetPixelBlue(image,ScaleCharToQuantum(pixel),q);
3361 p=PushLongPixel(quantum_info->endian,p,&pixel);
3362 SetPixelRed(image,ScaleAnyToQuantum((pixel >> 22) & 0x3ff,range),q);
3363 SetPixelGreen(image,ScaleAnyToQuantum((pixel >> 12) & 0x3ff,range),
3365 SetPixelBlue(image,ScaleAnyToQuantum((pixel >> 2) & 0x3ff,range),q);
3375 p=PushQuantumLongPixel(quantum_info,p,&pixel);
3376 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
3377 p=PushQuantumLongPixel(quantum_info,p,&pixel);
3378 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
3379 p=PushQuantumLongPixel(quantum_info,p,&pixel);
3380 SetPixelBlue(image,ScaleAnyToQuantum(pixel,range),q);
3387 p=PushQuantumPixel(quantum_info,p,&pixel);
3388 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
3389 p=PushQuantumPixel(quantum_info,p,&pixel);
3390 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
3391 p=PushQuantumPixel(quantum_info,p,&pixel);
3392 SetPixelBlue(image,ScaleAnyToQuantum(pixel,range),q);
3403 pixel;
3407 p=PushShortPixel(quantum_info->endian,p,&pixel);
3413 SetPixelRed(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
3419 SetPixelGreen(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
3425 SetPixelBlue(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
3431 p=PushShortPixel(quantum_info->endian,p,&pixel);
3437 SetPixelRed(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
3443 SetPixelGreen(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
3449 SetPixelBlue(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
3459 p=PushShortPixel(quantum_info->endian,p,&pixel);
3465 SetPixelRed(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
3471 SetPixelGreen(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
3477 SetPixelBlue(image,ScaleAnyToQuantum((QuantumAny) (pixel >> 4),
3493 p=PushQuantumLongPixel(quantum_info,p,&pixel);
3494 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
3495 p=PushQuantumLongPixel(quantum_info,p,&pixel);
3496 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
3497 p=PushQuantumLongPixel(quantum_info,p,&pixel);
3498 SetPixelBlue(image,ScaleAnyToQuantum(pixel,range),q);
3505 p=PushQuantumPixel(quantum_info,p,&pixel);
3506 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
3507 p=PushQuantumPixel(quantum_info,p,&pixel);
3508 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
3509 p=PushQuantumPixel(quantum_info,p,&pixel);
3510 SetPixelBlue(image,ScaleAnyToQuantum(pixel,range),q);
3518 pixel;
3524 p=PushShortPixel(quantum_info->endian,p,&pixel);
3526 HalfToSinglePrecision(pixel)),q);
3527 p=PushShortPixel(quantum_info->endian,p,&pixel);
3529 HalfToSinglePrecision(pixel)),q);
3530 p=PushShortPixel(quantum_info->endian,p,&pixel);
3532 HalfToSinglePrecision(pixel)),q);
3540 p=PushShortPixel(quantum_info->endian,p,&pixel);
3541 SetPixelRed(image,ScaleShortToQuantum(pixel),q);
3542 p=PushShortPixel(quantum_info->endian,p,&pixel);
3543 SetPixelGreen(image,ScaleShortToQuantum(pixel),q);
3544 p=PushShortPixel(quantum_info->endian,p,&pixel);
3545 SetPixelBlue(image,ScaleShortToQuantum(pixel),q);
3554 pixel;
3559 pixel;
3563 p=PushFloatPixel(quantum_info,p,&pixel);
3564 SetPixelRed(image,ClampToQuantum(pixel),q);
3565 p=PushFloatPixel(quantum_info,p,&pixel);
3566 SetPixelGreen(image,ClampToQuantum(pixel),q);
3567 p=PushFloatPixel(quantum_info,p,&pixel);
3568 SetPixelBlue(image,ClampToQuantum(pixel),q);
3576 p=PushLongPixel(quantum_info->endian,p,&pixel);
3577 SetPixelRed(image,ScaleLongToQuantum(pixel),q);
3578 p=PushLongPixel(quantum_info->endian,p,&pixel);
3579 SetPixelGreen(image,ScaleLongToQuantum(pixel),q);
3580 p=PushLongPixel(quantum_info->endian,p,&pixel);
3581 SetPixelBlue(image,ScaleLongToQuantum(pixel),q);
3592 pixel;
3596 p=PushDoublePixel(quantum_info,p,&pixel);
3597 SetPixelRed(image,ClampToQuantum(pixel),q);
3598 p=PushDoublePixel(quantum_info,p,&pixel);
3599 SetPixelGreen(image,ClampToQuantum(pixel),q);
3600 p=PushDoublePixel(quantum_info,p,&pixel);
3601 SetPixelBlue(image,ClampToQuantum(pixel),q);
3613 p=PushQuantumPixel(quantum_info,p,&pixel);
3614 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
3615 p=PushQuantumPixel(quantum_info,p,&pixel);
3616 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
3617 p=PushQuantumPixel(quantum_info,p,&pixel);
3618 SetPixelBlue(image,ScaleAnyToQuantum(pixel,range),q);
3637 pixel;
3646 pixel;
3650 p=PushCharPixel(p,&pixel);
3651 SetPixelRed(image,ScaleCharToQuantum(pixel),q);
3652 p=PushCharPixel(p,&pixel);
3653 SetPixelGreen(image,ScaleCharToQuantum(pixel),q);
3654 p=PushCharPixel(p,&pixel);
3655 SetPixelBlue(image,ScaleCharToQuantum(pixel),q);
3656 p=PushCharPixel(p,&pixel);
3657 SetPixelAlpha(image,ScaleCharToQuantum(pixel),q);
3665 pixel=0;
3687 p=PushLongPixel(quantum_info->endian,p,&pixel);
3689 (((pixel >> 22) & 0x3ff) << 6)));
3695 (((pixel >> 12) & 0x3ff) << 6)));
3701 (((pixel >> 2) & 0x3ff) << 6)));
3721 p=PushQuantumPixel(quantum_info,p,&pixel);
3722 pixel << 6)),q);
3723 p=PushQuantumPixel(quantum_info,p,&pixel);
3724 SetPixelGreen(image,ScaleShortToQuantum((unsigned short) (pixel << 6)),
3726 p=PushQuantumPixel(quantum_info,p,&pixel);
3727 SetPixelBlue(image,ScaleShortToQuantum((unsigned short) (pixel << 6)),
3729 p=PushQuantumPixel(quantum_info,p,&pixel);
3730 SetPixelAlpha(image,ScaleShortToQuantum((unsigned short) (pixel << 6)),
3739 pixel;
3745 p=PushShortPixel(quantum_info->endian,p,&pixel);
3747 HalfToSinglePrecision(pixel)),q);
3748 p=PushShortPixel(quantum_info->endian,p,&pixel);
3750 HalfToSinglePrecision(pixel)),q);
3751 p=PushShortPixel(quantum_info->endian,p,&pixel);
3753 HalfToSinglePrecision(pixel)),q);
3754 p=PushShortPixel(quantum_info->endian,p,&pixel);
3756 HalfToSinglePrecision(pixel)),q);
3764 p=PushShortPixel(quantum_info->endian,p,&pixel);
3765 SetPixelRed(image,ScaleShortToQuantum(pixel),q);
3766 p=PushShortPixel(quantum_info->endian,p,&pixel);
3767 SetPixelGreen(image,ScaleShortToQuantum(pixel),q);
3768 p=PushShortPixel(quantum_info->endian,p,&pixel);
3769 SetPixelBlue(image,ScaleShortToQuantum(pixel),q);
3770 p=PushShortPixel(quantum_info->endian,p,&pixel);
3771 SetPixelAlpha(image,ScaleShortToQuantum(pixel),q);
3780 pixel;
3785 pixel;
3789 p=PushFloatPixel(quantum_info,p,&pixel);
3790 SetPixelRed(image,ClampToQuantum(pixel),q);
3791 p=PushFloatPixel(quantum_info,p,&pixel);
3792 SetPixelGreen(image,ClampToQuantum(pixel),q);
3793 p=PushFloatPixel(quantum_info,p,&pixel);
3794 SetPixelBlue(image,ClampToQuantum(pixel),q);
3795 p=PushFloatPixel(quantum_info,p,&pixel);
3796 SetPixelAlpha(image,ClampToQuantum(pixel),q);
3804 p=PushLongPixel(quantum_info->endian,p,&pixel);
3805 SetPixelRed(image,ScaleLongToQuantum(pixel),q);
3806 p=PushLongPixel(quantum_info->endian,p,&pixel);
3807 SetPixelGreen(image,ScaleLongToQuantum(pixel),q);
3808 p=PushLongPixel(quantum_info->endian,p,&pixel);
3809 SetPixelBlue(image,ScaleLongToQuantum(pixel),q);
3810 p=PushLongPixel(quantum_info->endian,p,&pixel);
3811 SetPixelAlpha(image,ScaleLongToQuantum(pixel),q);
3822 pixel;
3826 p=PushDoublePixel(quantum_info,p,&pixel);
3827 SetPixelRed(image,ClampToQuantum(pixel),q);
3828 p=PushDoublePixel(quantum_info,p,&pixel);
3829 SetPixelGreen(image,ClampToQuantum(pixel),q);
3830 p=PushDoublePixel(quantum_info,p,&pixel);
3831 SetPixelBlue(image,ClampToQuantum(pixel),q);
3832 p=PushDoublePixel(quantum_info,p,&pixel);
3833 SetPixelAlpha(image,ClampToQuantum(pixel),q);
3845 p=PushQuantumPixel(quantum_info,p,&pixel);
3846 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
3847 p=PushQuantumPixel(quantum_info,p,&pixel);
3848 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
3849 p=PushQuantumPixel(quantum_info,p,&pixel);
3850 SetPixelBlue(image,ScaleAnyToQuantum(pixel,range),q);
3851 p=PushQuantumPixel(quantum_info,p,&pixel);
3852 SetPixelAlpha(image,ScaleAnyToQuantum(pixel,range),q);
3871 pixel;
3880 pixel;
3884 p=PushCharPixel(p,&pixel);
3885 SetPixelRed(image,ScaleCharToQuantum(pixel),q);
3886 p=PushCharPixel(p,&pixel);
3887 SetPixelGreen(image,ScaleCharToQuantum(pixel),q);
3888 p=PushCharPixel(p,&pixel);
3889 SetPixelBlue(image,ScaleCharToQuantum(pixel),q);
3890 p=PushCharPixel(p,&pixel);
3891 SetPixelOpacity(image,ScaleCharToQuantum(pixel),q);
3899 pixel=0;
3921 p=PushLongPixel(quantum_info->endian,p,&pixel);
3923 (((pixel >> 22) & 0x3ff) << 6)));
3929 (((pixel >> 12) & 0x3ff) << 6)));
3935 (((pixel >> 2) & 0x3ff) << 6)));
3955 p=PushQuantumPixel(quantum_info,p,&pixel);
3956 SetPixelRed(image,ScaleShortToQuantum((unsigned short) (pixel << 6)),q);
3957 p=PushQuantumPixel(quantum_info,p,&pixel);
3958 SetPixelGreen(image,ScaleShortToQuantum((unsigned short) (pixel << 6)),
3960 p=PushQuantumPixel(quantum_info,p,&pixel);
3961 SetPixelBlue(image,ScaleShortToQuantum((unsigned short) (pixel << 6)),
3963 p=PushQuantumPixel(quantum_info,p,&pixel);
3964 SetPixelOpacity(image,ScaleShortToQuantum((unsigned short) (pixel << 6)),
3973 pixel;
3979 p=PushShortPixel(quantum_info->endian,p,&pixel);
3981 HalfToSinglePrecision(pixel)),q);
3982 p=PushShortPixel(quantum_info->endian,p,&pixel);
3984 HalfToSinglePrecision(pixel)),q);
3985 p=PushShortPixel(quantum_info->endian,p,&pixel);
3987 HalfToSinglePrecision(pixel)),q);
3988 p=PushShortPixel(quantum_info->endian,p,&pixel);
3990 HalfToSinglePrecision(pixel)),q);
3998 p=PushShortPixel(quantum_info->endian,p,&pixel);
3999 SetPixelRed(image,ScaleShortToQuantum(pixel),q);
4000 p=PushShortPixel(quantum_info->endian,p,&pixel);
4001 SetPixelGreen(image,ScaleShortToQuantum(pixel),q);
4002 p=PushShortPixel(quantum_info->endian,p,&pixel);
4003 SetPixelBlue(image,ScaleShortToQuantum(pixel),q);
4004 p=PushShortPixel(quantum_info->endian,p,&pixel);
4005 SetPixelOpacity(image,ScaleShortToQuantum(pixel),q);
4014 pixel;
4019 pixel;
4023 p=PushFloatPixel(quantum_info,p,&pixel);
4024 SetPixelRed(image,ClampToQuantum(pixel),q);
4025 p=PushFloatPixel(quantum_info,p,&pixel);
4026 SetPixelGreen(image,ClampToQuantum(pixel),q);
4027 p=PushFloatPixel(quantum_info,p,&pixel);
4028 SetPixelBlue(image,ClampToQuantum(pixel),q);
4029 p=PushFloatPixel(quantum_info,p,&pixel);
4030 SetPixelOpacity(image,ClampToQuantum(pixel),q);
4038 p=PushLongPixel(quantum_info->endian,p,&pixel);
4039 SetPixelRed(image,ScaleLongToQuantum(pixel),q);
4040 p=PushLongPixel(quantum_info->endian,p,&pixel);
4041 SetPixelGreen(image,ScaleLongToQuantum(pixel),q);
4042 p=PushLongPixel(quantum_info->endian,p,&pixel);
4043 SetPixelBlue(image,ScaleLongToQuantum(pixel),q);
4044 p=PushLongPixel(quantum_info->endian,p,&pixel);
4045 SetPixelOpacity(image,ScaleLongToQuantum(pixel),q);
4056 pixel;
4060 p=PushDoublePixel(quantum_info,p,&pixel);
4061 SetPixelRed(image,ClampToQuantum(pixel),q);
4062 p=PushDoublePixel(quantum_info,p,&pixel);
4063 SetPixelGreen(image,ClampToQuantum(pixel),q);
4064 p=PushDoublePixel(quantum_info,p,&pixel);
4065 SetPixelBlue(image,ClampToQuantum(pixel),q);
4066 p=PushDoublePixel(quantum_info,p,&pixel);
4067 SetPixelOpacity(image,ClampToQuantum(pixel),q);
4079 p=PushQuantumPixel(quantum_info,p,&pixel);
4080 SetPixelRed(image,ScaleAnyToQuantum(pixel,range),q);
4081 p=PushQuantumPixel(quantum_info,p,&pixel);
4082 SetPixelGreen(image,ScaleAnyToQuantum(pixel,range),q);
4083 p=PushQuantumPixel(quantum_info,p,&pixel);
4084 SetPixelBlue(image,ScaleAnyToQuantum(pixel,range),q);
4085 p=PushQuantumPixel(quantum_info,p,&pixel);
4086 SetPixelOpacity(image,ScaleAnyToQuantum(pixel,range),q);