Lines Matching refs:bytes_per_row
259 bytes_per_row, in ReadPALMImage() local
317 bytes_per_row=ReadBlobMSBShort(image); in ReadPALMImage()
407 one_row=(unsigned char *) AcquireQuantumMemory(MagickMax(bytes_per_row, in ReadPALMImage()
413 lastrow=(unsigned char *) AcquireQuantumMemory(MagickMax(bytes_per_row, in ReadPALMImage()
425 count=ReadBlob(image,bytes_per_row,one_row); in ReadPALMImage()
426 if (count != (ssize_t) bytes_per_row) in ReadPALMImage()
435 for (i=0; i < (ssize_t) bytes_per_row; ) in ReadPALMImage()
440 count=MagickMin(count,(ssize_t) bytes_per_row-i); in ReadPALMImage()
455 for (i=0; i < (ssize_t) bytes_per_row; i+=8) in ReadPALMImage()
460 byte=(size_t) MagickMin((ssize_t) bytes_per_row-i,8); in ReadPALMImage()
469 (void) CopyMagickMemory(lastrow, one_row, bytes_per_row); in ReadPALMImage()
478 if (image->columns > (2*bytes_per_row)) in ReadPALMImage()
499 if ((size_t) (ptr-one_row) >= bytes_per_row) in ReadPALMImage()
701 bytes_per_row, in WritePALMImage() local
769 bytes_per_row=((image->columns+(16/bits_per_pixel-1))/(16/ in WritePALMImage()
771 (void) WriteBlobMSBShort(image,(unsigned short) bytes_per_row); in WritePALMImage()
853 lastrow=(unsigned char *) AcquireQuantumMemory(bytes_per_row, in WritePALMImage()
856 one_row=(unsigned char *) AcquireQuantumMemory(bytes_per_row, in WritePALMImage()
863 (void) ResetMagickMemory(ptr,0,bytes_per_row); in WritePALMImage()
916 while (x < (ssize_t) bytes_per_row) in WritePALMImage()
921 (x < (ssize_t) bytes_per_row)) in WritePALMImage()
934 for (x = 0; x < (ssize_t) bytes_per_row; x += 8) in WritePALMImage()
937 … for (bit=0, byte=0; bit < (unsigned char) MagickMin(8,(ssize_t) bytes_per_row-x); bit++) in WritePALMImage()
948 (void) CopyMagickMemory(lastrow,one_row,bytes_per_row); in WritePALMImage()
951 (void) WriteBlob(image,bytes_per_row,one_row); in WritePALMImage()