% July 1992 %
% %
% %
-% Copyright 1999-2010 ImageMagick Studio LLC, a non-profit organization %
+% Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization %
% dedicated to making software imaging solutions freely available. %
% %
% You may not use this file except in compliance with the License. You may %
format,
stride, /* ?? */
(char*)q);
+ (void) ret;
ddjvu_format_release(format);
{
if (bit == 0) byte= (size_t) q[(y * stride) + (x / 8)];
- indexes[x]=(IndexPacket) (((byte & 0x01) != 0) ? 0x00 : 0x01);
+ SetIndexPixelComponent(indexes+x,(IndexPacket) (((byte & 0x01) != 0) ? 0x00 : 0x01));
bit++;
if (bit == 8)
bit=0;
if (SyncAuthenticPixels(image,&image->exception) == MagickFalse)
break;
}
- SyncImage(image);
+ if (!image->ping)
+ SyncImage(image);
} else {
#if DEBUG
printf("%s: expanding PHOTO page/image\n", __FUNCTION__);
if (i % 1000 == 0) printf("%d\n",i);
#endif
r = QueueAuthenticPixels(lc->image,0,i,lc->image->columns,1,&image->exception);
+ if (r == (PixelPacket *) NULL)
+ break;
- ImportQuantumPixels(lc->image,
+ ImportQuantumPixels(lc->image,
(CacheView *) NULL,
quantum_info,
RGBQuantum, /*GrayQuantum*/
q+i*stride,&image->exception);
- SyncAuthenticPixels(lc->image,&image->exception);
+ SyncAuthenticPixels(lc->image,&image->exception);
}
}
q=(unsigned char *) RelinquishMagickMemory(q);
/* register PixelPacket *q; */
logging=LogMagickEvent(CoderEvent,GetMagickModule(), " enter ReadOneDJVUImage()");
+ (void) logging;
#if DEBUG
printf("==== Loading the page %d\n", pagenum);
(double) image->rows);
#endif
- SyncImage(image);
+ if (!image->ping)
+ SyncImage(image);
quantum_info=DestroyQuantumInfo(quantum_info);
/* indexes=GetAuthenticIndexQueue(image); */
/* mmc: ??? Convert PNM pixels to runlength-encoded MIFF packets. */
logging = LogMagickEvent(CoderEvent,GetMagickModule(),"enter ReadDJVUImage()");
+ (void) logging;
image = AcquireImage(image_info); /* mmc: ?? */
/*
* Allocate a LoadContext structure.
*/
- lc = (LoadContext *) AcquireAlignedMemory(1,sizeof(*lc));
+ lc = (LoadContext *) AcquireMagickMemory(sizeof(*lc));
if (lc == NULL)
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");