Lines Matching refs:mvg_info
2263 static MagickBooleanType CheckPrimitiveExtent(MVGInfo *mvg_info, in CheckPrimitiveExtent() argument
2275 quantum=sizeof(**mvg_info->primitive_info); in CheckPrimitiveExtent()
2276 extent=(double) mvg_info->offset+pad+(PrimitiveExtentPad+1)*quantum; in CheckPrimitiveExtent()
2277 if (extent <= (double) *mvg_info->extent) in CheckPrimitiveExtent()
2281 *mvg_info->primitive_info=(PrimitiveInfo *) ResizeQuantumMemory( in CheckPrimitiveExtent()
2282 *mvg_info->primitive_info,(size_t) (extent+1),quantum); in CheckPrimitiveExtent()
2283 if (*mvg_info->primitive_info != (PrimitiveInfo *) NULL) in CheckPrimitiveExtent()
2288 *mvg_info->extent=(size_t) extent; in CheckPrimitiveExtent()
2289 for (i=mvg_info->offset+1; i <= (ssize_t) extent; i++) in CheckPrimitiveExtent()
2290 (*mvg_info->primitive_info)[i].primitive=UndefinedPrimitive; in CheckPrimitiveExtent()
2297 (void) ThrowMagickException(mvg_info->exception,GetMagickModule(), in CheckPrimitiveExtent()
2299 if (*mvg_info->primitive_info != (PrimitiveInfo *) NULL) in CheckPrimitiveExtent()
2300 *mvg_info->primitive_info=(PrimitiveInfo *) RelinquishMagickMemory( in CheckPrimitiveExtent()
2301 *mvg_info->primitive_info); in CheckPrimitiveExtent()
2302 *mvg_info->primitive_info=(PrimitiveInfo *) AcquireCriticalMemory((size_t) ( in CheckPrimitiveExtent()
2304 (void) memset(*mvg_info->primitive_info,0,(size_t) ((PrimitiveExtentPad+1)* in CheckPrimitiveExtent()
2306 *mvg_info->extent=1; in CheckPrimitiveExtent()
2307 mvg_info->offset=0; in CheckPrimitiveExtent()
2487 mvg_info; in RenderMVGContent() local
2589 (void) memset(&mvg_info,0,sizeof(mvg_info)); in RenderMVGContent()
2590 mvg_info.primitive_info=(&primitive_info); in RenderMVGContent()
2591 mvg_info.extent=(&number_points); in RenderMVGContent()
2592 mvg_info.exception=exception; in RenderMVGContent()
3985 mvg_info.offset=i; in RenderMVGContent()
4018 mvg_info.offset=i; in RenderMVGContent()
4021 status&=CheckPrimitiveExtent(&mvg_info,(double) number_points); in RenderMVGContent()
4129 mvg_info.offset=i; in RenderMVGContent()
4130 status&=CheckPrimitiveExtent(&mvg_info,(double) number_points); in RenderMVGContent()
4132 status&=CheckPrimitiveExtent(&mvg_info,PrimitiveExtentPad); in RenderMVGContent()
4135 mvg_info.offset=j; in RenderMVGContent()
4207 status&=TraceRoundRectangle(&mvg_info,primitive_info[j].point, in RenderMVGContent()
4219 status&=TraceArc(&mvg_info,primitive_info[j].point, in RenderMVGContent()
4237 status&=TraceEllipse(&mvg_info,primitive_info[j].point, in RenderMVGContent()
4249 status&=TraceCircle(&mvg_info,primitive_info[j].point, in RenderMVGContent()
4284 status&=TraceBezier(&mvg_info,primitive_info[j].coordinates); in RenderMVGContent()
4290 coordinates=(double) TracePath(&mvg_info,token,exception); in RenderMVGContent()
4337 if ((fabs(mvg_info.point.x-primitive_info->point.x) < MagickEpsilon) && in RenderMVGContent()
4338 (fabs(mvg_info.point.y-primitive_info->point.y) < MagickEpsilon)) in RenderMVGContent()
4340 mvg_info.point=primitive_info->point; in RenderMVGContent()
4345 mvg_info.point=primitive_info->point; in RenderMVGContent()
4371 mvg_info.offset=i; in RenderMVGContent()
4381 status&=CheckPrimitiveExtent(&mvg_info,ExpandAffine( in RenderMVGContent()
4385 status&=CheckPrimitiveExtent(&mvg_info,(double) in RenderMVGContent()
6069 static MagickBooleanType TraceArc(MVGInfo *mvg_info,const PointInfo start, in TraceArc() argument
6080 return(TraceEllipse(mvg_info,center,radius,degrees)); in TraceArc()
6083 static MagickBooleanType TraceArcPath(MVGInfo *mvg_info,const PointInfo start, in TraceArcPath() argument
6122 offset=mvg_info->offset; in TraceArcPath()
6123 primitive_info=(*mvg_info->primitive_info)+mvg_info->offset; in TraceArcPath()
6211 status&=TraceBezier(mvg_info,4); in TraceArcPath()
6214 p=(*mvg_info->primitive_info)+mvg_info->offset; in TraceArcPath()
6215 mvg_info->offset+=p->coordinates; in TraceArcPath()
6220 mvg_info->offset=offset; in TraceArcPath()
6221 primitive_info=(*mvg_info->primitive_info)+mvg_info->offset; in TraceArcPath()
6232 static MagickBooleanType TraceBezier(MVGInfo *mvg_info, in TraceBezier() argument
6262 primitive_info=(*mvg_info->primitive_info)+mvg_info->offset; in TraceBezier()
6271 (void) ThrowMagickException(mvg_info->exception,GetMagickModule(), in TraceBezier()
6280 (void) ThrowMagickException(mvg_info->exception,GetMagickModule(), in TraceBezier()
6288 primitive_info=(*mvg_info->primitive_info)+mvg_info->offset; in TraceBezier()
6300 (void) ThrowMagickException(mvg_info->exception,GetMagickModule(), in TraceBezier()
6305 if (CheckPrimitiveExtent(mvg_info,(double) control_points+1) == MagickFalse) in TraceBezier()
6311 primitive_info=(*mvg_info->primitive_info)+mvg_info->offset; in TraceBezier()
6368 static MagickBooleanType TraceCircle(MVGInfo *mvg_info,const PointInfo start, in TraceCircle() argument
6387 return(TraceEllipse(mvg_info,start,offset,degrees)); in TraceCircle()
6390 static MagickBooleanType TraceEllipse(MVGInfo *mvg_info,const PointInfo center, in TraceEllipse() argument
6416 primitive_info=(*mvg_info->primitive_info)+mvg_info->offset; in TraceEllipse()
6430 if (CheckPrimitiveExtent(mvg_info,coordinates) == MagickFalse) in TraceEllipse()
6432 primitive_info=(*mvg_info->primitive_info)+mvg_info->offset; in TraceEllipse()
6482 static ssize_t TracePath(MVGInfo *mvg_info,const char *path, in TracePath() argument
6528 subpath_offset=mvg_info->offset; in TracePath()
6529 primitive_info=(*mvg_info->primitive_info)+mvg_info->offset; in TracePath()
6608 if (TraceArcPath(mvg_info,point,end,arc,angle,large_arc,sweep) == MagickFalse) in TracePath()
6610 q=(*mvg_info->primitive_info)+mvg_info->offset; in TracePath()
6611 mvg_info->offset+=q->coordinates; in TracePath()
6650 if (TraceBezier(mvg_info,4) == MagickFalse) in TracePath()
6652 q=(*mvg_info->primitive_info)+mvg_info->offset; in TracePath()
6653 mvg_info->offset+=q->coordinates; in TracePath()
6675 if (CheckPrimitiveExtent(mvg_info,PrimitiveExtentPad) == MagickFalse) in TracePath()
6677 q=(*mvg_info->primitive_info)+mvg_info->offset; in TracePath()
6680 mvg_info->offset+=q->coordinates; in TracePath()
6711 if (CheckPrimitiveExtent(mvg_info,PrimitiveExtentPad) == MagickFalse) in TracePath()
6713 q=(*mvg_info->primitive_info)+mvg_info->offset; in TracePath()
6716 mvg_info->offset+=q->coordinates; in TracePath()
6731 if (mvg_info->offset != subpath_offset) in TracePath()
6733 primitive_info=(*mvg_info->primitive_info)+subpath_offset; in TracePath()
6737 subpath_offset=mvg_info->offset; in TracePath()
6759 if (CheckPrimitiveExtent(mvg_info,PrimitiveExtentPad) == MagickFalse) in TracePath()
6761 q=(*mvg_info->primitive_info)+mvg_info->offset; in TracePath()
6764 mvg_info->offset+=q->coordinates; in TracePath()
6804 if (TraceBezier(mvg_info,3) == MagickFalse) in TracePath()
6806 q=(*mvg_info->primitive_info)+mvg_info->offset; in TracePath()
6807 mvg_info->offset+=q->coordinates; in TracePath()
6855 if (TraceBezier(mvg_info,4) == MagickFalse) in TracePath()
6857 q=(*mvg_info->primitive_info)+mvg_info->offset; in TracePath()
6858 mvg_info->offset+=q->coordinates; in TracePath()
6907 if (TraceBezier(mvg_info,3) == MagickFalse) in TracePath()
6909 q=(*mvg_info->primitive_info)+mvg_info->offset; in TracePath()
6910 mvg_info->offset+=q->coordinates; in TracePath()
6936 if (CheckPrimitiveExtent(mvg_info,PrimitiveExtentPad) == MagickFalse) in TracePath()
6938 q=(*mvg_info->primitive_info)+mvg_info->offset; in TracePath()
6941 mvg_info->offset+=q->coordinates; in TracePath()
6957 if (CheckPrimitiveExtent(mvg_info,PrimitiveExtentPad) == MagickFalse) in TracePath()
6959 q=(*mvg_info->primitive_info)+mvg_info->offset; in TracePath()
6962 mvg_info->offset+=q->coordinates; in TracePath()
6964 primitive_info=(*mvg_info->primitive_info)+subpath_offset; in TracePath()
6969 subpath_offset=mvg_info->offset; in TracePath()
6982 primitive_info=(*mvg_info->primitive_info)+subpath_offset; in TracePath()
7038 static MagickBooleanType TraceRoundRectangle(MVGInfo *mvg_info, in TraceRoundRectangle() argument
7058 offset=mvg_info->offset; in TraceRoundRectangle()
7063 (*mvg_info->primitive_info+mvg_info->offset)->coordinates=0; in TraceRoundRectangle()
7074 if (TraceEllipse(mvg_info,point,arc,degrees) == MagickFalse) in TraceRoundRectangle()
7076 p=(*mvg_info->primitive_info)+mvg_info->offset; in TraceRoundRectangle()
7077 mvg_info->offset+=p->coordinates; in TraceRoundRectangle()
7082 if (TraceEllipse(mvg_info,point,arc,degrees) == MagickFalse) in TraceRoundRectangle()
7084 p=(*mvg_info->primitive_info)+mvg_info->offset; in TraceRoundRectangle()
7085 mvg_info->offset+=p->coordinates; in TraceRoundRectangle()
7090 if (TraceEllipse(mvg_info,point,arc,degrees) == MagickFalse) in TraceRoundRectangle()
7092 p=(*mvg_info->primitive_info)+mvg_info->offset; in TraceRoundRectangle()
7093 mvg_info->offset+=p->coordinates; in TraceRoundRectangle()
7098 if (TraceEllipse(mvg_info,point,arc,degrees) == MagickFalse) in TraceRoundRectangle()
7100 p=(*mvg_info->primitive_info)+mvg_info->offset; in TraceRoundRectangle()
7101 mvg_info->offset+=p->coordinates; in TraceRoundRectangle()
7102 if (CheckPrimitiveExtent(mvg_info,PrimitiveExtentPad) == MagickFalse) in TraceRoundRectangle()
7104 p=(*mvg_info->primitive_info)+mvg_info->offset; in TraceRoundRectangle()
7105 if (TracePoint(p,(*mvg_info->primitive_info+offset)->point) == MagickFalse) in TraceRoundRectangle()
7108 mvg_info->offset=offset; in TraceRoundRectangle()
7109 primitive_info=(*mvg_info->primitive_info)+offset; in TraceRoundRectangle()