• 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"
51 #include "MagickCore/colorspace-private.h"
53 #include "MagickCore/exception-private.h"
55 #include "MagickCore/image-private.h"
60 #include "MagickCore/monitor-private.h"
61 #include "MagickCore/pixel-accessor.h"
63 #include "MagickCore/quantum-private.h"
84 depth; member
187 if (number_packets-- == 0) in SGIDecode()
196 number_pixels-=count; in SGIDecode()
198 for ( ; count != 0; count--) in SGIDecode()
200 if (number_packets-- == 0) in SGIDecode()
208 if (number_packets-- == 0) in SGIDecode()
212 for ( ; count != 0; count--) in SGIDecode()
224 if (number_packets-- == 0) in SGIDecode()
232 number_pixels-=count; in SGIDecode()
234 for ( ; count != 0; count--) in SGIDecode()
236 if (number_packets-- == 0) in SGIDecode()
243 if (number_packets-- == 0) in SGIDecode()
246 for ( ; count != 0; count--) in SGIDecode()
271 register Quantum in ReadSGIImage()
286 quantum; in ReadSGIImage() local
300 assert(image_info->signature == MagickCoreSignature); in ReadSGIImage()
301 if (image_info->debug != MagickFalse) in ReadSGIImage()
303 image_info->filename); in ReadSGIImage()
305 assert(exception->signature == MagickCoreSignature); in ReadSGIImage()
328 case 0x00: image->compression=NoCompression; break; in ReadSGIImage()
329 case 0x01: image->compression=RLECompression; break; in ReadSGIImage()
341 iris_info.depth=ReadBlobMSBShort(image); in ReadSGIImage()
342 if ((iris_info.depth == 0) || (iris_info.depth > 4)) in ReadSGIImage()
351 iris_info.name[sizeof(iris_info.name)-1]='\0'; in ReadSGIImage()
360 image->columns=iris_info.columns; in ReadSGIImage()
361 image->rows=iris_info.rows; in ReadSGIImage()
362 image->alpha_trait=iris_info.depth == 4 ? BlendPixelTrait : in ReadSGIImage()
364 image->depth=(size_t) MagickMin(iris_info.depth,MAGICKCORE_QUANTUM_DEPTH); in ReadSGIImage()
366 image->depth=(size_t) MagickMin((size_t) 8*iris_info.bytes_per_pixel, in ReadSGIImage()
368 if (iris_info.depth < 3) in ReadSGIImage()
370 image->storage_class=PseudoClass; in ReadSGIImage()
371 image->colors=(size_t) (iris_info.bytes_per_pixel > 1 ? 65535 : 256); in ReadSGIImage()
373 if ((image_info->ping != MagickFalse) && (image_info->number_scenes != 0)) in ReadSGIImage()
374 if (image->scene >= (image_info->scene+image_info->number_scenes-1)) in ReadSGIImage()
376 if ((MagickSizeType) (image->columns*image->rows/255) > GetBlobSize(image)) in ReadSGIImage()
378 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadSGIImage()
413 for (z=0; z < (ssize_t) iris_info.depth; z++) in ReadSGIImage()
459 Read runlength-encoded image format. in ReadSGIImage()
462 iris_info.depth*sizeof(*offsets)); in ReadSGIImage()
464 iris_info.depth*sizeof(*runlength)); in ReadSGIImage()
478 for (i=0; i < (ssize_t) (iris_info.rows*iris_info.depth); i++) in ReadSGIImage()
480 for (i=0; i < (ssize_t) (iris_info.rows*iris_info.depth); i++) in ReadSGIImage()
498 for (z=0; ((z < (ssize_t) iris_info.depth) && (data_order == 0)); z++) in ReadSGIImage()
507 for (z=0; z < (ssize_t) iris_info.depth; z++) in ReadSGIImage()
550 for (z=0; z < (ssize_t) iris_info.depth; z++) in ReadSGIImage()
576 if (z < (ssize_t) iris_info.depth) in ReadSGIImage()
589 if (image->storage_class == DirectClass) in ReadSGIImage()
596 for (y=0; y < (ssize_t) image->rows; y++) in ReadSGIImage()
598 p=pixels+(image->rows-y-1)*8*image->columns; in ReadSGIImage()
599 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception); in ReadSGIImage()
600 if (q == (Quantum *) NULL) in ReadSGIImage()
602 for (x=0; x < (ssize_t) image->columns; x++) in ReadSGIImage()
611 if (image->alpha_trait != UndefinedPixelTrait) in ReadSGIImage()
619 if (image->previous == (Image *) NULL) in ReadSGIImage()
622 y,image->rows); in ReadSGIImage()
629 for (y=0; y < (ssize_t) image->rows; y++) in ReadSGIImage()
631 p=pixels+(image->rows-y-1)*4*image->columns; in ReadSGIImage()
632 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception); in ReadSGIImage()
633 if (q == (Quantum *) NULL) in ReadSGIImage()
635 for (x=0; x < (ssize_t) image->columns; x++) in ReadSGIImage()
641 if (image->alpha_trait != UndefinedPixelTrait) in ReadSGIImage()
648 if (image->previous == (Image *) NULL) in ReadSGIImage()
651 image->rows); in ReadSGIImage()
662 if (AcquireImageColormap(image,image->colors,exception) == MagickFalse) in ReadSGIImage()
672 for (y=0; y < (ssize_t) image->rows; y++) in ReadSGIImage()
674 p=pixels+(image->rows-y-1)*8*image->columns; in ReadSGIImage()
675 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception); in ReadSGIImage()
676 if (q == (Quantum *) NULL) in ReadSGIImage()
678 for (x=0; x < (ssize_t) image->columns; x++) in ReadSGIImage()
680 quantum=(*p << 8); in ReadSGIImage()
681 quantum|=(*(p+1)); in ReadSGIImage()
682 SetPixelIndex(image,(Quantum) quantum,q); in ReadSGIImage()
688 if (image->previous == (Image *) NULL) in ReadSGIImage()
691 y,image->rows); in ReadSGIImage()
698 for (y=0; y < (ssize_t) image->rows; y++) in ReadSGIImage()
700 p=pixels+(image->rows-y-1)*4*image->columns; in ReadSGIImage()
701 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception); in ReadSGIImage()
702 if (q == (Quantum *) NULL) in ReadSGIImage()
704 for (x=0; x < (ssize_t) image->columns; x++) in ReadSGIImage()
712 if (image->previous == (Image *) NULL) in ReadSGIImage()
715 image->rows); in ReadSGIImage()
726 image->filename); in ReadSGIImage()
732 if (image_info->number_scenes != 0) in ReadSGIImage()
733 if (image->scene >= (image_info->scene+image_info->number_scenes-1)) in ReadSGIImage()
775 % whether the format supports native in-memory I/O, and a brief
789 entry->decoder=(DecodeImageHandler *) ReadSGIImage; in RegisterSGIImage()
790 entry->encoder=(EncodeImageHandler *) WriteSGIImage; in RegisterSGIImage()
791 entry->magick=(IsImageFormatHandler *) IsSGI; in RegisterSGIImage()
792 entry->flags|=CoderDecoderSeekableStreamFlag; in RegisterSGIImage()
870 while ((p < limit) && ((*(p-8) != *(p-4)) || (*(p-4) != *p))) in SGIEncode()
872 p-=8; in SGIEncode()
873 length=(size_t) (p-mark) >> 2; in SGIEncode()
877 length-=runlength; in SGIEncode()
879 for ( ; runlength > 0; runlength--) in SGIEncode()
889 length=(size_t) (p-mark) >> 2; in SGIEncode()
893 length-=runlength; in SGIEncode()
899 return((size_t) (q-packets)); in SGIEncode()
926 register const Quantum in WriteSGIImage()
951 assert(image_info->signature == MagickCoreSignature); in WriteSGIImage()
953 assert(image->signature == MagickCoreSignature); in WriteSGIImage()
954 if (image->debug != MagickFalse) in WriteSGIImage()
955 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); in WriteSGIImage()
956 if ((image->columns > 65535UL) || (image->rows > 65535UL)) in WriteSGIImage()
959 assert(exception->signature == MagickCoreSignature); in WriteSGIImage()
973 compression=image->compression; in WriteSGIImage()
974 if (image_info->compression != UndefinedCompression) in WriteSGIImage()
975 compression=image_info->compression; in WriteSGIImage()
976 if (image->depth > 8) in WriteSGIImage()
982 iris_info.bytes_per_pixel=(unsigned char) (image->depth > 8 ? 2 : 1); in WriteSGIImage()
984 iris_info.columns=(unsigned short) image->columns; in WriteSGIImage()
985 iris_info.rows=(unsigned short) image->rows; in WriteSGIImage()
986 if (image->alpha_trait != UndefinedPixelTrait) in WriteSGIImage()
987 iris_info.depth=4; in WriteSGIImage()
990 if ((image_info->type != TrueColorType) && in WriteSGIImage()
994 iris_info.depth=1; in WriteSGIImage()
997 iris_info.depth=3; in WriteSGIImage()
1000 iris_info.maximum_value=(size_t) (image->depth <= 8 ? in WriteSGIImage()
1012 (void) WriteBlobMSBShort(image,iris_info.depth); in WriteSGIImage()
1026 number_pixels=(MagickSizeType) image->columns*image->rows; in WriteSGIImage()
1038 for (y=0; y < (ssize_t) image->rows; y++) in WriteSGIImage()
1040 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteSGIImage()
1041 if (p == (const Quantum *) NULL) in WriteSGIImage()
1043 if (image->depth <= 8) in WriteSGIImage()
1044 for (x=0; x < (ssize_t) image->columns; x++) in WriteSGIImage()
1050 q+=((iris_info.rows-1)-y)*(4*iris_info.columns)+4*x; in WriteSGIImage()
1058 for (x=0; x < (ssize_t) image->columns; x++) in WriteSGIImage()
1064 q+=((iris_info.rows-1)-y)*(4*iris_info.columns)+4*x; in WriteSGIImage()
1071 if (image->previous == (Image *) NULL) in WriteSGIImage()
1074 image->rows); in WriteSGIImage()
1086 for (z=0; z < (ssize_t) iris_info.depth; z++) in WriteSGIImage()
1090 if (image->depth <= 8) in WriteSGIImage()
1132 iris_info.depth*sizeof(*offsets)); in WriteSGIImage()
1134 iris_info.depth*sizeof(*runlength)); in WriteSGIImage()
1136 image->rows,4*sizeof(*packets)); in WriteSGIImage()
1151 offset=512+4*2*((ssize_t) iris_info.rows*iris_info.depth); in WriteSGIImage()
1156 for (z=0; z < (ssize_t) iris_info.depth; z++) in WriteSGIImage()
1168 Write out line start and length tables and runlength-encoded pixels. in WriteSGIImage()
1170 for (i=0; i < (ssize_t) (iris_info.rows*iris_info.depth); i++) in WriteSGIImage()
1172 for (i=0; i < (ssize_t) (iris_info.rows*iris_info.depth); i++) in WriteSGIImage()
1191 } while (image_info->adjoin != MagickFalse); in WriteSGIImage()