• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:msl_info

110   (void) ThrowMagickException(msl_info->exception,GetMagickModule(),severity, \
251 *msl_info; in MSLIsStandalone() local
257 msl_info=(MSLInfo *) context; in MSLIsStandalone()
258 return(msl_info->document->standalone == 1); in MSLIsStandalone()
264 *msl_info; in MSLHasInternalSubset() local
271 msl_info=(MSLInfo *) context; in MSLHasInternalSubset()
272 return(msl_info->document->intSubset != NULL); in MSLHasInternalSubset()
278 *msl_info; in MSLHasExternalSubset() local
285 msl_info=(MSLInfo *) context; in MSLHasExternalSubset()
286 return(msl_info->document->extSubset != NULL); in MSLHasExternalSubset()
293 *msl_info; in MSLInternalSubset() local
302 msl_info=(MSLInfo *) context; in MSLInternalSubset()
303 (void) xmlCreateIntSubset(msl_info->document,name,external_id,system_id); in MSLInternalSubset()
310 *msl_info; in MSLResolveEntity() local
325 msl_info=(MSLInfo *) context; in MSLResolveEntity()
327 public_id,msl_info->parser); in MSLResolveEntity()
334 *msl_info; in MSLGetEntity() local
341 msl_info=(MSLInfo *) context; in MSLGetEntity()
342 return(xmlGetDocEntity(msl_info->document,name)); in MSLGetEntity()
348 *msl_info; in MSLGetParameterEntity() local
355 msl_info=(MSLInfo *) context; in MSLGetParameterEntity()
356 return(xmlGetParameterEntity(msl_info->document,name)); in MSLGetParameterEntity()
363 *msl_info; in MSLEntityDeclaration() local
373 msl_info=(MSLInfo *) context; in MSLEntityDeclaration()
374 if (msl_info->parser->inSubset == 1) in MSLEntityDeclaration()
375 (void) xmlAddDocEntity(msl_info->document,name,type,public_id,system_id, in MSLEntityDeclaration()
378 if (msl_info->parser->inSubset == 2) in MSLEntityDeclaration()
379 (void) xmlAddDtdEntity(msl_info->document,name,type,public_id,system_id, in MSLEntityDeclaration()
388 *msl_info; in MSLAttributeDeclaration() local
403 msl_info=(MSLInfo *) context; in MSLAttributeDeclaration()
406 parser=msl_info->parser; in MSLAttributeDeclaration()
409 (void) xmlAddAttributeDecl(&parser->vctxt,msl_info->document->intSubset, in MSLAttributeDeclaration()
414 (void) xmlAddAttributeDecl(&parser->vctxt,msl_info->document->extSubset, in MSLAttributeDeclaration()
427 *msl_info; in MSLElementDeclaration() local
437 msl_info=(MSLInfo *) context; in MSLElementDeclaration()
438 parser=msl_info->parser; in MSLElementDeclaration()
440 (void) xmlAddElementDecl(&parser->vctxt,msl_info->document->intSubset, in MSLElementDeclaration()
444 (void) xmlAddElementDecl(&parser->vctxt,msl_info->document->extSubset, in MSLElementDeclaration()
452 *msl_info; in MSLNotationDeclaration() local
464 msl_info=(MSLInfo *) context; in MSLNotationDeclaration()
465 parser=msl_info->parser; in MSLNotationDeclaration()
467 (void) xmlAddNotationDecl(&parser->vctxt,msl_info->document->intSubset, in MSLNotationDeclaration()
471 (void) xmlAddNotationDecl(&parser->vctxt,msl_info->document->intSubset, in MSLNotationDeclaration()
479 *msl_info; in MSLUnparsedEntityDeclaration() local
489 msl_info=(MSLInfo *) context; in MSLUnparsedEntityDeclaration()
490 (void) xmlAddDocEntity(msl_info->document,name, in MSLUnparsedEntityDeclaration()
498 *msl_info; in MSLSetDocumentLocator() local
506 msl_info=(MSLInfo *) context; in MSLSetDocumentLocator()
507 (void) msl_info; in MSLSetDocumentLocator()
513 *msl_info; in MSLStartDocument() local
523 msl_info=(MSLInfo *) context; in MSLStartDocument()
524 parser=msl_info->parser; in MSLStartDocument()
525 msl_info->document=xmlNewDoc(parser->version); in MSLStartDocument()
526 if (msl_info->document == (xmlDocPtr) NULL) in MSLStartDocument()
529 msl_info->document->encoding=NULL; in MSLStartDocument()
531 msl_info->document->encoding=xmlStrdup(parser->encoding); in MSLStartDocument()
532 msl_info->document->standalone=parser->standalone; in MSLStartDocument()
538 *msl_info; in MSLEndDocument() local
544 msl_info=(MSLInfo *) context; in MSLEndDocument()
545 if (msl_info->content != (char *) NULL) in MSLEndDocument()
546 msl_info->content=DestroyString(msl_info->content); in MSLEndDocument()
548 if (msl_info->document != (xmlDocPtr) NULL) in MSLEndDocument()
550 xmlFreeDoc(msl_info->document); in MSLEndDocument()
551 msl_info->document=(xmlDocPtr) NULL; in MSLEndDocument()
556 static void MSLPushImage(MSLInfo *msl_info,Image *image) in MSLPushImage() argument
563 assert(msl_info != (MSLInfo *) NULL); in MSLPushImage()
564 msl_info->n++; in MSLPushImage()
565 n=msl_info->n; in MSLPushImage()
566 msl_info->image_info=(ImageInfo **) ResizeQuantumMemory(msl_info->image_info, in MSLPushImage()
567 (n+1),sizeof(*msl_info->image_info)); in MSLPushImage()
568 msl_info->draw_info=(DrawInfo **) ResizeQuantumMemory(msl_info->draw_info, in MSLPushImage()
569 (n+1),sizeof(*msl_info->draw_info)); in MSLPushImage()
570 msl_info->attributes=(Image **) ResizeQuantumMemory(msl_info->attributes, in MSLPushImage()
571 (n+1),sizeof(*msl_info->attributes)); in MSLPushImage()
572 msl_info->image=(Image **) ResizeQuantumMemory(msl_info->image,(n+1), in MSLPushImage()
573 sizeof(*msl_info->image)); in MSLPushImage()
574 if ((msl_info->image_info == (ImageInfo **) NULL) || in MSLPushImage()
575 (msl_info->draw_info == (DrawInfo **) NULL) || in MSLPushImage()
576 (msl_info->attributes == (Image **) NULL) || in MSLPushImage()
577 (msl_info->image == (Image **) NULL)) in MSLPushImage()
579 msl_info->image_info[n]=CloneImageInfo(msl_info->image_info[n-1]); in MSLPushImage()
580 msl_info->draw_info[n]=CloneDrawInfo(msl_info->image_info[n-1], in MSLPushImage()
581 msl_info->draw_info[n-1]); in MSLPushImage()
582 msl_info->attributes[n]=CloneImage(msl_info->attributes[n-1],0,0,MagickTrue, in MSLPushImage()
583 msl_info->exception); in MSLPushImage()
584 msl_info->image[n]=(Image *) image; in MSLPushImage()
585 if ((msl_info->image_info[n] == (ImageInfo *) NULL) || in MSLPushImage()
586 (msl_info->attributes[n] == (Image *) NULL)) in MSLPushImage()
588 if (msl_info->number_groups != 0) in MSLPushImage()
589 msl_info->group_info[msl_info->number_groups-1].numImages++; in MSLPushImage()
592 static void MSLPopImage(MSLInfo *msl_info) in MSLPopImage() argument
594 if (msl_info->number_groups != 0) in MSLPopImage()
596 if (msl_info->image[msl_info->n] != (Image *) NULL) in MSLPopImage()
597 msl_info->image[msl_info->n]=DestroyImage(msl_info->image[msl_info->n]); in MSLPopImage()
598 msl_info->attributes[msl_info->n]=DestroyImage( in MSLPopImage()
599 msl_info->attributes[msl_info->n]); in MSLPopImage()
600 msl_info->draw_info[msl_info->n]=DestroyDrawInfo( in MSLPopImage()
601 msl_info->draw_info[msl_info->n]); in MSLPopImage()
602 msl_info->image_info[msl_info->n]=DestroyImageInfo( in MSLPopImage()
603 msl_info->image_info[msl_info->n]); in MSLPopImage()
604 msl_info->n--; in MSLPopImage()
654 *msl_info; in MSLStartElement() local
672 msl_info=(MSLInfo *) context; in MSLStartElement()
673 n=msl_info->n; in MSLStartElement()
695 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
706 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
707 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
753 channel_mask=SetImageChannelMask(msl_info->image[n],channel); in MSLStartElement()
754 noise_image=AddNoiseImage(msl_info->image[n],noise,1.0, in MSLStartElement()
755 msl_info->exception); in MSLStartElement()
756 (void) SetPixelChannelMask(msl_info->image[n],channel_mask); in MSLStartElement()
759 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
760 msl_info->image[n]=noise_image; in MSLStartElement()
771 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
777 draw_info=CloneDrawInfo(msl_info->image_info[n], in MSLStartElement()
778 msl_info->draw_info[n]); in MSLStartElement()
786 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
787 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
896 flags=ParseGravityGeometry(msl_info->image[n],value, in MSLStartElement()
1093 (void) AnnotateImage(msl_info->image[n],draw_info, in MSLStartElement()
1094 msl_info->exception); in MSLStartElement()
1106 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
1117 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
1118 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
1148 append_image=AppendImages(msl_info->image[n],stack, in MSLStartElement()
1149 msl_info->exception); in MSLStartElement()
1152 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
1153 msl_info->image[n]=append_image; in MSLStartElement()
1170 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
1180 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
1181 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
1248 channel_mask=SetImageChannelMask(msl_info->image[n],channel); in MSLStartElement()
1249 blur_image=BlurImage(msl_info->image[n],geometry_info.rho, in MSLStartElement()
1250 geometry_info.sigma,msl_info->exception); in MSLStartElement()
1251 (void) SetPixelChannelMask(msl_info->image[n],channel_mask); in MSLStartElement()
1254 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
1255 msl_info->image[n]=blur_image; in MSLStartElement()
1266 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
1272 SetGeometry(msl_info->image[n],&geometry); in MSLStartElement()
1277 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
1278 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
1293 msl_info->image[n]->compose=(CompositeOperator) option; in MSLStartElement()
1306 &msl_info->image[n]->border_color,exception); in MSLStartElement()
1318 flags=ParsePageGeometry(msl_info->image[n],value, in MSLStartElement()
1360 border_image=BorderImage(msl_info->image[n],&geometry, in MSLStartElement()
1361 msl_info->image[n]->compose,msl_info->exception); in MSLStartElement()
1364 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
1365 msl_info->image[n]=border_image; in MSLStartElement()
1387 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
1393 GetPixelInfo(msl_info->image[n],&target); in MSLStartElement()
1399 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
1400 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
1423 &target,msl_info->exception); in MSLStartElement()
1438 colorize_image=ColorizeImage(msl_info->image[n],blend,&target, in MSLStartElement()
1439 msl_info->exception); in MSLStartElement()
1442 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
1443 msl_info->image[n]=colorize_image; in MSLStartElement()
1452 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
1466 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
1467 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
1510 newImage=CharcoalImage(msl_info->image[n],radius,sigma, in MSLStartElement()
1511 msl_info->exception); in MSLStartElement()
1514 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
1515 msl_info->image[n]=newImage; in MSLStartElement()
1527 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
1533 SetGeometry(msl_info->image[n],&geometry); in MSLStartElement()
1538 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
1539 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
1549 flags=ParsePageGeometry(msl_info->image[n],value, in MSLStartElement()
1615 chop_image=ChopImage(msl_info->image[n],&geometry, in MSLStartElement()
1616 msl_info->exception); in MSLStartElement()
1619 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
1620 msl_info->image[n]=chop_image; in MSLStartElement()
1634 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
1640 draw_info=CloneDrawInfo(msl_info->image_info[n], in MSLStartElement()
1641 msl_info->draw_info[n]); in MSLStartElement()
1642 SetGeometry(msl_info->image[n],&geometry); in MSLStartElement()
1648 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
1649 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
1679 msl_info->image[n]->fuzz=StringToDouble(value, in MSLStartElement()
1692 flags=ParsePageGeometry(msl_info->image[n],value, in MSLStartElement()
1696 (void) GetOneVirtualPixelInfo(msl_info->image[n], in MSLStartElement()
1711 (void) GetOneVirtualPixelInfo(msl_info->image[n], in MSLStartElement()
1726 (void) GetOneVirtualPixelInfo(msl_info->image[n], in MSLStartElement()
1743 (void) FloodfillPaintImage(msl_info->image[n],draw_info,&target, in MSLStartElement()
1745 MagickFalse : MagickTrue,msl_info->exception); in MSLStartElement()
1766 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
1778 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
1779 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
1803 for (j=0; j < msl_info->n; j++) in MSLStartElement()
1808 attribute=GetImageProperty(msl_info->attributes[j],"id", in MSLStartElement()
1813 composite_image=CloneImage(msl_info->image[j],0,0, in MSLStartElement()
1827 SetGeometry(msl_info->image[n],&geometry); in MSLStartElement()
1832 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
1833 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
1880 flags=ParsePageGeometry(msl_info->image[n],value, in MSLStartElement()
1893 msl_info->image[n]->gravity=(GravityType) option; in MSLStartElement()
1913 for (j=0; j < msl_info->n; j++) in MSLStartElement()
1918 attribute=GetImageProperty(msl_info->attributes[j],"id", in MSLStartElement()
1926 msl_info->image[j],CopyAlphaCompositeOp,MagickTrue, in MSLStartElement()
1960 (void) SetImageArtifact(msl_info->image[n], in MSLStartElement()
2021 image=msl_info->image[n]; in MSLStartElement()
2074 image=msl_info->image[n]; in MSLStartElement()
2110 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
2121 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
2122 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
2152 (void) ContrastImage(msl_info->image[n],sharpen, in MSLStartElement()
2153 msl_info->exception); in MSLStartElement()
2164 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
2170 SetGeometry(msl_info->image[n],&geometry); in MSLStartElement()
2175 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
2176 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
2186 flags=ParseGravityGeometry(msl_info->image[n],value, in MSLStartElement()
2250 crop_image=CropImage(msl_info->image[n],&geometry, in MSLStartElement()
2251 msl_info->exception); in MSLStartElement()
2254 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
2255 msl_info->image[n]=crop_image; in MSLStartElement()
2266 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
2277 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
2278 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
2303 (void) CycleColormapImage(msl_info->image[n],display,exception); in MSLStartElement()
2319 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
2329 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
2330 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
2335 despeckle_image=DespeckleImage(msl_info->image[n], in MSLStartElement()
2336 msl_info->exception); in MSLStartElement()
2339 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
2340 msl_info->image[n]=despeckle_image; in MSLStartElement()
2345 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
2355 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
2356 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
2369 (void) DisplayImages(msl_info->image_info[n],msl_info->image[n], in MSLStartElement()
2370 msl_info->exception); in MSLStartElement()
2381 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
2387 draw_info=CloneDrawInfo(msl_info->image_info[n], in MSLStartElement()
2388 msl_info->draw_info[n]); in MSLStartElement()
2396 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
2397 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
2506 flags=ParsePageGeometry(msl_info->image[n],value, in MSLStartElement()
2726 (void) DrawImage(msl_info->image[n],draw_info,exception); in MSLStartElement()
2743 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
2753 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
2754 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
2793 edge_image=EdgeImage(msl_info->image[n],geometry_info.rho, in MSLStartElement()
2794 msl_info->exception); in MSLStartElement()
2797 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
2798 msl_info->image[n]=edge_image; in MSLStartElement()
2809 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
2819 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
2820 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
2872 emboss_image=EmbossImage(msl_info->image[n],geometry_info.rho, in MSLStartElement()
2873 geometry_info.sigma,msl_info->exception); in MSLStartElement()
2876 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
2877 msl_info->image[n]=emboss_image; in MSLStartElement()
2888 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
2898 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
2899 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
2904 enhance_image=EnhanceImage(msl_info->image[n], in MSLStartElement()
2905 msl_info->exception); in MSLStartElement()
2908 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
2909 msl_info->image[n]=enhance_image; in MSLStartElement()
2917 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
2927 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
2928 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
2941 (void) EqualizeImage(msl_info->image[n], in MSLStartElement()
2942 msl_info->exception); in MSLStartElement()
2952 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
2966 newImage=MergeImageLayers(msl_info->image[n],FlattenLayer, in MSLStartElement()
2967 msl_info->exception); in MSLStartElement()
2970 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
2971 msl_info->image[n]=newImage; in MSLStartElement()
2983 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
2993 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
2994 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
2999 flip_image=FlipImage(msl_info->image[n], in MSLStartElement()
3000 msl_info->exception); in MSLStartElement()
3003 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
3004 msl_info->image[n]=flip_image; in MSLStartElement()
3015 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
3025 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
3026 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
3031 flop_image=FlopImage(msl_info->image[n], in MSLStartElement()
3032 msl_info->exception); in MSLStartElement()
3035 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
3036 msl_info->image[n]=flop_image; in MSLStartElement()
3050 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
3057 SetGeometry(msl_info->image[n],&geometry); in MSLStartElement()
3062 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
3063 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
3078 msl_info->image[n]->compose=(CompositeOperator) option; in MSLStartElement()
3091 &msl_info->image[n]->matte_color,exception); in MSLStartElement()
3103 flags=ParsePageGeometry(msl_info->image[n],value, in MSLStartElement()
3175 frame_info.width=msl_info->image[n]->columns+2*frame_info.x; in MSLStartElement()
3176 frame_info.height=msl_info->image[n]->rows+2*frame_info.y; in MSLStartElement()
3177 frame_image=FrameImage(msl_info->image[n],&frame_info, in MSLStartElement()
3178 msl_info->image[n]->compose,msl_info->exception); in MSLStartElement()
3181 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
3182 msl_info->image[n]=frame_image; in MSLStartElement()
3201 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
3216 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
3217 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
3290 (void) GammaImage(msl_info->image[n],strtod(gamma,(char **) NULL), in MSLStartElement()
3291 msl_info->exception); in MSLStartElement()
3296 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
3317 (double) msl_info->image[n]->rows); in MSLStartElement()
3318 (void) SetImageProperty(msl_info->attributes[n],key,value, in MSLStartElement()
3330 (double) msl_info->image[n]->columns); in MSLStartElement()
3331 (void) SetImageProperty(msl_info->attributes[n],key,value, in MSLStartElement()
3348 msl_info->number_groups++; in MSLStartElement()
3349 msl_info->group_info=(MSLGroupInfo *) ResizeQuantumMemory( in MSLStartElement()
3350 msl_info->group_info,msl_info->number_groups+1UL, in MSLStartElement()
3351 sizeof(*msl_info->group_info)); in MSLStartElement()
3361 MSLPushImage(msl_info,(Image *) NULL); in MSLStartElement()
3367 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
3368 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
3381 (void) CopyMagickString(msl_info->image_info[n]->filename, in MSLStartElement()
3383 (void) ConcatenateMagickString(msl_info->image_info[n]-> in MSLStartElement()
3385 next_image=ReadImage(msl_info->image_info[n],exception); in MSLStartElement()
3389 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
3390 msl_info->image[n]=next_image; in MSLStartElement()
3399 p=msl_info->image[n]; in MSLStartElement()
3407 (void) SetMSLAttributes(msl_info,keyword,value); in MSLStartElement()
3412 (void) SetMSLAttributes(msl_info,keyword,value); in MSLStartElement()
3427 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
3437 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
3438 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
3478 implode_image=ImplodeImage(msl_info->image[n],geometry_info.rho, in MSLStartElement()
3479 msl_info->image[n]->interpolate,msl_info->exception); in MSLStartElement()
3482 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
3483 msl_info->image[n]=implode_image; in MSLStartElement()
3498 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
3555 LevelImage(msl_info->image[n],levelBlack,levelWhite,levelGamma, in MSLStartElement()
3556 msl_info->exception); in MSLStartElement()
3571 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
3581 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
3582 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
3587 magnify_image=MagnifyImage(msl_info->image[n], in MSLStartElement()
3588 msl_info->exception); in MSLStartElement()
3591 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
3592 msl_info->image[n]=magnify_image; in MSLStartElement()
3609 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
3621 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
3622 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
3648 for (j=0; j < msl_info->n; j++) in MSLStartElement()
3653 attribute=GetImageProperty(msl_info->attributes[j],"id", in MSLStartElement()
3658 affinity_image=CloneImage(msl_info->image[j],0,0, in MSLStartElement()
3673 quantize_info=AcquireQuantizeInfo(msl_info->image_info[n]); in MSLStartElement()
3676 (void) RemapImages(quantize_info,msl_info->image[n], in MSLStartElement()
3697 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
3703 SetGeometry(msl_info->image[n],&geometry); in MSLStartElement()
3709 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
3710 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
3734 msl_info->image[n]->fuzz=StringToDouble(value, in MSLStartElement()
3747 flags=ParsePageGeometry(msl_info->image[n],value, in MSLStartElement()
3751 (void) GetOneVirtualPixelInfo(msl_info->image[n], in MSLStartElement()
3778 (void) GetOneVirtualPixelInfo(msl_info->image[n], in MSLStartElement()
3793 (void) GetOneVirtualPixelInfo(msl_info->image[n], in MSLStartElement()
3810 draw_info=CloneDrawInfo(msl_info->image_info[n], in MSLStartElement()
3811 msl_info->draw_info[n]); in MSLStartElement()
3813 channel_mask=SetImageChannelMask(msl_info->image[n],AlphaChannel); in MSLStartElement()
3814 (void) FloodfillPaintImage(msl_info->image[n],draw_info,&target, in MSLStartElement()
3816 MagickFalse : MagickTrue,msl_info->exception); in MSLStartElement()
3817 (void) SetPixelChannelMask(msl_info->image[n],channel_mask); in MSLStartElement()
3829 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
3839 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
3840 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
3880 median_image=StatisticImage(msl_info->image[n],MedianStatistic, in MSLStartElement()
3882 msl_info->exception); in MSLStartElement()
3885 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
3886 msl_info->image[n]=median_image; in MSLStartElement()
3897 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
3907 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
3908 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
3913 minify_image=MinifyImage(msl_info->image[n], in MSLStartElement()
3914 msl_info->exception); in MSLStartElement()
3917 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
3918 msl_info->image[n]=minify_image; in MSLStartElement()
3931 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
3944 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
3945 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
4043 (void) ModulateImage(msl_info->image[n],modulate, in MSLStartElement()
4044 msl_info->exception); in MSLStartElement()
4060 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
4071 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
4072 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
4118 channel_mask=SetImageChannelMask(msl_info->image[n],channel); in MSLStartElement()
4119 (void) NegateImage(msl_info->image[n],gray, in MSLStartElement()
4120 msl_info->exception); in MSLStartElement()
4121 (void) SetPixelChannelMask(msl_info->image[n],channel_mask); in MSLStartElement()
4129 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
4139 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
4140 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
4169 (void) NormalizeImage(msl_info->image[n], in MSLStartElement()
4170 msl_info->exception); in MSLStartElement()
4186 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
4196 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
4197 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
4237 paint_image=OilPaintImage(msl_info->image[n],geometry_info.rho, in MSLStartElement()
4238 geometry_info.sigma,msl_info->exception); in MSLStartElement()
4241 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
4242 msl_info->image[n]=paint_image; in MSLStartElement()
4254 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
4268 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
4269 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
4301 msl_info->image[n]->fuzz=StringToDouble(value, in MSLStartElement()
4317 channel_mask=SetImageChannelMask(msl_info->image[n],channel); in MSLStartElement()
4318 (void) OpaquePaintImage(msl_info->image[n],&target,&fill_color, in MSLStartElement()
4319 MagickFalse,msl_info->exception); in MSLStartElement()
4320 (void) SetPixelChannelMask(msl_info->image[n],channel_mask); in MSLStartElement()
4335 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
4336 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
4363 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
4386 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
4387 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
4395 (void) ProfileImage(msl_info->image[n],keyword, in MSLStartElement()
4402 profile_info=CloneImageInfo(msl_info->image_info[n]); in MSLStartElement()
4403 profile=GetImageProfile(msl_info->image[n],"iptc"); in MSLStartElement()
4441 (void) ProfileImage(msl_info->image[n],name, in MSLStartElement()
4454 (void) ProfileImage(msl_info->image[n],name, in MSLStartElement()
4476 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
4487 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
4488 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
4569 (void) QuantizeImage(&quantize_info,msl_info->image[n],exception); in MSLStartElement()
4586 draw_info=CloneDrawInfo(msl_info->image_info[n], in MSLStartElement()
4587 msl_info->draw_info[n]); in MSLStartElement()
4595 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
4596 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
4705 flags=ParsePageGeometry(msl_info->image[n],value, in MSLStartElement()
4903 status=GetTypeMetrics(msl_info->attributes[n],draw_info,&metrics, in MSLStartElement()
4904 msl_info->exception); in MSLStartElement()
4910 image=msl_info->attributes[n]; in MSLStartElement()
4954 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
4961 SetGeometry(msl_info->image[n],&geometry); in MSLStartElement()
4966 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
4967 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
4977 flags=ParsePageGeometry(msl_info->image[n],value, in MSLStartElement()
5036 (void) RaiseImage(msl_info->image[n],&geometry,raise, in MSLStartElement()
5037 msl_info->exception); in MSLStartElement()
5047 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
5048 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
5063 (void) CopyMagickString(msl_info->image_info[n]->filename, in MSLStartElement()
5065 image=ReadImage(msl_info->image_info[n],exception); in MSLStartElement()
5069 AppendImageToList(&msl_info->image[n],image); in MSLStartElement()
5072 (void) SetMSLAttributes(msl_info,keyword,value); in MSLStartElement()
5077 (void) SetMSLAttributes(msl_info,keyword,value); in MSLStartElement()
5092 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
5102 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
5103 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
5143 paint_image=StatisticImage(msl_info->image[n],NonpeakStatistic, in MSLStartElement()
5145 msl_info->exception); in MSLStartElement()
5148 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
5149 msl_info->image[n]=paint_image; in MSLStartElement()
5155 width=msl_info->image[n]->page.width; in MSLStartElement()
5156 height=msl_info->image[n]->page.height; in MSLStartElement()
5157 x=msl_info->image[n]->page.x; in MSLStartElement()
5158 y=msl_info->image[n]->page.y; in MSLStartElement()
5160 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
5171 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
5172 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
5209 width=msl_info->image[n]->columns+geometry.x; in MSLStartElement()
5215 height=msl_info->image[n]->rows+geometry.y; in MSLStartElement()
5275 msl_info->image[n]->page.width=width; in MSLStartElement()
5276 msl_info->image[n]->page.height=height; in MSLStartElement()
5277 msl_info->image[n]->page.x=x; in MSLStartElement()
5278 msl_info->image[n]->page.y=y; in MSLStartElement()
5287 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
5300 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
5301 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
5364 if (msl_info->image[n]->units == PixelsPerCentimeterResolution) in MSLStartElement()
5366 width=(size_t) (x_resolution*msl_info->image[n]->columns/ in MSLStartElement()
5367 (factor*(msl_info->image[n]->resolution.x == 0.0 ? DefaultResolution : in MSLStartElement()
5368 msl_info->image[n]->resolution.x))+0.5); in MSLStartElement()
5369 height=(size_t) (y_resolution*msl_info->image[n]->rows/ in MSLStartElement()
5370 (factor*(msl_info->image[n]->resolution.y == 0.0 ? DefaultResolution : in MSLStartElement()
5371 msl_info->image[n]->resolution.y))+0.5); in MSLStartElement()
5372 resample_image=ResizeImage(msl_info->image[n],width,height, in MSLStartElement()
5373 msl_info->image[n]->filter,msl_info->exception); in MSLStartElement()
5376 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
5377 msl_info->image[n]=resample_image; in MSLStartElement()
5392 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
5403 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
5404 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
5431 flags=ParseRegionGeometry(msl_info->image[n],value, in MSLStartElement()
5471 resize_image=ResizeImage(msl_info->image[n],geometry.width, in MSLStartElement()
5472 geometry.height,filter,msl_info->exception); in MSLStartElement()
5475 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
5476 msl_info->image[n]=resize_image; in MSLStartElement()
5487 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
5493 SetGeometry(msl_info->image[n],&geometry); in MSLStartElement()
5498 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
5499 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
5509 flags=ParsePageGeometry(msl_info->image[n],value, in MSLStartElement()
5551 roll_image=RollImage(msl_info->image[n],geometry.x,geometry.y, in MSLStartElement()
5552 msl_info->exception); in MSLStartElement()
5555 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
5556 msl_info->image[n]=roll_image; in MSLStartElement()
5562 width=msl_info->image[n]->columns; in MSLStartElement()
5563 height=msl_info->image[n]->rows; in MSLStartElement()
5566 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
5577 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
5578 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
5631 newImage=RollImage(msl_info->image[n], x, y, msl_info->exception); in MSLStartElement()
5634 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
5635 msl_info->image[n]=newImage; in MSLStartElement()
5648 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
5658 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
5659 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
5699 rotate_image=RotateImage(msl_info->image[n],geometry_info.rho, in MSLStartElement()
5700 msl_info->exception); in MSLStartElement()
5703 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
5704 msl_info->image[n]=rotate_image; in MSLStartElement()
5712 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
5723 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
5724 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
5755 newImage=RotateImage(msl_info->image[n], degrees, msl_info->exception); in MSLStartElement()
5758 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
5759 msl_info->image[n]=newImage; in MSLStartElement()
5777 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
5787 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
5788 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
5798 flags=ParseRegionGeometry(msl_info->image[n],value, in MSLStartElement()
5838 sample_image=SampleImage(msl_info->image[n],geometry.width, in MSLStartElement()
5839 geometry.height,msl_info->exception); in MSLStartElement()
5842 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
5843 msl_info->image[n]=sample_image; in MSLStartElement()
5854 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
5864 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
5865 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
5875 flags=ParseRegionGeometry(msl_info->image[n],value, in MSLStartElement()
5915 scale_image=ScaleImage(msl_info->image[n],geometry.width, in MSLStartElement()
5916 geometry.height,msl_info->exception); in MSLStartElement()
5919 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
5920 msl_info->image[n]=scale_image; in MSLStartElement()
5934 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
5948 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
5949 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
6012 (void) SegmentImage(msl_info->image[n],colorspace,verbose, in MSLStartElement()
6018 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
6029 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
6030 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
6040 for (j=0; j < msl_info->n; j++) in MSLStartElement()
6045 property=GetImageProperty(msl_info->attributes[j],"id", in MSLStartElement()
6049 SetImageMask(msl_info->image[n],ReadPixelMask, in MSLStartElement()
6050 msl_info->image[j],exception); in MSLStartElement()
6058 for (j=0; j < msl_info->n; j++) in MSLStartElement()
6063 property=GetImageProperty(msl_info->attributes[j],"id", in MSLStartElement()
6067 SetImageMask(msl_info->image[n],ReadPixelMask, in MSLStartElement()
6068 msl_info->image[j],exception); in MSLStartElement()
6084 (void) TransformImageColorspace(msl_info->image[n], in MSLStartElement()
6088 (void) SetMSLAttributes(msl_info,keyword,value); in MSLStartElement()
6089 (void) SetImageProperty(msl_info->image[n],keyword,value, in MSLStartElement()
6099 msl_info->image[n]->resolution.x=geometry_info.rho; in MSLStartElement()
6100 msl_info->image[n]->resolution.y=geometry_info.sigma; in MSLStartElement()
6102 msl_info->image[n]->resolution.y= in MSLStartElement()
6103 msl_info->image[n]->resolution.x; in MSLStartElement()
6106 (void) SetMSLAttributes(msl_info,keyword,value); in MSLStartElement()
6107 (void) SetImageProperty(msl_info->image[n],keyword,value, in MSLStartElement()
6126 (void) SetImageAlpha( msl_info->image[n], (Quantum) opac, in MSLStartElement()
6130 (void) SetMSLAttributes(msl_info,keyword,value); in MSLStartElement()
6131 (void) SetImageProperty(msl_info->image[n],keyword,value, in MSLStartElement()
6132 msl_info->exception); in MSLStartElement()
6153 image_option=GetImageArtifact(msl_info->image[n],"page"); in MSLStartElement()
6164 (void) SetImageOption(msl_info->image_info[n],keyword,page); in MSLStartElement()
6165 msl_info->image_info[n]->page=GetPageGeometry(page); in MSLStartElement()
6168 (void) SetMSLAttributes(msl_info,keyword,value); in MSLStartElement()
6169 (void) SetImageProperty(msl_info->image[n],keyword,value, in MSLStartElement()
6170 msl_info->exception); in MSLStartElement()
6175 (void) SetMSLAttributes(msl_info,keyword,value); in MSLStartElement()
6176 (void) SetImageProperty(msl_info->image[n],keyword,value, in MSLStartElement()
6177 msl_info->exception); in MSLStartElement()
6195 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
6206 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
6207 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
6270 shade_image=ShadeImage(msl_info->image[n],gray,geometry_info.rho, in MSLStartElement()
6271 geometry_info.sigma,msl_info->exception); in MSLStartElement()
6274 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
6275 msl_info->image[n]=shade_image; in MSLStartElement()
6286 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
6296 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
6297 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
6371 shadow_image=ShadowImage(msl_info->image[n],geometry_info.rho, in MSLStartElement()
6373 (ssize_t) ceil(geometry_info.psi-0.5),msl_info->exception); in MSLStartElement()
6376 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
6377 msl_info->image[n]=shadow_image; in MSLStartElement()
6386 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
6400 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
6401 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
6444 newImage=SharpenImage(msl_info->image[n],radius,sigma, in MSLStartElement()
6445 msl_info->exception); in MSLStartElement()
6448 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
6449 msl_info->image[n]=newImage; in MSLStartElement()
6459 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
6470 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
6471 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
6532 newImage=ShaveImage(msl_info->image[n], &rectInfo, in MSLStartElement()
6533 msl_info->exception); in MSLStartElement()
6536 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
6537 msl_info->image[n]=newImage; in MSLStartElement()
6550 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
6560 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
6561 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
6572 &msl_info->image[n]->background_color,exception); in MSLStartElement()
6626 shear_image=ShearImage(msl_info->image[n],geometry_info.rho, in MSLStartElement()
6627 geometry_info.sigma,msl_info->exception); in MSLStartElement()
6630 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
6631 msl_info->image[n]=shear_image; in MSLStartElement()
6639 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
6649 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
6650 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
6663 (void) SignatureImage(msl_info->image[n],exception); in MSLStartElement()
6671 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
6682 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
6683 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
6721 (void) SolarizeImage(msl_info->image[n],geometry_info.rho, in MSLStartElement()
6722 msl_info->exception); in MSLStartElement()
6733 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
6743 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
6744 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
6784 spread_image=SpreadImage(msl_info->image[n], in MSLStartElement()
6785 msl_info->image[n]->interpolate,geometry_info.rho, in MSLStartElement()
6786 msl_info->exception); in MSLStartElement()
6789 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
6790 msl_info->image[n]=spread_image; in MSLStartElement()
6798 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
6809 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
6810 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
6820 for (j=0; j<msl_info->n;j++) in MSLStartElement()
6823 theAttr = GetImageProperty(msl_info->attributes[j], "id", in MSLStartElement()
6827 watermark = msl_info->image[j]; in MSLStartElement()
6852 newImage=SteganoImage(msl_info->image[n], watermark, msl_info->exception); in MSLStartElement()
6855 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
6856 msl_info->image[n]=newImage; in MSLStartElement()
6866 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
6876 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
6877 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
6887 for (j=0; j<msl_info->n;j++) in MSLStartElement()
6890 theAttr = GetImageProperty(msl_info->attributes[j], "id", in MSLStartElement()
6894 stereoImage = msl_info->image[j]; in MSLStartElement()
6919 newImage=StereoImage(msl_info->image[n], stereoImage, msl_info->exception); in MSLStartElement()
6922 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
6923 msl_info->image[n]=newImage; in MSLStartElement()
6933 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
6943 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
6944 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
6949 (void) StripImage(msl_info->image[n],msl_info->exception); in MSLStartElement()
6963 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
6975 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
6976 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
7007 p=GetImageFromList(msl_info->image[n],index); in MSLStartElement()
7008 q=GetImageFromList(msl_info->image[n],swap_index); in MSLStartElement()
7014 swap=CloneImage(p,0,0,MagickTrue,msl_info->exception); in MSLStartElement()
7016 msl_info->exception)); in MSLStartElement()
7018 msl_info->image[n]=GetFirstImageInList(q); in MSLStartElement()
7029 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
7039 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
7040 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
7080 swirl_image=SwirlImage(msl_info->image[n],geometry_info.rho, in MSLStartElement()
7081 msl_info->image[n]->interpolate,msl_info->exception); in MSLStartElement()
7084 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
7085 msl_info->image[n]=swirl_image; in MSLStartElement()
7093 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
7103 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
7104 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
7117 (void) SyncImage(msl_info->image[n],exception); in MSLStartElement()
7133 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
7144 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
7145 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
7154 for (j=0; j < msl_info->n; j++) in MSLStartElement()
7159 attribute=GetImageProperty(msl_info->attributes[j],"id", in MSLStartElement()
7164 texture_image=CloneImage(msl_info->image[j],0,0, in MSLStartElement()
7179 (void) TextureImage(msl_info->image[n],texture_image,exception); in MSLStartElement()
7188 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
7198 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
7199 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
7227 BilevelImage(msl_info->image[n],threshold,exception); in MSLStartElement()
7233 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
7243 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
7244 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
7259 (void) TransparentPaintImage(msl_info->image[n],&target, in MSLStartElement()
7260 TransparentAlpha,MagickFalse,msl_info->exception); in MSLStartElement()
7277 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
7296 newImage=CropImage(msl_info->image[n],&rectInfo, msl_info->exception); in MSLStartElement()
7299 msl_info->image[n]=DestroyImage(msl_info->image[n]); in MSLStartElement()
7300 msl_info->image[n]=newImage; in MSLStartElement()
7311 if (msl_info->image[n] == (Image *) NULL) in MSLStartElement()
7322 attribute=InterpretImageProperties(msl_info->image_info[n], in MSLStartElement()
7323 msl_info->attributes[n],(const char *) attributes[i],exception); in MSLStartElement()
7333 (void) CopyMagickString(msl_info->image[n]->filename,value, in MSLStartElement()
7337 (void) SetMSLAttributes(msl_info,keyword,value); in MSLStartElement()
7341 (void) SetMSLAttributes(msl_info,keyword,value); in MSLStartElement()
7349 *msl_info->image_info[n]->magick='\0'; in MSLStartElement()
7350 (void) WriteImage(msl_info->image_info[n], msl_info->image[n], in MSLStartElement()
7351 msl_info->exception); in MSLStartElement()
7375 *msl_info; in MSLEndElement() local
7382 msl_info=(MSLInfo *) context; in MSLEndElement()
7383 n=msl_info->n; in MSLEndElement()
7391 (void) DeleteImageProperty(msl_info->image[n],"comment"); in MSLEndElement()
7392 if (msl_info->content == (char *) NULL) in MSLEndElement()
7394 StripString(msl_info->content); in MSLEndElement()
7395 (void) SetImageProperty(msl_info->image[n],"comment", in MSLEndElement()
7396 msl_info->content,msl_info->exception); in MSLEndElement()
7406 if (msl_info->group_info[msl_info->number_groups-1].numImages > 0 ) in MSLEndElement()
7409 (msl_info->group_info[msl_info->number_groups-1].numImages); in MSLEndElement()
7412 if (msl_info->image[msl_info->n] != (Image *) NULL) in MSLEndElement()
7413 msl_info->image[msl_info->n]=DestroyImage( in MSLEndElement()
7414 msl_info->image[msl_info->n]); in MSLEndElement()
7415 msl_info->attributes[msl_info->n]=DestroyImage( in MSLEndElement()
7416 msl_info->attributes[msl_info->n]); in MSLEndElement()
7417 msl_info->image_info[msl_info->n]=DestroyImageInfo( in MSLEndElement()
7418 msl_info->image_info[msl_info->n]); in MSLEndElement()
7419 msl_info->n--; in MSLEndElement()
7422 msl_info->number_groups--; in MSLEndElement()
7430 MSLPopImage(msl_info); in MSLEndElement()
7438 (void) DeleteImageProperty(msl_info->image[n],"label"); in MSLEndElement()
7439 if (msl_info->content == (char *) NULL) in MSLEndElement()
7441 StripString(msl_info->content); in MSLEndElement()
7442 (void) SetImageProperty(msl_info->image[n],"label", in MSLEndElement()
7443 msl_info->content,msl_info->exception); in MSLEndElement()
7464 if (msl_info->content != (char *) NULL) in MSLEndElement()
7465 msl_info->content=DestroyString(msl_info->content); in MSLEndElement()
7471 *msl_info; in MSLCharacters() local
7484 msl_info=(MSLInfo *) context; in MSLCharacters()
7485 if (msl_info->content != (char *) NULL) in MSLCharacters()
7486 msl_info->content=(char *) ResizeQuantumMemory(msl_info->content, in MSLCharacters()
7487 strlen(msl_info->content)+length+MagickPathExtent, in MSLCharacters()
7488 sizeof(*msl_info->content)); in MSLCharacters()
7491 msl_info->content=(char *) NULL; in MSLCharacters()
7493 msl_info->content=(char *) AcquireQuantumMemory(length+MagickPathExtent, in MSLCharacters()
7494 sizeof(*msl_info->content)); in MSLCharacters()
7495 if (msl_info->content != (char *) NULL) in MSLCharacters()
7496 *msl_info->content='\0'; in MSLCharacters()
7498 if (msl_info->content == (char *) NULL) in MSLCharacters()
7500 p=msl_info->content+strlen(msl_info->content); in MSLCharacters()
7509 *msl_info; in MSLReference() local
7519 msl_info=(MSLInfo *) context; in MSLReference()
7520 parser=msl_info->parser; in MSLReference()
7526 (void) xmlAddChild(parser->node,xmlNewCharRef(msl_info->document,name)); in MSLReference()
7528 (void) xmlAddChild(parser->node,xmlNewReference(msl_info->document,name)); in MSLReference()
7534 *msl_info; in MSLIgnorableWhitespace() local
7541 msl_info=(MSLInfo *) context; in MSLIgnorableWhitespace()
7542 (void) msl_info; in MSLIgnorableWhitespace()
7549 *msl_info; in MSLProcessingInstructions() local
7557 msl_info=(MSLInfo *) context; in MSLProcessingInstructions()
7558 (void) msl_info; in MSLProcessingInstructions()
7564 *msl_info; in MSLComment() local
7571 msl_info=(MSLInfo *) context; in MSLComment()
7572 (void) msl_info; in MSLComment()
7585 *msl_info; in MSLWarning() local
7597 msl_info=(MSLInfo *) context; in MSLWarning()
7598 (void) msl_info; in MSLWarning()
7619 *msl_info; in MSLError() local
7631 msl_info=(MSLInfo *) context; in MSLError()
7632 (void) msl_info; in MSLError()
7645 *msl_info; in MSLCDataBlock() local
7658 msl_info=(MSLInfo *) context; in MSLCDataBlock()
7659 (void) msl_info; in MSLCDataBlock()
7660 parser=msl_info->parser; in MSLCDataBlock()
7676 *msl_info; in MSLExternalSubset() local
7694 msl_info=(MSLInfo *) context; in MSLExternalSubset()
7695 (void) msl_info; in MSLExternalSubset()
7696 parser=msl_info->parser; in MSLExternalSubset()
7699 (msl_info->document == 0))) in MSLExternalSubset()
7704 (void) xmlNewDtd(msl_info->document,name,external_id,system_id); in MSLExternalSubset()
7759 msl_info; in ProcessMSLScript() local
7790 (void) memset(&msl_info,0,sizeof(msl_info)); in ProcessMSLScript()
7791 msl_info.exception=exception; in ProcessMSLScript()
7792 msl_info.image_info=(ImageInfo **) AcquireQuantumMemory(1, in ProcessMSLScript()
7793 sizeof(*msl_info.image_info)); in ProcessMSLScript()
7794 msl_info.draw_info=(DrawInfo **) AcquireQuantumMemory(1, in ProcessMSLScript()
7795 sizeof(*msl_info.draw_info)); in ProcessMSLScript()
7797 msl_info.image=(Image **) AcquireMagickMemory(sizeof(*msl_info.image)); in ProcessMSLScript()
7798 msl_info.attributes=(Image **) AcquireQuantumMemory(1, in ProcessMSLScript()
7799 sizeof(*msl_info.attributes)); in ProcessMSLScript()
7800 msl_info.group_info=(MSLGroupInfo *) AcquireQuantumMemory(1, in ProcessMSLScript()
7801 sizeof(*msl_info.group_info)); in ProcessMSLScript()
7802 if ((msl_info.image_info == (ImageInfo **) NULL) || in ProcessMSLScript()
7803 (msl_info.draw_info == (DrawInfo **) NULL) || in ProcessMSLScript()
7804 (msl_info.image == (Image **) NULL) || in ProcessMSLScript()
7805 (msl_info.attributes == (Image **) NULL) || in ProcessMSLScript()
7806 (msl_info.group_info == (MSLGroupInfo *) NULL)) in ProcessMSLScript()
7808 *msl_info.image_info=CloneImageInfo(image_info); in ProcessMSLScript()
7809 *msl_info.draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); in ProcessMSLScript()
7810 *msl_info.attributes=AcquireImage(image_info,exception); in ProcessMSLScript()
7811 (void) SetImageExtent(*msl_info.attributes,1,1,exception); in ProcessMSLScript()
7812 msl_info.group_info[0].numImages=0; in ProcessMSLScript()
7814 *msl_info.image=msl_image; in ProcessMSLScript()
7816 MSLPushImage(&msl_info,*image); in ProcessMSLScript()
7848 msl_info.parser=xmlCreatePushParserCtxt(sax_handler,&msl_info,(char *) NULL,0, in ProcessMSLScript()
7855 status=xmlParseChunk(msl_info.parser,message,(int) n,MagickFalse); in ProcessMSLScript()
7858 (void) xmlParseChunk(msl_info.parser," ",1,MagickFalse); in ProcessMSLScript()
7859 if (msl_info.exception->severity >= ErrorException) in ProcessMSLScript()
7862 if (msl_info.exception->severity == UndefinedException) in ProcessMSLScript()
7863 (void) xmlParseChunk(msl_info.parser," ",1,MagickTrue); in ProcessMSLScript()
7867 MSLEndDocument(&msl_info); in ProcessMSLScript()
7868 if (msl_info.parser->myDoc != (xmlDocPtr) NULL) in ProcessMSLScript()
7869 xmlFreeDoc(msl_info.parser->myDoc); in ProcessMSLScript()
7870 xmlFreeParserCtxt(msl_info.parser); in ProcessMSLScript()
7871 xmlFreeDoc(msl_info.document); in ProcessMSLScript()
7874 *image=CloneImage(*msl_info.image,0,0,MagickTrue,exception); in ProcessMSLScript()
7875 while (msl_info.n >= 0) in ProcessMSLScript()
7877 if (msl_info.image[msl_info.n] != (Image *) NULL) in ProcessMSLScript()
7878 msl_info.image[msl_info.n]=DestroyImage(msl_info.image[msl_info.n]); in ProcessMSLScript()
7879 msl_info.attributes[msl_info.n]=DestroyImage( in ProcessMSLScript()
7880 msl_info.attributes[msl_info.n]); in ProcessMSLScript()
7881 msl_info.draw_info[msl_info.n]=DestroyDrawInfo( in ProcessMSLScript()
7882 msl_info.draw_info[msl_info.n]); in ProcessMSLScript()
7883 msl_info.image_info[msl_info.n]=DestroyImageInfo( in ProcessMSLScript()
7884 msl_info.image_info[msl_info.n]); in ProcessMSLScript()
7885 msl_info.n--; in ProcessMSLScript()
7887 msl_info.draw_info=(DrawInfo **) RelinquishMagickMemory(msl_info.draw_info); in ProcessMSLScript()
7888 msl_info.image=(Image **) RelinquishMagickMemory(msl_info.image); in ProcessMSLScript()
7889 msl_info.attributes=(Image **) RelinquishMagickMemory(msl_info.attributes); in ProcessMSLScript()
7890 msl_info.image_info=(ImageInfo **) RelinquishMagickMemory( in ProcessMSLScript()
7891 msl_info.image_info); in ProcessMSLScript()
7892 msl_info.group_info=(MSLGroupInfo *) RelinquishMagickMemory( in ProcessMSLScript()
7893 msl_info.group_info); in ProcessMSLScript()
7894 if (msl_info.exception->severity != UndefinedException) in ProcessMSLScript()
7986 static MagickBooleanType SetMSLAttributes(MSLInfo *msl_info,const char *keyword, in SetMSLAttributes() argument
8013 assert(msl_info != (MSLInfo *) NULL); in SetMSLAttributes()
8018 exception=msl_info->exception; in SetMSLAttributes()
8019 n=msl_info->n; in SetMSLAttributes()
8020 attributes=msl_info->attributes[n]; in SetMSLAttributes()
8021 image_info=msl_info->image_info[n]; in SetMSLAttributes()
8022 draw_info=msl_info->draw_info[n]; in SetMSLAttributes()
8023 image=msl_info->image[n]; in SetMSLAttributes()