Home
last modified time | relevance | path

Searched refs:bbox (Results 1 – 25 of 92) sorted by relevance

1234

/external/pdfium/third_party/freetype/src/base/
Dftbbox.c40 FT_BBox bbox; member
45 #define FT_UPDATE_BBOX( p, bbox ) \ argument
47 if ( p->x < bbox.xMin ) \
48 bbox.xMin = p->x; \
49 if ( p->x > bbox.xMax ) \
50 bbox.xMax = p->x; \
51 if ( p->y < bbox.yMin ) \
52 bbox.yMin = p->y; \
53 if ( p->y > bbox.yMax ) \
54 bbox.yMax = p->y; \
[all …]
/external/freetype/src/base/
Dftbbox.c40 FT_BBox bbox; member
45 #define FT_UPDATE_BBOX( p, bbox ) \ argument
47 if ( p->x < bbox.xMin ) \
48 bbox.xMin = p->x; \
49 if ( p->x > bbox.xMax ) \
50 bbox.xMax = p->x; \
51 if ( p->y < bbox.yMin ) \
52 bbox.yMin = p->y; \
53 if ( p->y > bbox.yMax ) \
54 bbox.yMax = p->y; \
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dgen6_scissor_state.c62 int bbox[4]; in gen6_upload_scissor_state() local
64 bbox[0] = MAX2(ctx->ViewportArray[i].X, 0); in gen6_upload_scissor_state()
65 bbox[1] = MIN2(bbox[0] + ctx->ViewportArray[i].Width, fb_width); in gen6_upload_scissor_state()
66 bbox[2] = MAX2(ctx->ViewportArray[i].Y, 0); in gen6_upload_scissor_state()
67 bbox[3] = MIN2(bbox[2] + ctx->ViewportArray[i].Height, fb_height); in gen6_upload_scissor_state()
68 _mesa_intersect_scissor_bounding_box(ctx, i, bbox); in gen6_upload_scissor_state()
70 if (bbox[0] == bbox[1] || bbox[2] == bbox[3]) { in gen6_upload_scissor_state()
83 scissor[i].xmin = bbox[0]; in gen6_upload_scissor_state()
84 scissor[i].xmax = bbox[1] - 1; in gen6_upload_scissor_state()
85 scissor[i].ymin = bbox[2]; in gen6_upload_scissor_state()
[all …]
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dbinner.cpp84 …IntVertical(const simdvector * const tri, simdscalari(&vX)[3], simdscalari(&vY)[3], simdBBox &bbox) in calcBoundingBoxIntVertical() argument
102 bbox.xmin = vMinX; in calcBoundingBoxIntVertical()
103 bbox.xmax = vMaxX; in calcBoundingBoxIntVertical()
104 bbox.ymin = vMinY; in calcBoundingBoxIntVertical()
105 bbox.ymax = vMaxY; in calcBoundingBoxIntVertical()
112 …ativeRastT>(const simdvector * const tri, simdscalari(&vX)[3], simdscalari(&vY)[3], simdBBox &bbox) in calcBoundingBoxIntVertical() argument
135 bbox.xmin = _simd_sub_epi32(vMinX, _simd_set1_epi32(CT::BoundingBoxOffsetT::value)); in calcBoundingBoxIntVertical()
136 bbox.xmax = _simd_add_epi32(vMaxX, _simd_set1_epi32(CT::BoundingBoxOffsetT::value)); in calcBoundingBoxIntVertical()
137 bbox.ymin = _simd_sub_epi32(vMinY, _simd_set1_epi32(CT::BoundingBoxOffsetT::value)); in calcBoundingBoxIntVertical()
138 bbox.ymax = _simd_add_epi32(vMaxY, _simd_set1_epi32(CT::BoundingBoxOffsetT::value)); in calcBoundingBoxIntVertical()
[all …]
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup_point.c346 struct u_rect bbox; in try_setup_point() local
380 bbox.x0 = (x0 + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_point()
381 bbox.x1 = (x0 + fixed_width + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_point()
382 bbox.y0 = (y0 + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_point()
383 bbox.y1 = (y0 + fixed_width + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_point()
387 bbox.x1--; in try_setup_point()
388 bbox.y1--; in try_setup_point()
413 bbox.x0 = x0 >> FIXED_ORDER; in try_setup_point()
414 bbox.y0 = y0 >> FIXED_ORDER; in try_setup_point()
415 bbox.x1 = bbox.x0; in try_setup_point()
[all …]
Dlp_setup_tri.c279 struct u_rect bbox; in do_triangle_ccw() local
317 bbox.x0 = MIN3(position->x[0], position->x[1], position->x[2]) >> FIXED_ORDER; in do_triangle_ccw()
318 bbox.x1 = (MAX3(position->x[0], position->x[1], position->x[2]) - 1) >> FIXED_ORDER; in do_triangle_ccw()
321 bbox.y0 = (MIN3(position->y[0], position->y[1], position->y[2]) + adj) >> FIXED_ORDER; in do_triangle_ccw()
322 bbox.y1 = (MAX3(position->y[0], position->y[1], position->y[2]) - 1 + adj) >> FIXED_ORDER; in do_triangle_ccw()
325 if (bbox.x1 < bbox.x0 || in do_triangle_ccw()
326 bbox.y1 < bbox.y0) { in do_triangle_ccw()
332 if (!u_rect_test_intersection(&setup->draw_regions[viewport_index], &bbox)) { in do_triangle_ccw()
342 bbox.x0 = MAX2(bbox.x0, 0); in do_triangle_ccw()
343 bbox.y0 = MAX2(bbox.y0, 0); in do_triangle_ccw()
[all …]
Dlp_setup_context.h172 scissor_planes_needed(boolean scis_planes[4], const struct u_rect *bbox, in scissor_planes_needed() argument
176 scis_planes[0] = (bbox->x0 < scissor->x0); in scissor_planes_needed()
178 scis_planes[1] = (bbox->x1 > scissor->x1); in scissor_planes_needed()
180 scis_planes[2] = (bbox->y0 < scissor->y0); in scissor_planes_needed()
182 scis_planes[3] = (bbox->y1 > scissor->y1); in scissor_planes_needed()
220 const struct u_rect *bbox,
Dlp_setup_line.c291 struct u_rect bbox; in try_setup_line() local
558 bbox.x0 = (MIN4(x[0], x[1], x[2], x[3]) + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_line()
559 bbox.x1 = (MAX4(x[0], x[1], x[2], x[3]) + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_line()
560 bbox.y0 = (MIN4(y[0], y[1], y[2], y[3]) + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_line()
561 bbox.y1 = (MAX4(y[0], y[1], y[2], y[3]) + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_line()
565 bbox.x1--; in try_setup_line()
566 bbox.y1--; in try_setup_line()
569 if (bbox.x1 < bbox.x0 || in try_setup_line()
570 bbox.y1 < bbox.y0) { in try_setup_line()
576 if (!u_rect_test_intersection(&setup->draw_regions[viewport_index], &bbox)) { in try_setup_line()
[all …]
/external/mesa3d/src/mesa/main/
Dframebuffer.c370 unsigned idx, int *bbox) in _mesa_intersect_scissor_bounding_box() argument
373 if (ctx->Scissor.ScissorArray[idx].X > bbox[0]) { in _mesa_intersect_scissor_bounding_box()
374 bbox[0] = ctx->Scissor.ScissorArray[idx].X; in _mesa_intersect_scissor_bounding_box()
376 if (ctx->Scissor.ScissorArray[idx].Y > bbox[2]) { in _mesa_intersect_scissor_bounding_box()
377 bbox[2] = ctx->Scissor.ScissorArray[idx].Y; in _mesa_intersect_scissor_bounding_box()
379 if (ctx->Scissor.ScissorArray[idx].X + ctx->Scissor.ScissorArray[idx].Width < bbox[1]) { in _mesa_intersect_scissor_bounding_box()
380 bbox[1] = ctx->Scissor.ScissorArray[idx].X + ctx->Scissor.ScissorArray[idx].Width; in _mesa_intersect_scissor_bounding_box()
382 if (ctx->Scissor.ScissorArray[idx].Y + ctx->Scissor.ScissorArray[idx].Height < bbox[3]) { in _mesa_intersect_scissor_bounding_box()
383 bbox[3] = ctx->Scissor.ScissorArray[idx].Y + ctx->Scissor.ScissorArray[idx].Height; in _mesa_intersect_scissor_bounding_box()
386 if (bbox[0] > bbox[1]) { in _mesa_intersect_scissor_bounding_box()
[all …]
/external/pdfium/core/fxge/ge/
Dcfx_font.cpp385 bool CFX_Font::GetGlyphBBox(uint32_t glyph_index, FX_RECT& bbox) { in GetGlyphBBox() argument
406 bbox.left = cbox.xMin; in GetGlyphBBox()
407 bbox.right = cbox.xMax; in GetGlyphBBox()
408 bbox.top = cbox.yMax; in GetGlyphBBox()
409 bbox.bottom = cbox.yMin; in GetGlyphBBox()
411 bbox.left = cbox.xMin * 1000 / pixel_size_x; in GetGlyphBBox()
412 bbox.right = cbox.xMax * 1000 / pixel_size_x; in GetGlyphBBox()
413 bbox.top = cbox.yMax * 1000 / pixel_size_y; in GetGlyphBBox()
414 bbox.bottom = cbox.yMin * 1000 / pixel_size_y; in GetGlyphBBox()
416 if (bbox.top > FXFT_Get_Face_Ascender(m_Face)) in GetGlyphBBox()
[all …]
/external/freetype/src/autofit/
Dafloader.c467 FT_BBox bbox; in af_loader_load_glyph() local
488 FT_Outline_Get_CBox( &gloader->base.outline, &bbox ); in af_loader_load_glyph()
490 bbox.xMin = FT_PIX_FLOOR( bbox.xMin ); in af_loader_load_glyph()
491 bbox.yMin = FT_PIX_FLOOR( bbox.yMin ); in af_loader_load_glyph()
492 bbox.xMax = FT_PIX_CEIL( bbox.xMax ); in af_loader_load_glyph()
493 bbox.yMax = FT_PIX_CEIL( bbox.yMax ); in af_loader_load_glyph()
495 slot->metrics.width = bbox.xMax - bbox.xMin; in af_loader_load_glyph()
496 slot->metrics.height = bbox.yMax - bbox.yMin; in af_loader_load_glyph()
497 slot->metrics.horiBearingX = bbox.xMin; in af_loader_load_glyph()
498 slot->metrics.horiBearingY = bbox.yMax; in af_loader_load_glyph()
[all …]
/external/python/cpython2/RISCOS/Modules/
Ddrawfmodule.c28 os_box bbox; member
185 box=&dpath->bbox; in DrawF_Path()
237 extend(&(diag->bbox),box); in DrawF_Path()
273 box=&(dtext->bbox); in DrawF_Text()
275 extend(&(diag->bbox),box); in DrawF_Text()
322 box=&(dtext->bbox); in DrawF_TText()
324 extend(&(diag->bbox),box); in DrawF_TText()
380 dgroup->bbox=g->drawf->bbox; in DrawF_Group()
386 extend(&(diag->bbox),&(dgroup->bbox)); in DrawF_Group()
398 { if(x>=d->data.text.bbox.x0&&x<=d->data.text.bbox.x1&& in DrawF_Find()
[all …]
/external/skia/src/ports/
DSkFontHost_FreeType.cpp492 void getBBoxForCurrentGlyph(SkGlyph* glyph, FT_BBox* bbox,
494 bool getCBoxForLetter(char letter, FT_BBox* bbox);
604 info->fBBox = SkIRect::MakeLTRB(face->bbox.xMin, face->bbox.yMax, in onGetAdvancedMetrics()
605 face->bbox.xMax, face->bbox.yMin); in onGetAdvancedMetrics()
1021 FT_BBox* bbox, in getBBoxForCurrentGlyph() argument
1024 FT_Outline_Get_CBox(&fFace->glyph->outline, bbox); in getBBoxForCurrentGlyph()
1030 bbox->xMin += dx; in getBBoxForCurrentGlyph()
1031 bbox->yMin -= dy; in getBBoxForCurrentGlyph()
1032 bbox->xMax += dx; in getBBoxForCurrentGlyph()
1033 bbox->yMax -= dy; in getBBoxForCurrentGlyph()
[all …]
DSkScalerContext_win_dw.cpp436 RECT* bbox) in getBoundingBox() argument
493 HRM(glyphRunAnalysis->GetAlphaTextureBounds(textureType, bbox), in getBoundingBox()
504 static bool glyph_check_and_set_bounds(SkGlyph* glyph, const RECT& bbox) { in glyph_check_and_set_bounds() argument
505 if (bbox.left >= bbox.right || bbox.top >= bbox.bottom) { in glyph_check_and_set_bounds()
508 glyph->fWidth = SkToU16(bbox.right - bbox.left); in glyph_check_and_set_bounds()
509 glyph->fHeight = SkToU16(bbox.bottom - bbox.top); in glyph_check_and_set_bounds()
510 glyph->fLeft = SkToS16(bbox.left); in glyph_check_and_set_bounds()
511 glyph->fTop = SkToS16(bbox.top); in glyph_check_and_set_bounds()
561 RECT bbox; in generateMetrics() local
562 HRVM(this->getBoundingBox(glyph, fRenderingMode, fTextureType, &bbox), in generateMetrics()
[all …]
/external/pdfium/xfa/fgas/font/
Dcfgas_gefont.cpp307 CFX_Rect* bbox, in GetCharBBox() argument
309 return GetCharBBoxInternal(wUnicode, bbox, true, bCharCode); in GetCharBBox()
313 CFX_Rect* bbox, in GetCharBBoxInternal() argument
318 *bbox = it->second; in GetCharBBoxInternal()
328 return pFont->GetCharBBoxInternal(wUnicode, bbox, false, bCharCode); in GetCharBBoxInternal()
336 *bbox = rt; in GetCharBBoxInternal()
340 bool CFGAS_GEFont::GetBBox(CFX_Rect* bbox) { in GetBBox() argument
345 bbox->left = rt.left; in GetBBox()
346 bbox->width = rt.Width(); in GetBBox()
347 bbox->top = rt.bottom; in GetBBox()
[all …]
/external/pdfium/fpdfsdk/
Dfpdfedittext.cpp107 FX_RECT bbox; in FPDFText_LoadType1Font() local
108 pFont->GetBBox(bbox); in FPDFText_LoadType1Font()
110 pBBox->AddNew<CPDF_Number>(bbox.left); in FPDFText_LoadType1Font()
111 pBBox->AddNew<CPDF_Number>(bbox.bottom); in FPDFText_LoadType1Font()
112 pBBox->AddNew<CPDF_Number>(bbox.right); in FPDFText_LoadType1Font()
113 pBBox->AddNew<CPDF_Number>(bbox.top); in FPDFText_LoadType1Font()
/external/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_screen_dri.c134 const struct drm_clip_rect *bbox) in vmw_dri1_intersect_src_bbox() argument
139 xy1 = ((int)src->x1 > (int)bbox->x1 + dst_x) ? src->x1 : in vmw_dri1_intersect_src_bbox()
140 (int)bbox->x1 + dst_x; in vmw_dri1_intersect_src_bbox()
141 xy2 = ((int)src->x2 < (int)bbox->x2 + dst_x) ? src->x2 : in vmw_dri1_intersect_src_bbox()
142 (int)bbox->x2 + dst_x; in vmw_dri1_intersect_src_bbox()
149 xy1 = ((int)src->y1 > (int)bbox->y1 + dst_y) ? src->y1 : in vmw_dri1_intersect_src_bbox()
150 (int)bbox->y1 + dst_y; in vmw_dri1_intersect_src_bbox()
151 xy2 = ((int)src->y2 < (int)bbox->y2 + dst_y) ? src->y2 : in vmw_dri1_intersect_src_bbox()
152 (int)bbox->y2 + dst_y; in vmw_dri1_intersect_src_bbox()
/external/deqp/modules/gles31/functional/
Des31fPrimitiveBoundingBoxTests.cpp93 static ProjectedBBox projectBoundingBox (const BoundingBox& bbox) in projectBoundingBox() argument
95 const float wMin = de::max(0.0f, bbox.min.w()); // clamp to w=0 as extension requires in projectBoundingBox()
96 const float wMax = de::max(0.0f, bbox.max.w()); in projectBoundingBox()
99 retVal.min = tcu::min(bbox.min.swizzle(0, 1, 2) / wMin, in projectBoundingBox()
100 bbox.min.swizzle(0, 1, 2) / wMax); in projectBoundingBox()
101 retVal.max = tcu::max(bbox.max.swizzle(0, 1, 2) / wMin, in projectBoundingBox()
102 bbox.max.swizzle(0, 1, 2) / wMax); in projectBoundingBox()
106 static tcu::IVec4 getViewportBoundingBoxArea (const ProjectedBBox& bbox, const tcu::IVec2& viewport… in getViewportBoundingBoxArea() argument
111 vertexBox.x() = (bbox.min.x() * 0.5f + 0.5f) * (float)viewportSize.x(); in getViewportBoundingBoxArea()
112 vertexBox.y() = (bbox.min.y() * 0.5f + 0.5f) * (float)viewportSize.y(); in getViewportBoundingBoxArea()
[all …]
/external/python/cpython2/Demo/tkinter/guido/
Dhanoi.py95 ax1, ay1, ax2, ay2 = c.bbox(self.pegs[a])
97 x1, y1, x2, y2 = c.bbox(p)
103 bx1, by1, bx2, by2 = c.bbox(self.pegs[b])
106 x1, y1, x2, y2 = c.bbox(p)
117 x1, y1, x2, y2 = c.bbox(p)
/external/skia/src/pdf/
DSkPDFGradientShader.cpp724 SkRect bbox; in make_function_shader() local
725 bbox.set(state.fBBox); in make_function_shader()
726 if (!SkPDFUtils::InverseTransformBBox(finalMatrix, &bbox)) { in make_function_shader()
730 domain->appendScalar(bbox.fLeft); in make_function_shader()
731 domain->appendScalar(bbox.fRight); in make_function_shader()
732 domain->appendScalar(bbox.fTop); in make_function_shader()
733 domain->appendScalar(bbox.fBottom); in make_function_shader()
859 SkRect bbox = SkRect::Make(state.fBBox); in create_smask_graphic_state() local
860 sk_sp<SkPDFObject> alphaMask = SkPDFMakeFormXObject(create_pattern_fill_content(-1, bbox), in create_smask_graphic_state()
861 SkPDFUtils::RectToArray(bbox), in create_smask_graphic_state()
[all …]
/external/pdfium/third_party/freetype/src/cid/
Dcidobjs.c426 cidface->bbox.xMin = cid->font_bbox.xMin >> 16; in cid_face_init()
427 cidface->bbox.yMin = cid->font_bbox.yMin >> 16; in cid_face_init()
429 cidface->bbox.xMax = ( cid->font_bbox.xMax + 0xFFFF ) >> 16; in cid_face_init()
430 cidface->bbox.yMax = ( cid->font_bbox.yMax + 0xFFFF ) >> 16; in cid_face_init()
435 cidface->ascender = (FT_Short)( cidface->bbox.yMax ); in cid_face_init()
436 cidface->descender = (FT_Short)( cidface->bbox.yMin ); in cid_face_init()
/external/pdfium/third_party/freetype/src/truetype/
Dttgload.c143 loader->bbox.yMax, in tt_get_metrics()
307 loader->bbox.xMin = FT_NEXT_SHORT( p ); in TT_Load_Glyph_Header()
308 loader->bbox.yMin = FT_NEXT_SHORT( p ); in TT_Load_Glyph_Header()
309 loader->bbox.xMax = FT_NEXT_SHORT( p ); in TT_Load_Glyph_Header()
310 loader->bbox.yMax = FT_NEXT_SHORT( p ); in TT_Load_Glyph_Header()
313 FT_TRACE5(( " xMin: %4d xMax: %4d\n", loader->bbox.xMin, in TT_Load_Glyph_Header()
314 loader->bbox.xMax )); in TT_Load_Glyph_Header()
315 FT_TRACE5(( " yMin: %4d yMax: %4d\n", loader->bbox.yMin, in TT_Load_Glyph_Header()
316 loader->bbox.yMax )); in TT_Load_Glyph_Header()
1339 (loader)->pp1.x = (loader)->bbox.xMin - (loader)->left_bearing; \
[all …]
/external/pdfium/third_party/freetype/src/type1/
Dt1objs.c459 root->bbox.xMin = type1->font_bbox.xMin >> 16; in T1_Face_Init()
460 root->bbox.yMin = type1->font_bbox.yMin >> 16; in T1_Face_Init()
462 root->bbox.xMax = ( type1->font_bbox.xMax + 0xFFFF ) >> 16; in T1_Face_Init()
463 root->bbox.yMax = ( type1->font_bbox.yMax + 0xFFFF ) >> 16; in T1_Face_Init()
469 root->ascender = (FT_Short)( root->bbox.yMax ); in T1_Face_Init()
470 root->descender = (FT_Short)( root->bbox.yMin ); in T1_Face_Init()
478 (FT_Short)( root->bbox.xMax ); in T1_Face_Init()
/external/python/cpython2/Demo/tkinter/ttk/
Dttkcalendar.py147 def _show_selection(self, text, bbox): argument
149 x, y, width, height = bbox
179 bbox = widget.bbox(item, column)
180 if not bbox: # calendar not visible yet
186 self._show_selection(text, bbox)
/external/ImageMagick/coders/
Dwmf.c206 eps_info->bbox=bounding_box; in ReadWMFImage()
325 bbox; member
864 XC(ddata->bbox.TL.x),YC(ddata->bbox.TL.y), in ipa_device_begin()
865 XC(ddata->bbox.BR.x),YC(ddata->bbox.BR.y)); in ipa_device_begin()
912 XC(ddata->bbox.TL.x),YC(ddata->bbox.TL.y), in ipa_device_begin()
913 XC(ddata->bbox.BR.x),YC(ddata->bbox.BR.y)); in ipa_device_begin()
1479 TL = draw_text->bbox.TL; in ipa_draw_text()
1480 BR = draw_text->bbox.BR; in ipa_draw_text()
1481 TR = draw_text->bbox.TR; in ipa_draw_text()
1482 BL = draw_text->bbox.BL; in ipa_draw_text()
[all …]

1234