/external/ImageMagick/coders/ |
D | caption.c | 107 *draw_info; in ReadCAPTIONImage() local 155 draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); in ReadCAPTIONImage() 156 (void) CloneString(&draw_info->text,caption); in ReadCAPTIONImage() 159 draw_info->gravity=(GravityType) ParseCommandOption(MagickGravityOptions, in ReadCAPTIONImage() 165 i=FormatMagickCaption(image,draw_info,split,&metrics,&text, in ReadCAPTIONImage() 167 (void) CloneString(&draw_info->text,text); in ReadCAPTIONImage() 171 if (draw_info->gravity == UndefinedGravity) in ReadCAPTIONImage() 172 (void) CloneString(&draw_info->geometry,geometry); in ReadCAPTIONImage() 173 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception); in ReadCAPTIONImage() 174 width=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); in ReadCAPTIONImage() [all …]
|
D | label.c | 100 *draw_info; in ReadLABELImage() local 132 draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); in ReadLABELImage() 133 draw_info->text=ConstantString(label); in ReadLABELImage() 136 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception); in ReadLABELImage() 139 image->columns=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); in ReadLABELImage() 140 image->rows=(size_t) floor(metrics.height+draw_info->stroke_width+0.5); in ReadLABELImage() 154 for ( ; ; draw_info->pointsize*=2.0) in ReadLABELImage() 158 if (draw_info->gravity == UndefinedGravity) in ReadLABELImage() 159 (void) CloneString(&draw_info->geometry,geometry); in ReadLABELImage() 160 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception); in ReadLABELImage() [all …]
|
D | mvg.c | 132 *draw_info; in ReadMVGImage() local 185 draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); in ReadMVGImage() 186 draw_info->affine.sx=image->resolution.x == 0.0 ? 1.0 : image->resolution.x/ in ReadMVGImage() 188 draw_info->affine.sy=image->resolution.y == 0.0 ? 1.0 : image->resolution.y/ in ReadMVGImage() 190 image->columns=(size_t) (draw_info->affine.sx*image->columns); in ReadMVGImage() 191 image->rows=(size_t) (draw_info->affine.sy*image->rows); in ReadMVGImage() 204 draw_info->primitive=FileToString(image->filename,~0UL,exception); in ReadMVGImage() 207 draw_info->primitive=(char *) AcquireMagickMemory(GetBlobSize(image)+1); in ReadMVGImage() 208 if (draw_info->primitive != (char *) NULL) in ReadMVGImage() 210 CopyMagickMemory(draw_info->primitive,GetBlobStreamData(image), in ReadMVGImage() [all …]
|
D | ttf.c | 183 *draw_info; in ReadTTFImage() local 253 draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); in ReadTTFImage() 254 draw_info->font=AcquireString(image->filename); in ReadTTFImage() 255 ConcatenateString(&draw_info->primitive,"push graphic-context\n"); in ReadTTFImage() 258 ConcatenateString(&draw_info->primitive,buffer); in ReadTTFImage() 259 ConcatenateString(&draw_info->primitive," font-size 18\n"); in ReadTTFImage() 261 ConcatenateString(&draw_info->primitive,buffer); in ReadTTFImage() 263 ConcatenateString(&draw_info->primitive,text); in ReadTTFImage() 266 ConcatenateString(&draw_info->primitive,buffer); in ReadTTFImage() 271 ConcatenateString(&draw_info->primitive," font-size 18\n"); in ReadTTFImage() [all …]
|
D | pango.c | 121 *draw_info; in ReadPANGOImage() local 221 draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); in ReadPANGOImage() 222 pango_context_set_base_dir(context,draw_info->direction == in ReadPANGOImage() 224 switch (draw_info->gravity) in ReadPANGOImage() 307 switch (draw_info->align) in ReadPANGOImage() 314 if (draw_info->gravity == CenterGravity) in ReadPANGOImage() 324 (draw_info->direction == RightToLeftDirection)) in ReadPANGOImage() 327 if (draw_info->font == (char *) NULL) in ReadPANGOImage() 330 description=pango_font_description_from_string(draw_info->font); in ReadPANGOImage() 332 draw_info->pointsize+0.5)); in ReadPANGOImage() [all …]
|
D | msl.c | 136 **draw_info; member 561 msl_info->draw_info=(DrawInfo **) ResizeQuantumMemory(msl_info->draw_info, in MSLPushImage() 562 (n+1),sizeof(*msl_info->draw_info)); in MSLPushImage() 568 (msl_info->draw_info == (DrawInfo **) NULL) || in MSLPushImage() 573 msl_info->draw_info[n]=CloneDrawInfo(msl_info->image_info[n-1], in MSLPushImage() 574 msl_info->draw_info[n-1]); in MSLPushImage() 627 *draw_info; in MSLStartElement() local 772 draw_info=CloneDrawInfo(msl_info->image_info[n], in MSLStartElement() 773 msl_info->draw_info[n]); in MSLStartElement() 775 current=draw_info->affine; in MSLStartElement() [all …]
|
D | wmf.c | 352 *draw_info; member 800 ddata->draw_wand = AcquireDrawingWand(ddata->draw_info,ddata->image); in ipa_device_open() 816 if (ddata->draw_info != (DrawInfo *) NULL) in ipa_device_close() 818 DestroyDrawInfo(ddata->draw_info); in ipa_device_close() 819 ddata->draw_info=(DrawInfo *)NULL; in ipa_device_close() 1527 *draw_info; in ipa_draw_text() local 1529 draw_info=ddata->draw_info; in ipa_draw_text() 1530 draw_info->font=WMF_FONT_PSNAME(font); in ipa_draw_text() 1531 draw_info->pointsize = pointsize; in ipa_draw_text() 1532 draw_info->text=draw_text->str; in ipa_draw_text() [all …]
|
D | txt.c | 169 *draw_info; in ReadTEXTImage() local 263 draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); in ReadTEXTImage() 264 (void) CloneString(&draw_info->text,image_info->filename); in ReadTEXTImage() 267 (void) CloneString(&draw_info->geometry,geometry); in ReadTEXTImage() 268 status=GetTypeMetrics(image,draw_info,&metrics,exception); in ReadTEXTImage() 274 (void) CloneString(&draw_info->geometry,geometry); in ReadTEXTImage() 276 if (*draw_info->text != '\0') in ReadTEXTImage() 277 *draw_info->text='\0'; in ReadTEXTImage() 284 (void) ConcatenateString(&draw_info->text,text); in ReadTEXTImage() 285 (void) ConcatenateString(&draw_info->text,"\n"); in ReadTEXTImage() [all …]
|
/external/ImageMagick/MagickCore/ |
D | annotate.c | 272 const DrawInfo *draw_info,ExceptionInfo *exception) in AnnotateImage() argument 311 assert(draw_info != (DrawInfo *) NULL); in AnnotateImage() 312 assert(draw_info->signature == MagickCoreSignature); in AnnotateImage() 313 if (draw_info->text == (char *) NULL) in AnnotateImage() 315 if (*draw_info->text == '\0') in AnnotateImage() 317 textlist=StringToList(draw_info->text); in AnnotateImage() 325 annotate=CloneDrawInfo((ImageInfo *) NULL,draw_info); in AnnotateImage() 326 annotate_info=CloneDrawInfo((ImageInfo *) NULL,draw_info); in AnnotateImage() 350 draw_info->interline_spacing+0.5); in AnnotateImage() 495 if (draw_info->undercolor.alpha != TransparentAlpha) in AnnotateImage() [all …]
|
D | draw.c | 207 *draw_info; in AcquireDrawInfo() local 209 draw_info=(DrawInfo *) AcquireMagickMemory(sizeof(*draw_info)); in AcquireDrawInfo() 210 if (draw_info == (DrawInfo *) NULL) in AcquireDrawInfo() 212 GetDrawInfo((ImageInfo *) NULL,draw_info); in AcquireDrawInfo() 213 return(draw_info); in AcquireDrawInfo() 244 const DrawInfo *draw_info) in CloneDrawInfo() argument 256 if (draw_info == (DrawInfo *) NULL) in CloneDrawInfo() 260 (void) CloneString(&clone_info->primitive,draw_info->primitive); in CloneDrawInfo() 261 if (draw_info->geometry != (char *) NULL) in CloneDrawInfo() 262 (void) CloneString(&clone_info->geometry,draw_info->geometry); in CloneDrawInfo() [all …]
|
D | draw-private.h | 29 static inline void GetFillColor(const DrawInfo *draw_info,const ssize_t x, in GetFillColor() argument 32 if (draw_info->fill_pattern == (Image *) NULL) in GetFillColor() 34 *fill=draw_info->fill; in GetFillColor() 41 pattern=draw_info->fill_pattern; in GetFillColor() 47 static inline void GetStrokeColor(const DrawInfo *draw_info,const ssize_t x, in GetStrokeColor() argument 50 if (draw_info->stroke_pattern == (Image *) NULL) in GetStrokeColor() 52 *stroke=draw_info->stroke; in GetStrokeColor() 59 pattern=draw_info->stroke_pattern; in GetStrokeColor()
|
D | montage.c | 336 *draw_info; in MontageImageList() local 526 draw_info=CloneDrawInfo(clone_info,(DrawInfo *) NULL); in MontageImageList() 528 (void) CloneString(&draw_info->font,montage_info->font); in MontageImageList() 530 draw_info->pointsize=montage_info->pointsize; in MontageImageList() 531 draw_info->gravity=CenterGravity; in MontageImageList() 532 draw_info->stroke=montage_info->stroke; in MontageImageList() 533 draw_info->fill=montage_info->fill; in MontageImageList() 534 draw_info->text=AcquireString(""); in MontageImageList() 535 (void) GetTypeMetrics(image_list[0],draw_info,&metrics,exception); in MontageImageList() 681 clone_info=CloneDrawInfo(image_info,draw_info); in MontageImageList() [all …]
|
D | xwindow.c | 2287 const XPixelInfo *pixel,XDrawInfo *draw_info,Image *image, in XDrawImage() argument 2328 assert(draw_info != (XDrawInfo *) NULL); in XDrawImage() 2337 draw_pixmap=XCreatePixmap(display,root_window,draw_info->width, in XDrawImage() 2338 draw_info->height,depth); in XDrawImage() 2346 context_values.line_width=(int) draw_info->line_width; in XDrawImage() 2354 (void) XFillRectangle(display,draw_pixmap,draw_context,0,0,draw_info->width, in XDrawImage() 2355 draw_info->height); in XDrawImage() 2361 if (draw_info->stipple != (Pixmap) NULL) in XDrawImage() 2364 (void) XSetStipple(display,draw_context,draw_info->stipple); in XDrawImage() 2366 switch (draw_info->element) in XDrawImage() [all …]
|
D | paint.c | 113 const DrawInfo *draw_info,const PixelInfo *target,const ssize_t x_offset, in FloodfillPaintImage() argument 173 assert(draw_info != (DrawInfo *) NULL); in FloodfillPaintImage() 174 assert(draw_info->signature == MagickCoreSignature); in FloodfillPaintImage() 184 (draw_info->fill.alpha_trait != UndefinedPixelTrait)) in FloodfillPaintImage() 354 GetFillColor(draw_info,x,y,&fill_color,exception); in FloodfillPaintImage() 416 *draw_info; in GradientImage() local 433 draw_info=AcquireDrawInfo(); in GradientImage() 434 gradient=(&draw_info->gradient); in GradientImage() 614 status=DrawGradientImage(image,draw_info,exception); in GradientImage() 615 draw_info=DestroyDrawInfo(draw_info); in GradientImage()
|
D | display.c | 3804 *draw_info; in XColorEditImage() local 3824 draw_info=CloneDrawInfo(resource_info->image_info, in XColorEditImage() 3827 AllCompliance,&draw_info->fill,exception); in XColorEditImage() 3828 (void) FloodfillPaintImage(*image,draw_info,&target, in XColorEditImage() 3831 draw_info=DestroyDrawInfo(draw_info); in XColorEditImage() 5485 draw_info; in XDrawEditImage() local 5521 draw_info.stencil=OpaqueStencil; in XDrawEditImage() 5614 draw_info.stencil=TransparentStencil; in XDrawEditImage() 5639 draw_info.stencil=OpaqueStencil; in XDrawEditImage() 6251 draw_info.x=(int) rectangle_info.x; in XDrawEditImage() [all …]
|
D | feature.c | 1769 *draw_info; in RenderHoughLines() local 1789 draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); in RenderHoughLines() 1790 draw_info->affine.sx=image->resolution.x == 0.0 ? 1.0 : image->resolution.x/ in RenderHoughLines() 1792 draw_info->affine.sy=image->resolution.y == 0.0 ? 1.0 : image->resolution.y/ in RenderHoughLines() 1794 image->columns=(size_t) (draw_info->affine.sx*image->columns); in RenderHoughLines() 1795 image->rows=(size_t) (draw_info->affine.sy*image->rows); in RenderHoughLines() 1808 draw_info->primitive=FileToString(image->filename,~0UL,exception); in RenderHoughLines() 1811 draw_info->primitive=(char *) AcquireMagickMemory((size_t) in RenderHoughLines() 1813 if (draw_info->primitive != (char *) NULL) in RenderHoughLines() 1815 (void) CopyMagickMemory(draw_info->primitive,GetBlobStreamData(image), in RenderHoughLines() [all …]
|
/external/ImageMagick/MagickWand/ |
D | magick-wand.c | 519 *draw_info; in MagickQueryFontMetrics() local 541 draw_info=PeekDrawingWand(drawing_wand); in MagickQueryFontMetrics() 542 if (draw_info == (DrawInfo *) NULL) in MagickQueryFontMetrics() 547 (void) CloneString(&draw_info->text,text); in MagickQueryFontMetrics() 549 status=GetTypeMetrics(wand->images,draw_info,&metrics,wand->exception); in MagickQueryFontMetrics() 550 draw_info=DestroyDrawInfo(draw_info); in MagickQueryFontMetrics() 626 *draw_info; in MagickQueryMultilineFontMetrics() local 648 draw_info=PeekDrawingWand(drawing_wand); in MagickQueryMultilineFontMetrics() 649 if (draw_info == (DrawInfo *) NULL) in MagickQueryMultilineFontMetrics() 654 (void) CloneString(&draw_info->text,text); in MagickQueryMultilineFontMetrics() [all …]
|
D | wandcli.c | 113 cli_wand->draw_info=CloneDrawInfo(cli_wand->wand.image_info,(DrawInfo *) NULL); in AcquireMagickCLI() 167 if (cli_wand->draw_info != (DrawInfo *) NULL ) in DestroyMagickCLI() 168 cli_wand->draw_info=DestroyDrawInfo(cli_wand->draw_info); in DestroyMagickCLI()
|
D | mogrify.c | 688 *draw_info; in MogrifyImage() local 733 draw_info=CloneDrawInfo(mogrify_info,(DrawInfo *) NULL); in MogrifyImage() 812 GetAffineMatrix(&draw_info->affine); in MogrifyImage() 815 (void) ParseAffineGeometry(argv[i+1],&draw_info->affine,exception); in MogrifyImage() 847 (void) CloneString(&draw_info->text,text); in MogrifyImage() 851 (void) CloneString(&draw_info->geometry,geometry_str); in MogrifyImage() 852 draw_info->affine.sx=cos(DegreesToRadians( in MogrifyImage() 854 draw_info->affine.rx=sin(DegreesToRadians( in MogrifyImage() 856 draw_info->affine.ry=(-sin(DegreesToRadians( in MogrifyImage() 858 draw_info->affine.sy=cos(DegreesToRadians( in MogrifyImage() [all …]
|
D | magick-image.c | 536 *draw_info; in MagickAffineTransformImage() local 547 draw_info=PeekDrawingWand(drawing_wand); in MagickAffineTransformImage() 548 if (draw_info == (DrawInfo *) NULL) in MagickAffineTransformImage() 550 affine_image=AffineTransformImage(wand->images,&draw_info->affine, in MagickAffineTransformImage() 552 draw_info=DestroyDrawInfo(draw_info); in MagickAffineTransformImage() 601 *draw_info; in MagickAnnotateImage() local 612 draw_info=PeekDrawingWand(drawing_wand); in MagickAnnotateImage() 613 if (draw_info == (DrawInfo *) NULL) in MagickAnnotateImage() 615 (void) CloneString(&draw_info->text,text); in MagickAnnotateImage() 617 draw_info->affine.sx=cos((double) DegreesToRadians(fmod(angle,360.0))); in MagickAnnotateImage() [all …]
|
D | wandcli-private.h | 110 *draw_info; /* for CLI API usage, not used by MagickWand API */ member
|
/external/ImageMagick/PerlMagick/ |
D | Magick.xs | 8316 *draw_info; in Mogrify() local 8318 draw_info=CloneDrawInfo(info ? info->image_info : (ImageInfo *) NULL, in Mogrify() 8328 (void) CloneString(&draw_info->text,text); in Mogrify() 8332 (void) CloneString(&draw_info->font, in Mogrify() 8335 draw_info->pointsize=argument_list[2].real_reference; in Mogrify() 8337 (void) CloneString(&draw_info->density, in Mogrify() 8341 AllCompliance,&draw_info->undercolor,exception); in Mogrify() 8345 AllCompliance,&draw_info->stroke,exception); in Mogrify() 8347 draw_info->stroke_pattern=CloneImage( in Mogrify() 8353 AllCompliance,&draw_info->fill,exception); in Mogrify() [all …]
|
/external/ImageMagick/PerlMagick/quantum/ |
D | quantum.xs.in | 8316 *draw_info; local 8318 draw_info=CloneDrawInfo(info ? info->image_info : (ImageInfo *) NULL, 8328 (void) CloneString(&draw_info->text,text); 8332 (void) CloneString(&draw_info->font, 8335 draw_info->pointsize=argument_list[2].real_reference; 8337 (void) CloneString(&draw_info->density, 8341 AllCompliance,&draw_info->undercolor,exception); 8345 AllCompliance,&draw_info->stroke,exception); 8347 draw_info->stroke_pattern=CloneImage( 8353 AllCompliance,&draw_info->fill,exception); [all …]
|
/external/mesa3d/src/gallium/drivers/ilo/ |
D | ilo_blitter_rectlist.c | 48 blitter->draw_info.topology = GEN6_3DPRIM_RECTLIST; in ilo_blitter_set_invariants() 49 blitter->draw_info.vertex_count = 3; in ilo_blitter_set_invariants() 50 blitter->draw_info.instance_count = 1; in ilo_blitter_set_invariants()
|
D | ilo_render_gen8.c | 223 gen8_3DSTATE_VF_TOPOLOGY(r->builder, vec->draw_info.topology); in gen8_draw_vf() 272 ilo_render_3dprimitive(render, &vec->draw_info); in ilo_render_emit_draw_commands_gen8()
|