• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:with +full:- +full:quantum +full:- +full:depth

20 %  Copyright 1999-2019 ImageMagick Studio LLC, a non-profit organization      %
23 % You may not use this file except in compliance with the License. You may %
45 #include "MagickCore/blob-private.h"
48 #include "MagickCore/color-private.h"
50 #include "MagickCore/colorspace-private.h"
52 #include "MagickCore/exception-private.h"
54 #include "MagickCore/image-private.h"
60 #include "MagickCore/monitor-private.h"
61 #include "MagickCore/pixel-accessor.h"
63 #include "MagickCore/quantum-private.h"
67 #include "MagickCore/string-private.h"
163 p=comment_info->comment+strlen(comment_info->comment); in PNMComment()
166 if ((size_t) (p-comment_info->comment+1) >= comment_info->extent) in PNMComment()
168 comment_info->extent<<=1; in PNMComment()
169 comment_info->comment=(char *) ResizeQuantumMemory( in PNMComment()
170 comment_info->comment,comment_info->extent, in PNMComment()
171 sizeof(*comment_info->comment)); in PNMComment()
172 if (comment_info->comment == (char *) NULL) in PNMComment()
173 return(-1); in PNMComment()
174 p=comment_info->comment+strlen(comment_info->comment); in PNMComment()
207 return((unsigned int) (c-(int) '0')); in PNMInteger()
217 if (value <= (unsigned int) (INT_MAX-(c-(int) '0'))) in PNMInteger()
218 value+=c-(int) '0'; in PNMInteger()
263 depth, in ReadPNMImage() local
276 assert(image_info->signature == MagickCoreSignature); in ReadPNMImage()
277 if (image_info->debug != MagickFalse) in ReadPNMImage()
279 image_info->filename); in ReadPNMImage()
281 assert(exception->signature == MagickCoreSignature); in ReadPNMImage()
311 image->columns=(size_t) PNMInteger(image,&comment_info,10,exception); in ReadPNMImage()
312 image->rows=(size_t) PNMInteger(image,&comment_info,10,exception); in ReadPNMImage()
362 if ((size_t) (p-keyword) < (MagickPathExtent-1)) in ReadPNMImage()
374 if ((size_t) (p-value) < (MagickPathExtent-1)) in ReadPNMImage()
382 if (LocaleCompare(keyword,"depth") == 0) in ReadPNMImage()
386 image->rows=StringToUnsignedLong(value); in ReadPNMImage()
399 image->alpha_trait=BlendPixelTrait; in ReadPNMImage()
410 image->alpha_trait=BlendPixelTrait; in ReadPNMImage()
415 image->alpha_trait=BlendPixelTrait; in ReadPNMImage()
426 image->alpha_trait=BlendPixelTrait; in ReadPNMImage()
431 image->columns=StringToUnsignedLong(value); in ReadPNMImage()
434 if ((image->columns == 0) || (image->rows == 0)) in ReadPNMImage()
438 for (depth=1; GetQuantumRange(depth) < max_value; depth++) ; in ReadPNMImage()
439 image->depth=depth; in ReadPNMImage()
440 if ((image_info->ping != MagickFalse) && (image_info->number_scenes != 0)) in ReadPNMImage()
441 if (image->scene >= (image_info->scene+image_info->number_scenes-1)) in ReadPNMImage()
443 if ((MagickSizeType) (image->columns*image->rows/8) > GetBlobSize(image)) in ReadPNMImage()
445 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadPNMImage()
453 Convert PNM pixels to runextent-encoded MIFF packets. in ReadPNMImage()
465 for (y=0; y < (ssize_t) image->rows; y++) in ReadPNMImage()
470 register Quantum in ReadPNMImage()
473 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception); in ReadPNMImage()
474 if (q == (Quantum *) NULL) in ReadPNMImage()
476 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
486 if (image->previous == (Image *) NULL) in ReadPNMImage()
489 image->rows); in ReadPNMImage()
496 image->type=BilevelType; in ReadPNMImage()
501 Quantum in ReadPNMImage()
508 for (y=0; y < (ssize_t) image->rows; y++) in ReadPNMImage()
513 register Quantum in ReadPNMImage()
516 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception); in ReadPNMImage()
517 if (q == (Quantum *) NULL) in ReadPNMImage()
519 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
530 if (image->previous == (Image *) NULL) in ReadPNMImage()
533 image->rows); in ReadPNMImage()
540 image->type=GrayscaleType; in ReadPNMImage()
548 for (y=0; y < (ssize_t) image->rows; y++) in ReadPNMImage()
553 register Quantum in ReadPNMImage()
556 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception); in ReadPNMImage()
557 if (q == (Quantum *) NULL) in ReadPNMImage()
559 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
561 Quantum in ReadPNMImage()
579 if (image->previous == (Image *) NULL) in ReadPNMImage()
582 image->rows); in ReadPNMImage()
598 if (image->storage_class == PseudoClass) in ReadPNMImage()
605 for (y=0; y < (ssize_t) image->rows; y++) in ReadPNMImage()
613 register Quantum in ReadPNMImage()
626 if ((image->progress_monitor != (MagickProgressMonitor) NULL) && in ReadPNMImage()
627 (image->previous == (Image *) NULL)) in ReadPNMImage()
633 row,image->rows); in ReadPNMImage()
638 q=QueueAuthenticPixels(image,0,offset,image->columns,1,exception); in ReadPNMImage()
639 if (q == (Quantum *) NULL) in ReadPNMImage()
660 extent=(image->depth <= 8 ? 1 : image->depth <= 16 ? 2 : 4)* in ReadPNMImage()
661 image->columns; in ReadPNMImage()
665 for (y=0; y < (ssize_t) image->rows; y++) in ReadPNMImage()
679 register Quantum in ReadPNMImage()
689 if ((image->progress_monitor != (MagickProgressMonitor) NULL) && in ReadPNMImage()
690 (image->previous == (Image *) NULL)) in ReadPNMImage()
696 row,image->rows); in ReadPNMImage()
701 q=QueueAuthenticPixels(image,0,offset,image->columns,1,exception); in ReadPNMImage()
702 if (q == (Quantum *) NULL) in ReadPNMImage()
705 switch (image->depth) in ReadPNMImage()
717 if (image->depth <= 8) in ReadPNMImage()
722 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
729 else if (image->depth <= 16) in ReadPNMImage()
734 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
746 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
770 extent=3*(image->depth <= 8 ? 1 : image->depth <= 16 ? 2 : 4)* in ReadPNMImage()
771 image->columns; in ReadPNMImage()
776 for (y=0; y < (ssize_t) image->rows; y++) in ReadPNMImage()
790 register Quantum in ReadPNMImage()
800 if ((image->progress_monitor != (MagickProgressMonitor) NULL) && in ReadPNMImage()
801 (image->previous == (Image *) NULL)) in ReadPNMImage()
807 row,image->rows); in ReadPNMImage()
812 q=QueueAuthenticPixels(image,0,offset,image->columns,1,exception); in ReadPNMImage()
813 if (q == (Quantum *) NULL) in ReadPNMImage()
816 switch (image->depth) in ReadPNMImage()
820 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
835 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
853 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
868 if (image->depth <= 8) in ReadPNMImage()
873 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
885 else if (image->depth <= 16) in ReadPNMImage()
890 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
907 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
957 if (image->alpha_trait != UndefinedPixelTrait) in ReadPNMImage()
959 extent=channels*(image->depth <= 8 ? 1 : image->depth <= 16 ? 2 : 4)* in ReadPNMImage()
960 image->columns; in ReadPNMImage()
964 for (y=0; y < (ssize_t) image->rows; y++) in ReadPNMImage()
978 register Quantum in ReadPNMImage()
988 if ((image->progress_monitor != (MagickProgressMonitor) NULL) && in ReadPNMImage()
989 (image->previous == (Image *) NULL)) in ReadPNMImage()
995 row,image->rows); in ReadPNMImage()
1000 q=QueueAuthenticPixels(image,0,offset,image->columns,1,exception); in ReadPNMImage()
1001 if (q == (Quantum *) NULL) in ReadPNMImage()
1004 switch (image->depth) in ReadPNMImage()
1021 if (image->depth <= 8) in ReadPNMImage()
1026 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
1032 if (image->alpha_trait != UndefinedPixelTrait) in ReadPNMImage()
1035 if (image->depth != 1) in ReadPNMImage()
1039 SetPixelAlpha(image,QuantumRange- in ReadPNMImage()
1045 else if (image->depth <= 16) in ReadPNMImage()
1050 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
1056 if (image->alpha_trait != UndefinedPixelTrait) in ReadPNMImage()
1070 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
1076 if (image->alpha_trait != UndefinedPixelTrait) in ReadPNMImage()
1090 if (image->depth <= 8) in ReadPNMImage()
1095 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
1109 if (image->alpha_trait != UndefinedPixelTrait) in ReadPNMImage()
1118 else if (image->depth <= 16) in ReadPNMImage()
1123 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
1137 if (image->alpha_trait != UndefinedPixelTrait) in ReadPNMImage()
1151 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
1166 if (image->alpha_trait != UndefinedPixelTrait) in ReadPNMImage()
1179 if (image->depth <= 8) in ReadPNMImage()
1184 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
1195 if (image->alpha_trait != UndefinedPixelTrait) in ReadPNMImage()
1204 else if (image->depth <= 16) in ReadPNMImage()
1209 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
1220 if (image->alpha_trait != UndefinedPixelTrait) in ReadPNMImage()
1234 for (x=0; x < (ssize_t) image->columns; x++) in ReadPNMImage()
1246 if (image->alpha_trait != UndefinedPixelTrait) in ReadPNMImage()
1277 image->endian=quantum_scale < 0.0 ? LSBEndian : MSBEndian; in ReadPNMImage()
1278 image->depth=32; in ReadPNMImage()
1290 for (y=0; y < (ssize_t) image->rows; y++) in ReadPNMImage()
1298 register Quantum in ReadPNMImage()
1311 if ((image->progress_monitor != (MagickProgressMonitor) NULL) && in ReadPNMImage()
1312 (image->previous == (Image *) NULL)) in ReadPNMImage()
1318 row,image->rows); in ReadPNMImage()
1323 q=QueueAuthenticPixels(image,0,(ssize_t) (image->rows-offset-1), in ReadPNMImage()
1324 image->columns,1,exception); in ReadPNMImage()
1325 if (q == (Quantum *) NULL) in ReadPNMImage()
1345 if (y < (ssize_t) image->rows) in ReadPNMImage()
1350 CorruptImageError,"UnexpectedEndOfFile","`%s'",image->filename); in ReadPNMImage()
1356 if (image_info->number_scenes != 0) in ReadPNMImage()
1357 if (image->scene >= (image_info->scene+image_info->number_scenes-1)) in ReadPNMImage()
1411 % whether the format supports native in-memory I/O, and a brief
1424 entry=AcquireMagickInfo("PNM","PAM","Common 2-dimensional bitmap format"); in RegisterPNMImage()
1425 entry->decoder=(DecodeImageHandler *) ReadPNMImage; in RegisterPNMImage()
1426 entry->encoder=(EncodeImageHandler *) WritePNMImage; in RegisterPNMImage()
1427 entry->mime_type=ConstantString("image/x-portable-pixmap"); in RegisterPNMImage()
1428 entry->flags|=CoderDecoderSeekableStreamFlag; in RegisterPNMImage()
1432 entry->decoder=(DecodeImageHandler *) ReadPNMImage; in RegisterPNMImage()
1433 entry->encoder=(EncodeImageHandler *) WritePNMImage; in RegisterPNMImage()
1434 entry->mime_type=ConstantString("image/x-portable-bitmap"); in RegisterPNMImage()
1435 entry->flags|=CoderDecoderSeekableStreamFlag; in RegisterPNMImage()
1438 entry->decoder=(DecodeImageHandler *) ReadPNMImage; in RegisterPNMImage()
1439 entry->encoder=(EncodeImageHandler *) WritePNMImage; in RegisterPNMImage()
1440 entry->flags|=CoderEndianSupportFlag; in RegisterPNMImage()
1441 entry->flags|=CoderDecoderSeekableStreamFlag; in RegisterPNMImage()
1444 entry->decoder=(DecodeImageHandler *) ReadPNMImage; in RegisterPNMImage()
1445 entry->encoder=(EncodeImageHandler *) WritePNMImage; in RegisterPNMImage()
1446 entry->mime_type=ConstantString("image/x-portable-greymap"); in RegisterPNMImage()
1447 entry->flags|=CoderDecoderSeekableStreamFlag; in RegisterPNMImage()
1450 entry->decoder=(DecodeImageHandler *) ReadPNMImage; in RegisterPNMImage()
1451 entry->encoder=(EncodeImageHandler *) WritePNMImage; in RegisterPNMImage()
1452 entry->magick=(IsImageFormatHandler *) IsPNM; in RegisterPNMImage()
1453 entry->mime_type=ConstantString("image/x-portable-pixmap"); in RegisterPNMImage()
1454 entry->flags|=CoderDecoderSeekableStreamFlag; in RegisterPNMImage()
1457 entry->decoder=(DecodeImageHandler *) ReadPNMImage; in RegisterPNMImage()
1458 entry->encoder=(EncodeImageHandler *) WritePNMImage; in RegisterPNMImage()
1459 entry->mime_type=ConstantString("image/x-portable-pixmap"); in RegisterPNMImage()
1460 entry->flags|=CoderDecoderSeekableStreamFlag; in RegisterPNMImage()
1537 Quantum in WritePNMImage()
1565 assert(image_info->signature == MagickCoreSignature); in WritePNMImage()
1567 assert(image->signature == MagickCoreSignature); in WritePNMImage()
1568 if (image->debug != MagickFalse) in WritePNMImage()
1569 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); in WritePNMImage()
1571 assert(exception->signature == MagickCoreSignature); in WritePNMImage()
1587 (void) CopyMagickString(magick,image_info->magick,MagickPathExtent); in WritePNMImage()
1588 max_value=GetQuantumRange(image->depth); in WritePNMImage()
1601 if (image_info->compression == NoCompression) in WritePNMImage()
1617 if (image_info->compression == NoCompression) in WritePNMImage()
1624 if ((image_info->type != TrueColorType) && in WritePNMImage()
1628 if (image_info->compression == NoCompression) in WritePNMImage()
1633 if (image_info->compression == NoCompression) in WritePNMImage()
1642 if (image_info->compression == NoCompression) in WritePNMImage()
1670 (double) image->columns,(double) image->rows); in WritePNMImage()
1682 "WIDTH %.20g\nHEIGHT %.20g\n",(double) image->columns,(double) in WritePNMImage()
1683 image->rows); in WritePNMImage()
1707 if (image->alpha_trait != UndefinedPixelTrait) in WritePNMImage()
1714 if (image->alpha_trait != UndefinedPixelTrait) in WritePNMImage()
1719 if (image->depth > 32) in WritePNMImage()
1720 image->depth=32; in WritePNMImage()
1722 "DEPTH %.20g\nMAXVAL %.20g\n",(double) packet_size,(double) in WritePNMImage()
1723 ((MagickOffsetType) GetQuantumRange(image->depth))); in WritePNMImage()
1744 for (y=0; y < (ssize_t) image->rows; y++) in WritePNMImage()
1746 register const Quantum in WritePNMImage()
1752 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WritePNMImage()
1753 if (p == (const Quantum *) NULL) in WritePNMImage()
1755 for (x=0; x < (ssize_t) image->columns; x++) in WritePNMImage()
1760 if ((q-pixels+1) >= (ssize_t) sizeof(pixels)) in WritePNMImage()
1763 (void) WriteBlob(image,q-pixels,pixels); in WritePNMImage()
1769 (void) WriteBlob(image,q-pixels,pixels); in WritePNMImage()
1771 if (image->previous == (Image *) NULL) in WritePNMImage()
1774 image->rows); in WritePNMImage()
1782 (void) WriteBlob(image,q-pixels,pixels); in WritePNMImage()
1794 if (image->depth <= 8) in WritePNMImage()
1797 if (image->depth <= 16) in WritePNMImage()
1802 for (y=0; y < (ssize_t) image->rows; y++) in WritePNMImage()
1804 register const Quantum in WritePNMImage()
1810 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WritePNMImage()
1811 if (p == (const Quantum *) NULL) in WritePNMImage()
1813 for (x=0; x < (ssize_t) image->columns; x++) in WritePNMImage()
1816 if (image->depth <= 8) in WritePNMImage()
1820 if (image->depth <= 16) in WritePNMImage()
1829 if ((q-pixels+extent+1) >= sizeof(pixels)) in WritePNMImage()
1832 (void) WriteBlob(image,q-pixels,pixels); in WritePNMImage()
1838 (void) WriteBlob(image,q-pixels,pixels); in WritePNMImage()
1840 if (image->previous == (Image *) NULL) in WritePNMImage()
1843 image->rows); in WritePNMImage()
1851 (void) WriteBlob(image,q-pixels,pixels); in WritePNMImage()
1864 if (image->depth <= 8) in WritePNMImage()
1867 if (image->depth <= 16) in WritePNMImage()
1872 for (y=0; y < (ssize_t) image->rows; y++) in WritePNMImage()
1874 register const Quantum in WritePNMImage()
1880 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WritePNMImage()
1881 if (p == (const Quantum *) NULL) in WritePNMImage()
1883 for (x=0; x < (ssize_t) image->columns; x++) in WritePNMImage()
1885 if (image->depth <= 8) in WritePNMImage()
1891 if (image->depth <= 16) in WritePNMImage()
1904 if ((q-pixels+extent+1) >= sizeof(pixels)) in WritePNMImage()
1907 (void) WriteBlob(image,q-pixels,pixels); in WritePNMImage()
1913 (void) WriteBlob(image,q-pixels,pixels); in WritePNMImage()
1915 if (image->previous == (Image *) NULL) in WritePNMImage()
1918 image->rows); in WritePNMImage()
1926 (void) WriteBlob(image,q-pixels,pixels); in WritePNMImage()
1939 image->depth=1; in WritePNMImage()
1944 quantum_info->min_is_white=MagickTrue; in WritePNMImage()
1946 for (y=0; y < (ssize_t) image->rows; y++) in WritePNMImage()
1948 register const Quantum in WritePNMImage()
1951 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WritePNMImage()
1952 if (p == (const Quantum *) NULL) in WritePNMImage()
1959 if (image->previous == (Image *) NULL) in WritePNMImage()
1962 image->rows); in WritePNMImage()
1978 if (image->depth > 32) in WritePNMImage()
1979 image->depth=32; in WritePNMImage()
1981 ((MagickOffsetType) GetQuantumRange(image->depth))); in WritePNMImage()
1987 quantum_info->min_is_white=MagickTrue; in WritePNMImage()
1990 for (y=0; y < (ssize_t) image->rows; y++) in WritePNMImage()
1992 register const Quantum in WritePNMImage()
1998 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WritePNMImage()
1999 if (p == (const Quantum *) NULL) in WritePNMImage()
2002 switch (image->depth) in WritePNMImage()
2014 if (image->depth <= 8) in WritePNMImage()
2016 for (x=0; x < (ssize_t) image->columns; x++) in WritePNMImage()
2023 if (image->depth == 8) in WritePNMImage()
2032 extent=(size_t) (q-pixels); in WritePNMImage()
2035 if (image->depth <= 16) in WritePNMImage()
2037 for (x=0; x < (ssize_t) image->columns; x++) in WritePNMImage()
2044 if (image->depth == 16) in WritePNMImage()
2053 extent=(size_t) (q-pixels); in WritePNMImage()
2056 for (x=0; x < (ssize_t) image->columns; x++) in WritePNMImage()
2063 if (image->depth == 16) in WritePNMImage()
2071 extent=(size_t) (q-pixels); in WritePNMImage()
2078 if (image->previous == (Image *) NULL) in WritePNMImage()
2081 image->rows); in WritePNMImage()
2098 if (image->depth > 32) in WritePNMImage()
2099 image->depth=32; in WritePNMImage()
2101 ((MagickOffsetType) GetQuantumRange(image->depth))); in WritePNMImage()
2109 for (y=0; y < (ssize_t) image->rows; y++) in WritePNMImage()
2111 register const Quantum in WritePNMImage()
2117 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WritePNMImage()
2118 if (p == (const Quantum *) NULL) in WritePNMImage()
2121 switch (image->depth) in WritePNMImage()
2133 if (image->depth <= 8) in WritePNMImage()
2135 for (x=0; x < (ssize_t) image->columns; x++) in WritePNMImage()
2145 extent=(size_t) (q-pixels); in WritePNMImage()
2148 if (image->depth <= 16) in WritePNMImage()
2150 for (x=0; x < (ssize_t) image->columns; x++) in WritePNMImage()
2160 extent=(size_t) (q-pixels); in WritePNMImage()
2163 for (x=0; x < (ssize_t) image->columns; x++) in WritePNMImage()
2173 extent=(size_t) (q-pixels); in WritePNMImage()
2180 if (image->previous == (Image *) NULL) in WritePNMImage()
2183 image->rows); in WritePNMImage()
2199 if (image->depth > 32) in WritePNMImage()
2200 image->depth=32; in WritePNMImage()
2206 for (y=0; y < (ssize_t) image->rows; y++) in WritePNMImage()
2208 register const Quantum in WritePNMImage()
2214 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WritePNMImage()
2215 if (p == (const Quantum *) NULL) in WritePNMImage()
2218 switch (image->depth) in WritePNMImage()
2235 if (image->depth <= 8) in WritePNMImage()
2237 for (x=0; x < (ssize_t) image->columns; x++) in WritePNMImage()
2242 if (image->alpha_trait != UndefinedPixelTrait) in WritePNMImage()
2252 if (image->depth <= 16) in WritePNMImage()
2254 for (x=0; x < (ssize_t) image->columns; x++) in WritePNMImage()
2259 if (image->alpha_trait != UndefinedPixelTrait) in WritePNMImage()
2269 for (x=0; x < (ssize_t) image->columns; x++) in WritePNMImage()
2274 if (image->alpha_trait != UndefinedPixelTrait) in WritePNMImage()
2287 if (image->depth <= 8) in WritePNMImage()
2289 for (x=0; x < (ssize_t) image->columns; x++) in WritePNMImage()
2302 if (image->alpha_trait != UndefinedPixelTrait) in WritePNMImage()
2312 if (image->depth <= 16) in WritePNMImage()
2314 for (x=0; x < (ssize_t) image->columns; x++) in WritePNMImage()
2327 if (image->alpha_trait != UndefinedPixelTrait) in WritePNMImage()
2337 for (x=0; x < (ssize_t) image->columns; x++) in WritePNMImage()
2347 if (image->alpha_trait != UndefinedPixelTrait) in WritePNMImage()
2359 if (image->depth <= 8) in WritePNMImage()
2361 for (x=0; x < (ssize_t) image->columns; x++) in WritePNMImage()
2371 if (image->alpha_trait != UndefinedPixelTrait) in WritePNMImage()
2381 if (image->depth <= 16) in WritePNMImage()
2383 for (x=0; x < (ssize_t) image->columns; x++) in WritePNMImage()
2393 if (image->alpha_trait != UndefinedPixelTrait) in WritePNMImage()
2403 for (x=0; x < (ssize_t) image->columns; x++) in WritePNMImage()
2411 if (image->alpha_trait != UndefinedPixelTrait) in WritePNMImage()
2422 extent=(size_t) (q-pixels); in WritePNMImage()
2429 if (image->previous == (Image *) NULL) in WritePNMImage()
2432 image->rows); in WritePNMImage()
2446 (void) WriteBlobString(image,image->endian == LSBEndian ? "-1.0\n" : in WritePNMImage()
2448 image->depth=32; in WritePNMImage()
2457 for (y=(ssize_t) image->rows-1; y >= 0; y--) in WritePNMImage()
2459 register const Quantum in WritePNMImage()
2462 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WritePNMImage()
2463 if (p == (const Quantum *) NULL) in WritePNMImage()
2468 if (image->previous == (Image *) NULL) in WritePNMImage()
2471 image->rows); in WritePNMImage()
2486 } while (image_info->adjoin != MagickFalse); in WritePNMImage()