{
(void) WriteBlobMSBShort(image,0xa1);
(void) WriteBlobMSBShort(image,0x1f2);
- (void) WriteBlobMSBShort(image,(unsigned short) (GetStringInfoLength(profile)+4));
+ (void) WriteBlobMSBShort(image,(unsigned short)
+ (GetStringInfoLength(profile)+4));
(void) WriteBlobString(image,"8BIM");
- (void) WriteBlob(image,GetStringInfoLength(profile),GetStringInfoDatum(profile));
+ (void) WriteBlob(image,GetStringInfoLength(profile),
+ GetStringInfoDatum(profile));
}
profile=GetImageProfile(image,"icc");
if (profile != (StringInfo *) NULL)
{
(void) WriteBlobMSBShort(image,0xa1);
(void) WriteBlobMSBShort(image,0xe0);
- (void) WriteBlobMSBShort(image,(unsigned short) (GetStringInfoLength(profile)+4));
+ (void) WriteBlobMSBShort(image,(unsigned short)
+ (GetStringInfoLength(profile)+4));
(void) WriteBlobMSBLong(image,0x00000000UL);
- (void) WriteBlob(image,GetStringInfoLength(profile),GetStringInfoDatum(profile));
+ (void) WriteBlob(image,GetStringInfoLength(profile),
+ GetStringInfoDatum(profile));
(void) WriteBlobMSBShort(image,0xa1);
(void) WriteBlobMSBShort(image,0xe0);
(void) WriteBlobMSBShort(image,4);
PNG_LIBPNG_VER_STRING);
#endif
- quantum_info = NULL;
+ quantum_info = (QuantumInfo *) NULL;
image=mng_info->image;
/*
/*
Convert PNG pixels to pixel packets.
*/
- quantum_info=AcquireQuantumInfo(image_info,image);
- if (quantum_info == (QuantumInfo *) NULL)
- ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
if (setjmp(ping->jmpbuf))
{
/*
}
return(GetFirstImageInList(image));
}
+ quantum_info=AcquireQuantumInfo(image_info,image);
+ if (quantum_info == (QuantumInfo *) NULL)
+ ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
if (image->storage_class == DirectClass)
for (pass=0; pass < num_passes; pass++)
{
AcquireSemaphoreInfo(&png_semaphore);
#endif
+ quantum_info = (QuantumInfo *) NULL;
image_colors=image->colors;
image_depth=image->depth;
image_matte=image->matte;
/*
Initialize image scanlines.
*/
- quantum_info=AcquireQuantumInfo(image_info,image);
- if (quantum_info == (QuantumInfo *) NULL)
- ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed");
if (setjmp(ping->jmpbuf))
{
/*
#endif
return(MagickFalse);
}
+ quantum_info=AcquireQuantumInfo(image_info,image);
+ if (quantum_info == (QuantumInfo *) NULL)
+ ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed");
quantum_info->format=UndefinedQuantumFormat;
quantum_info->depth=image_depth;
num_passes=png_set_interlace_handling(ping);