Lines Matching refs:bytes_per_pixel

78     bytes_per_pixel;  member
167 static MagickBooleanType SGIDecode(const size_t bytes_per_pixel, in SGIDecode() argument
183 if (bytes_per_pixel == 2) in SGIDecode()
284 bytes_per_pixel, in ReadSGIImage() local
331 iris_info.bytes_per_pixel=(unsigned char) ReadBlobByte(image); in ReadSGIImage()
332 if ((iris_info.bytes_per_pixel == 0) || (iris_info.bytes_per_pixel > 2)) in ReadSGIImage()
358 iris_info.bytes_per_pixel,MAGICKCORE_QUANTUM_DEPTH); in ReadSGIImage()
362 image->colors=iris_info.bytes_per_pixel > 1 ? 65535 : 256; in ReadSGIImage()
373 bytes_per_pixel=(size_t) iris_info.bytes_per_pixel; in ReadSGIImage()
375 if ((4*bytes_per_pixel*number_pixels) != ((MagickSizeType) (size_t) in ReadSGIImage()
376 (4*bytes_per_pixel*number_pixels))) in ReadSGIImage()
379 bytes_per_pixel*sizeof(*pixels)); in ReadSGIImage()
392 bytes_per_pixel*sizeof(*scanline)); in ReadSGIImage()
397 p=pixels+bytes_per_pixel*z; in ReadSGIImage()
400 count=ReadBlob(image,bytes_per_pixel*iris_info.columns,scanline); in ReadSGIImage()
403 if (bytes_per_pixel == 2) in ReadSGIImage()
498 status=SGIDecode(bytes_per_pixel,(ssize_t) in ReadSGIImage()
499 (runlength[y+z*iris_info.rows]/bytes_per_pixel),packets, in ReadSGIImage()
500 1L*iris_info.columns,p+bytes_per_pixel*z); in ReadSGIImage()
503 p+=(iris_info.columns*4*bytes_per_pixel); in ReadSGIImage()
528 status=SGIDecode(bytes_per_pixel,(ssize_t) in ReadSGIImage()
529 (runlength[y+z*iris_info.rows]/bytes_per_pixel),packets, in ReadSGIImage()
530 1L*iris_info.columns,p+bytes_per_pixel*z); in ReadSGIImage()
534 p+=(iris_info.columns*4*bytes_per_pixel); in ReadSGIImage()
557 if (bytes_per_pixel == 2) in ReadSGIImage()
630 if (bytes_per_pixel == 2) in ReadSGIImage()
936 iris_info.bytes_per_pixel=(unsigned char) (image->depth > 8 ? 2 : 1); in WriteSGIImage()
962 (void) WriteBlobByte(image,iris_info.bytes_per_pixel); in WriteSGIImage()
981 if ((4*iris_info.bytes_per_pixel*number_pixels) != in WriteSGIImage()
982 ((MagickSizeType) (size_t) (4*iris_info.bytes_per_pixel*number_pixels))) in WriteSGIImage()
985 iris_info.bytes_per_pixel*sizeof(*pixels)); in WriteSGIImage()