Lines Matching refs:image

244 static void Rd_WP_DWORD(Image *image,size_t *d)  in Rd_WP_DWORD()  argument
249 b=ReadBlobByte(image); in Rd_WP_DWORD()
253 b=ReadBlobByte(image); in Rd_WP_DWORD()
255 b=ReadBlobByte(image); in Rd_WP_DWORD()
260 b=ReadBlobByte(image); in Rd_WP_DWORD()
262 b=ReadBlobByte(image); in Rd_WP_DWORD()
267 static MagickBooleanType InsertRow(Image *image,unsigned char *p,ssize_t y, in InsertRow() argument
282 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception); in InsertRow()
289 for (x=0; x < ((ssize_t) image->columns-7); x+=8) in InsertRow()
294 SetPixelIndex(image,index,q); in InsertRow()
295 if (index < image->colors) in InsertRow()
296 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow()
297 q+=GetPixelChannels(image); in InsertRow()
301 if ((image->columns % 8) != 0) in InsertRow()
303 for (bit=0; bit < (ssize_t) (image->columns % 8); bit++) in InsertRow()
306 SetPixelIndex(image,index,q); in InsertRow()
307 if (index < image->colors) in InsertRow()
308 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow()
309 q+=GetPixelChannels(image); in InsertRow()
317 for (x=0; x < ((ssize_t) image->columns-3); x+=4) in InsertRow()
319 index=ConstrainColormapIndex(image,(*p >> 6) & 0x3,exception); in InsertRow()
320 SetPixelIndex(image,index,q); in InsertRow()
321 if (index < image->colors) in InsertRow()
322 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow()
323 q+=GetPixelChannels(image); in InsertRow()
324 index=ConstrainColormapIndex(image,(*p >> 4) & 0x3,exception); in InsertRow()
325 SetPixelIndex(image,index,q); in InsertRow()
326 if (index < image->colors) in InsertRow()
327 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow()
328 q+=GetPixelChannels(image); in InsertRow()
329 index=ConstrainColormapIndex(image,(*p >> 2) & 0x3,exception); in InsertRow()
330 SetPixelIndex(image,index,q); in InsertRow()
331 if (index < image->colors) in InsertRow()
332 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow()
333 q+=GetPixelChannels(image); in InsertRow()
334 index=ConstrainColormapIndex(image,(*p) & 0x3,exception); in InsertRow()
335 SetPixelIndex(image,index,q); in InsertRow()
336 if (index < image->colors) in InsertRow()
337 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow()
338 q+=GetPixelChannels(image); in InsertRow()
341 if ((image->columns % 4) != 0) in InsertRow()
343 index=ConstrainColormapIndex(image,(*p >> 6) & 0x3,exception); in InsertRow()
344 SetPixelIndex(image,index,q); in InsertRow()
345 if (index < image->colors) in InsertRow()
346 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow()
347 q+=GetPixelChannels(image); in InsertRow()
348 if ((image->columns % 4) > 1) in InsertRow()
350 index=ConstrainColormapIndex(image,(*p >> 4) & 0x3,exception); in InsertRow()
351 SetPixelIndex(image,index,q); in InsertRow()
352 if (index < image->colors) in InsertRow()
353 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow()
354 q+=GetPixelChannels(image); in InsertRow()
355 if ((image->columns % 4) > 2) in InsertRow()
357 index=ConstrainColormapIndex(image,(*p >> 2) & 0x3, in InsertRow()
359 SetPixelIndex(image,index,q); in InsertRow()
360 if (index < image->colors) in InsertRow()
361 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) in InsertRow()
363 q+=GetPixelChannels(image); in InsertRow()
373 for (x=0; x < ((ssize_t) image->columns-1); x+=2) in InsertRow()
375 index=ConstrainColormapIndex(image,(*p >> 4) & 0x0f,exception); in InsertRow()
376 SetPixelIndex(image,index,q); in InsertRow()
377 if (index < image->colors) in InsertRow()
378 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow()
379 q+=GetPixelChannels(image); in InsertRow()
380 index=ConstrainColormapIndex(image,(*p) & 0x0f,exception); in InsertRow()
381 SetPixelIndex(image,index,q); in InsertRow()
382 if (index < image->colors) in InsertRow()
383 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow()
385 q+=GetPixelChannels(image); in InsertRow()
387 if ((image->columns % 2) != 0) in InsertRow()
389 index=ConstrainColormapIndex(image,(*p >> 4) & 0x0f,exception); in InsertRow()
390 SetPixelIndex(image,index,q); in InsertRow()
391 if (index < image->colors) in InsertRow()
392 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow()
394 q+=GetPixelChannels(image); in InsertRow()
400 for (x=0; x < (ssize_t) image->columns; x++) in InsertRow()
402 index=ConstrainColormapIndex(image,*p,exception); in InsertRow()
403 SetPixelIndex(image,index,q); in InsertRow()
404 if (index < image->colors) in InsertRow()
405 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow()
407 q+=GetPixelChannels(image); in InsertRow()
413 for (x=0; x < (ssize_t) image->columns; x++) in InsertRow()
415 SetPixelRed(image,ScaleCharToQuantum(*p++),q); in InsertRow()
416 SetPixelGreen(image,ScaleCharToQuantum(*p++),q); in InsertRow()
417 SetPixelBlue(image,ScaleCharToQuantum(*p++),q); in InsertRow()
418 q+=GetPixelChannels(image); in InsertRow()
422 if (!SyncAuthenticPixels(image,exception)) in InsertRow()
435 if (InsertRow(image,BImgBuff,(ssize_t) y,bpp,exception) != MagickFalse) \
441 static int UnpackWPGRaster(Image *image,int bpp,ExceptionInfo *exception) in UnpackWPGRaster() argument
459 ldblk=(ssize_t) ((bpp*image->columns+7)/8); in UnpackWPGRaster()
465 while(y<(ssize_t) image->rows) in UnpackWPGRaster()
470 c=ReadBlobByte(image); in UnpackWPGRaster()
479 bbuf=ReadBlobByte(image); in UnpackWPGRaster()
483 c=ReadBlobByte(image); in UnpackWPGRaster()
495 c=ReadBlobByte(image); in UnpackWPGRaster()
502 c=ReadBlobByte(image); in UnpackWPGRaster()
519 if(y>(ssize_t) image->rows) in UnpackWPGRaster()
524 if (InsertRow(image,BImgBuff,y-1,bpp,exception) == MagickFalse) in UnpackWPGRaster()
532 if (EOFBlob(image) != MagickFalse) in UnpackWPGRaster()
536 return(y <(ssize_t) image->rows ? -5 : 0); in UnpackWPGRaster()
552 if (InsertRow(image,BImgBuff,(ssize_t) y,bpp,exception) != MagickFalse) \
558 static int UnpackWPG2Raster(Image *image,int bpp,ExceptionInfo *exception) in UnpackWPG2Raster() argument
582 ldblk=(ssize_t) ((bpp*image->columns+7)/8); in UnpackWPG2Raster()
589 while( y< image->rows) in UnpackWPG2Raster()
591 bbuf=ReadBlobByte(image); in UnpackWPG2Raster()
596 SampleSize=ReadBlobByte(image); /* DSZ */ in UnpackWPG2Raster()
615 RunCount=ReadBlobByte(image); /* BLK */ in UnpackWPG2Raster()
624 RunCount=ReadBlobByte(image); /* EXT */ in UnpackWPG2Raster()
632 RunCount=ReadBlobByte(image); /* RST */ in UnpackWPG2Raster()
647 …if (InsertRow(image,BImgBuff,(ssize_t) (image->rows > y ? y : image->rows-1),bpp,exception) != Mag… in UnpackWPG2Raster()
653 RunCount=ReadBlobByte(image); /* WHT */ in UnpackWPG2Raster()
667 SampleBuffer[i]=ReadBlobByte(image); in UnpackWPG2Raster()
675 bbuf=ReadBlobByte(image); in UnpackWPG2Raster()
680 if (EOFBlob(image) != MagickFalse) in UnpackWPG2Raster()
690 static unsigned LoadWPG2Flags(Image *image,char Precision,float *Angle,tCTM *CTM) in LoadWPG2Flags() argument
702 Flags=ReadBlobLSBShort(image); in LoadWPG2Flags()
703 if(Flags & LCK) (void) ReadBlobLSBLong(image); /*Edit lock*/ in LoadWPG2Flags()
707 {(void) ReadBlobLSBShort(image);} /*ObjectID*/ in LoadWPG2Flags()
709 {(void) ReadBlobLSBLong(image);} /*ObjectID (Double precision)*/ in LoadWPG2Flags()
713 x=ReadBlobLSBLong(image); /*Rot Angle*/ in LoadWPG2Flags()
718 x=ReadBlobLSBLong(image); /*Sx*cos()*/ in LoadWPG2Flags()
720 x=ReadBlobLSBLong(image); /*Sy*cos()*/ in LoadWPG2Flags()
725 x=ReadBlobLSBLong(image); /*Kx*sin()*/ in LoadWPG2Flags()
727 x=ReadBlobLSBLong(image); /*Ky*sin()*/ in LoadWPG2Flags()
732 x=ReadBlobLSBLong(image); DenX=ReadBlobLSBShort(image); /*Tx*/ in LoadWPG2Flags()
735 x=ReadBlobLSBLong(image); DenX=ReadBlobLSBShort(image); /*Ty*/ in LoadWPG2Flags()
742 x=ReadBlobLSBShort(image); DenX=ReadBlobLSBShort(image); /*Px*/ in LoadWPG2Flags()
744 x=ReadBlobLSBShort(image); DenX=ReadBlobLSBShort(image); /*Py*/ in LoadWPG2Flags()
751 static Image *ExtractPostscript(Image *image,const ImageInfo *image_info, in ExtractPostscript() argument
782 return(image); in ExtractPostscript()
794 if (SeekBlob(image,PS_Offset,SEEK_SET) != PS_Offset) in ExtractPostscript()
798 image->filename); in ExtractPostscript()
801 count=ReadBlob(image, 2*MagickPathExtent, magick); in ExtractPostscript()
806 image->filename); in ExtractPostscript()
810 if (SeekBlob(image,PS_Offset,SEEK_SET) != PS_Offset) in ExtractPostscript()
814 image->filename); in ExtractPostscript()
819 c=ReadBlobByte(image); in ExtractPostscript()
824 image->filename); in ExtractPostscript()
841 image->filename); in ExtractPostscript()
870 (void) CopyMagickString(p->filename,image->filename,MagickPathExtent); in ExtractPostscript()
871 (void) CopyMagickString(p->magick_filename,image->magick_filename, in ExtractPostscript()
873 (void) CopyMagickString(p->magick,image->magick,MagickPathExtent); in ExtractPostscript()
886 p->blob=ReferenceBlob(image->blob); in ExtractPostscript()
892 if ((image->rows == 0 || image->columns == 0) && in ExtractPostscript()
893 (image->previous != NULL || image->next != NULL)) in ExtractPostscript()
895 DeleteImageFromList(&image); in ExtractPostscript()
898 AppendImageToList(&image,image2); in ExtractPostscript()
899 while (image->next != NULL) in ExtractPostscript()
900 image=image->next; in ExtractPostscript()
908 return(DestroyImageList(image)); in ExtractPostscript()
909 return(image); in ExtractPostscript()
1024 *image; in ReadWPGImage() local
1076 image=AcquireImage(image_info,exception); in ReadWPGImage()
1077 image->depth=8; in ReadWPGImage()
1078 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadWPGImage()
1081 image=DestroyImageList(image); in ReadWPGImage()
1087 Header.FileId=ReadBlobLSBLong(image); in ReadWPGImage()
1088 Header.DataOffset=(MagickOffsetType) ReadBlobLSBLong(image); in ReadWPGImage()
1089 Header.ProductType=ReadBlobLSBShort(image); in ReadWPGImage()
1090 Header.FileType=ReadBlobLSBShort(image); in ReadWPGImage()
1091 Header.MajorVersion=ReadBlobByte(image); in ReadWPGImage()
1092 Header.MinorVersion=ReadBlobByte(image); in ReadWPGImage()
1093 Header.EncryptKey=ReadBlobLSBShort(image); in ReadWPGImage()
1094 Header.Reserved=ReadBlobLSBShort(image); in ReadWPGImage()
1101 image->columns = 1; in ReadWPGImage()
1102 image->rows = 1; in ReadWPGImage()
1103 image->colors = 0; in ReadWPGImage()
1104 image->storage_class=DirectClass; in ReadWPGImage()
1105 (void) ResetImagePixels(image,exception); in ReadWPGImage()
1113 while(!EOFBlob(image)) /* object parser loop */ in ReadWPGImage()
1115 if (SeekBlob(image,Header.DataOffset,SEEK_SET) != Header.DataOffset) in ReadWPGImage()
1117 if(EOFBlob(image)) in ReadWPGImage()
1120 Rec.RecType=(i=ReadBlobByte(image)); in ReadWPGImage()
1123 Rd_WP_DWORD(image,&Rec.RecordLength); in ReadWPGImage()
1124 if (Rec.RecordLength > GetBlobSize(image)) in ReadWPGImage()
1126 if(EOFBlob(image)) in ReadWPGImage()
1129 Header.DataOffset=TellBlob(image)+Rec.RecordLength; in ReadWPGImage()
1134 BitmapHeader1.Width=ReadBlobLSBShort(image); in ReadWPGImage()
1135 BitmapHeader1.Height=ReadBlobLSBShort(image); in ReadWPGImage()
1138 BitmapHeader1.Depth=ReadBlobLSBShort(image); in ReadWPGImage()
1139 BitmapHeader1.HorzRes=ReadBlobLSBShort(image); in ReadWPGImage()
1140 BitmapHeader1.VertRes=ReadBlobLSBShort(image); in ReadWPGImage()
1144 image->units=PixelsPerCentimeterResolution; in ReadWPGImage()
1145 image->resolution.x=BitmapHeader1.HorzRes/470.0; in ReadWPGImage()
1146 image->resolution.y=BitmapHeader1.VertRes/470.0; in ReadWPGImage()
1148 image->columns=BitmapHeader1.Width; in ReadWPGImage()
1149 image->rows=BitmapHeader1.Height; in ReadWPGImage()
1155 WPG_Palette.StartIndex=ReadBlobLSBShort(image); in ReadWPGImage()
1156 WPG_Palette.NumOfEntries=ReadBlobLSBShort(image); in ReadWPGImage()
1162 image->colors=WPG_Palette.NumOfEntries; in ReadWPGImage()
1163 if (AcquireImageColormap(image,image->colors,exception) == MagickFalse) in ReadWPGImage()
1168 image->colormap[i].red=ScaleCharToQuantum((unsigned char) in ReadWPGImage()
1169 ReadBlobByte(image)); in ReadWPGImage()
1170 image->colormap[i].green=ScaleCharToQuantum((unsigned char) in ReadWPGImage()
1171 ReadBlobByte(image)); in ReadWPGImage()
1172 image->colormap[i].blue=ScaleCharToQuantum((unsigned char) in ReadWPGImage()
1173 ReadBlobByte(image)); in ReadWPGImage()
1180 image=ExtractPostscript(image,image_info, in ReadWPGImage()
1181 TellBlob(image)+8, /* skip PS header in the wpg */ in ReadWPGImage()
1183 if (image == NULL) in ReadWPGImage()
1190 BitmapHeader2.RotAngle=ReadBlobLSBShort(image); in ReadWPGImage()
1191 BitmapHeader2.LowLeftX=ReadBlobLSBShort(image); in ReadWPGImage()
1192 BitmapHeader2.LowLeftY=ReadBlobLSBShort(image); in ReadWPGImage()
1193 BitmapHeader2.UpRightX=ReadBlobLSBShort(image); in ReadWPGImage()
1194 BitmapHeader2.UpRightY=ReadBlobLSBShort(image); in ReadWPGImage()
1195 BitmapHeader2.Width=ReadBlobLSBShort(image); in ReadWPGImage()
1196 BitmapHeader2.Height=ReadBlobLSBShort(image); in ReadWPGImage()
1199 BitmapHeader2.Depth=ReadBlobLSBShort(image); in ReadWPGImage()
1200 BitmapHeader2.HorzRes=ReadBlobLSBShort(image); in ReadWPGImage()
1201 BitmapHeader2.VertRes=ReadBlobLSBShort(image); in ReadWPGImage()
1203 image->units=PixelsPerCentimeterResolution; in ReadWPGImage()
1204 image->page.width=(unsigned int) in ReadWPGImage()
1206 image->page.height=(unsigned int) in ReadWPGImage()
1208 image->page.x=(int) (BitmapHeader2.LowLeftX/470.0); in ReadWPGImage()
1209 image->page.y=(int) (BitmapHeader2.LowLeftX/470.0); in ReadWPGImage()
1212 image->resolution.x=BitmapHeader2.HorzRes/470.0; in ReadWPGImage()
1213 image->resolution.y=BitmapHeader2.VertRes/470.0; in ReadWPGImage()
1215 image->columns=BitmapHeader2.Width; in ReadWPGImage()
1216 image->rows=BitmapHeader2.Height; in ReadWPGImage()
1220 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadWPGImage()
1223 (void) ResetImagePixels(image,exception); in ReadWPGImage()
1224 if ((image->storage_class != PseudoClass) && (bpp < 24)) in ReadWPGImage()
1226 image->colors=one << bpp; in ReadWPGImage()
1227 if (image->colors > GetBlobSize(image)) in ReadWPGImage()
1230 if (!AcquireImageColormap(image,image->colors,exception)) in ReadWPGImage()
1237 for (i=0; (i < (int) image->colors) && (i < 256); i++) in ReadWPGImage()
1239 image->colormap[i].red=ScaleCharToQuantum(WPG1_Palette[i].Red); in ReadWPGImage()
1240 image->colormap[i].green=ScaleCharToQuantum(WPG1_Palette[i].Green); in ReadWPGImage()
1241 image->colormap[i].blue=ScaleCharToQuantum(WPG1_Palette[i].Blue); in ReadWPGImage()
1242 image->colormap[i].alpha=OpaqueAlpha; in ReadWPGImage()
1248 if ( (image->colors < (one << bpp)) && (bpp != 24) ) in ReadWPGImage()
1256 colormap=image->colormap; in ReadWPGImage()
1257 colors=image->colors; in ReadWPGImage()
1258 image->colormap=(PixelInfo *) NULL; in ReadWPGImage()
1259 if (AcquireImageColormap(image,one << bpp,exception) == MagickFalse) in ReadWPGImage()
1265 (void) memcpy(image->colormap,colormap,MagickMin( in ReadWPGImage()
1266 image->colors,colors)*sizeof(*image->colormap)); in ReadWPGImage()
1272 if ((bpp == 1) && (image->colors > 1)) in ReadWPGImage()
1274 if(image->colormap[0].red==0 && in ReadWPGImage()
1275 image->colormap[0].green==0 && in ReadWPGImage()
1276 image->colormap[0].blue==0 && in ReadWPGImage()
1277 image->colormap[1].red==0 && in ReadWPGImage()
1278 image->colormap[1].green==0 && in ReadWPGImage()
1279 image->colormap[1].blue==0) in ReadWPGImage()
1281 image->colormap[1].red = in ReadWPGImage()
1282 image->colormap[1].green = in ReadWPGImage()
1283 image->colormap[1].blue = QuantumRange; in ReadWPGImage()
1284 image->colormap[1].alpha=OpaqueAlpha; in ReadWPGImage()
1288 if(UnpackWPGRaster(image,bpp,exception) < 0) in ReadWPGImage()
1303 flop_image = FlopImage(image, exception); in ReadWPGImage()
1305 DuplicateBlob(flop_image,image); in ReadWPGImage()
1306 ReplaceImageInList(&image,flop_image); in ReadWPGImage()
1315 flip_image = FlipImage(image, exception); in ReadWPGImage()
1317 DuplicateBlob(flip_image,image); in ReadWPGImage()
1318 ReplaceImageInList(&image,flip_image); in ReadWPGImage()
1327 rotate_image=RotateImage(image,(BitmapHeader2.RotAngle & in ReadWPGImage()
1330 DuplicateBlob(rotate_image,image); in ReadWPGImage()
1331 ReplaceImageInList(&image,rotate_image); in ReadWPGImage()
1337 AcquireNextImage(image_info,image,exception); in ReadWPGImage()
1338 image->depth=8; in ReadWPGImage()
1339 if (image->next == (Image *) NULL) in ReadWPGImage()
1341 image=SyncNextImageInList(image); in ReadWPGImage()
1342 image->columns=image->rows=0; in ReadWPGImage()
1343 image->colors=0; in ReadWPGImage()
1349 image=ExtractPostscript(image,image_info, in ReadWPGImage()
1350 TellBlob(image)+0x3C, /* skip PS l2 header in the wpg */ in ReadWPGImage()
1352 if (image == NULL) in ReadWPGImage()
1364 while(!EOFBlob(image)) /* object parser loop */ in ReadWPGImage()
1366 if (SeekBlob(image,Header.DataOffset,SEEK_SET) != Header.DataOffset) in ReadWPGImage()
1368 if (EOFBlob(image)) in ReadWPGImage()
1371 Rec2.Class=(i=ReadBlobByte(image)); in ReadWPGImage()
1374 Rec2.RecType=(i=ReadBlobByte(image)); in ReadWPGImage()
1377 Rd_WP_DWORD(image,&Rec2.Extension); in ReadWPGImage()
1378 Rd_WP_DWORD(image,&Rec2.RecordLength); in ReadWPGImage()
1379 if(EOFBlob(image)) in ReadWPGImage()
1382 Header.DataOffset=TellBlob(image)+Rec2.RecordLength; in ReadWPGImage()
1387 StartWPG.HorizontalUnits=ReadBlobLSBShort(image); in ReadWPGImage()
1388 StartWPG.VerticalUnits=ReadBlobLSBShort(image); in ReadWPGImage()
1389 StartWPG.PosSizePrecision=ReadBlobByte(image); in ReadWPGImage()
1392 WPG_Palette.StartIndex=ReadBlobLSBShort(image); in ReadWPGImage()
1393 WPG_Palette.NumOfEntries=ReadBlobLSBShort(image); in ReadWPGImage()
1399 image->colors=WPG_Palette.NumOfEntries; in ReadWPGImage()
1400 if (AcquireImageColormap(image,image->colors,exception) == MagickFalse) in ReadWPGImage()
1406 image->colormap[i].red=ScaleCharToQuantum((char) in ReadWPGImage()
1407 ReadBlobByte(image)); in ReadWPGImage()
1408 image->colormap[i].green=ScaleCharToQuantum((char) in ReadWPGImage()
1409 ReadBlobByte(image)); in ReadWPGImage()
1410 image->colormap[i].blue=ScaleCharToQuantum((char) in ReadWPGImage()
1411 ReadBlobByte(image)); in ReadWPGImage()
1412 image->colormap[i].alpha=OpaqueAlpha; in ReadWPGImage()
1413 (void) ReadBlobByte(image); /*Opacity??*/ in ReadWPGImage()
1417 Bitmap2Header1.Width=ReadBlobLSBShort(image); in ReadWPGImage()
1418 Bitmap2Header1.Height=ReadBlobLSBShort(image); in ReadWPGImage()
1421 Bitmap2Header1.Depth=ReadBlobByte(image); in ReadWPGImage()
1422 Bitmap2Header1.Compression=ReadBlobByte(image); in ReadWPGImage()
1446 image->columns=Bitmap2Header1.Width; in ReadWPGImage()
1447 image->rows=Bitmap2Header1.Height; in ReadWPGImage()
1449 return(image); in ReadWPGImage()
1450 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadWPGImage()
1452 status=ResetImagePixels(image,exception); in ReadWPGImage()
1455 if ((image->colors == 0) && (bpp != 24)) in ReadWPGImage()
1457 image->colors=one << bpp; in ReadWPGImage()
1458 if (!AcquireImageColormap(image,image->colors,exception)) in ReadWPGImage()
1464 if( image->colors<(one << bpp) && bpp!=24 ) in ReadWPGImage()
1465 image->colormap=(PixelInfo *) ResizeQuantumMemory( in ReadWPGImage()
1466 image->colormap,(size_t) (one << bpp), in ReadWPGImage()
1467 sizeof(*image->colormap)); in ReadWPGImage()
1475 ldblk=(ssize_t) ((bpp*image->columns+7)/8); in ReadWPGImage()
1480 for (i=0; i< (ssize_t) image->rows; i++) in ReadWPGImage()
1485 count=ReadBlob(image,(size_t) ldblk,BImgBuff); in ReadWPGImage()
1488 if (InsertRow(image,BImgBuff,i,bpp,exception) == MagickFalse) in ReadWPGImage()
1492 if (i < (ssize_t) image->rows) in ReadWPGImage()
1498 if( UnpackWPG2Raster(image,bpp,exception) < 0) in ReadWPGImage()
1509 flop_image = FlopImage(image, exception); in ReadWPGImage()
1511 DuplicateBlob(flop_image,image); in ReadWPGImage()
1512 ReplaceImageInList(&image,flop_image); in ReadWPGImage()
1525 flip_image = FlipImage(image, exception); in ReadWPGImage()
1527 DuplicateBlob(flip_image,image); in ReadWPGImage()
1528 ReplaceImageInList(&image,flip_image); in ReadWPGImage()
1540 AcquireNextImage(image_info,image,exception); in ReadWPGImage()
1541 image->depth=8; in ReadWPGImage()
1542 if (image->next == (Image *) NULL) in ReadWPGImage()
1544 image=SyncNextImageInList(image); in ReadWPGImage()
1545 image->columns=image->rows=0; in ReadWPGImage()
1546 image->colors=0; in ReadWPGImage()
1550 i=ReadBlobLSBShort(image); in ReadWPGImage()
1553 image=ExtractPostscript(image,image_info, in ReadWPGImage()
1554 TellBlob(image)+i, /*skip PS header in the wpg2*/ in ReadWPGImage()
1556 if (image == NULL) in ReadWPGImage()
1563 WPG2Flags = LoadWPG2Flags(image,StartWPG.PosSizePrecision,NULL,&CTM); in ReadWPGImage()
1578 (void) CloseBlob(image); in ReadWPGImage()
1590 p=image; in ReadWPGImage()
1591 image=NULL; in ReadWPGImage()
1599 image=p; in ReadWPGImage()
1606 for (p=image; p != (Image *) NULL; p=p->next) in ReadWPGImage()
1609 if (image == (Image *) NULL) in ReadWPGImage()
1612 return(image); in ReadWPGImage()