/external/freetype/src/tools/ |
D | test_bbox.c | 114 FT_BBox bbox; in dump_outline() local 117 FT_Outline_Get_CBox( outline, &bbox ); in dump_outline() 119 XVAL( bbox.xMin ), in dump_outline() 120 XVAL( bbox.yMin ), in dump_outline() 121 XVAL( bbox.xMax ), in dump_outline() 122 XVAL( bbox.yMax ) ); in dump_outline() 125 FT_Outline_Get_BBox( outline, &bbox ); in dump_outline() 127 XVAL( bbox.xMin ), in dump_outline() 128 XVAL( bbox.yMin ), in dump_outline() 129 XVAL( bbox.xMax ), in dump_outline() [all …]
|
/external/freetype/src/base/ |
D | ftbbox.c | 40 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/gallium/drivers/llvmpipe/ |
D | lp_setup_point.c | 357 struct u_rect bbox; in try_setup_point() local 391 bbox.x0 = (x0 + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_point() 392 bbox.x1 = (x0 + fixed_width + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_point() 393 bbox.y0 = (y0 + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_point() 394 bbox.y1 = (y0 + fixed_width + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_point() 398 bbox.x1--; in try_setup_point() 399 bbox.y1--; in try_setup_point() 424 bbox.x0 = x0 >> FIXED_ORDER; in try_setup_point() 425 bbox.y0 = y0 >> FIXED_ORDER; in try_setup_point() 426 bbox.x1 = bbox.x0; in try_setup_point() [all …]
|
D | lp_setup_tri.c | 288 struct u_rect bbox, bboxpos; in do_triangle_ccw() local 327 bbox.x0 = MIN3(position->x[0], position->x[1], position->x[2]) >> FIXED_ORDER; in do_triangle_ccw() 328 bbox.x1 = (MAX3(position->x[0], position->x[1], position->x[2]) - 1) >> FIXED_ORDER; in do_triangle_ccw() 331 bbox.y0 = (MIN3(position->y[0], position->y[1], position->y[2]) + adj) >> FIXED_ORDER; in do_triangle_ccw() 332 bbox.y1 = (MAX3(position->y[0], position->y[1], position->y[2]) - 1 + adj) >> FIXED_ORDER; in do_triangle_ccw() 335 if (bbox.x1 < bbox.x0 || in do_triangle_ccw() 336 bbox.y1 < bbox.y0) { in do_triangle_ccw() 342 if (!u_rect_test_intersection(&setup->draw_regions[viewport_index], &bbox)) { in do_triangle_ccw() 348 bboxpos = bbox; in do_triangle_ccw() 507 (bbox.x1 - bbox.x0) <= MAX_FIXED_LENGTH32 && in do_triangle_ccw() [all …]
|
D | lp_setup_context.h | 182 scissor_planes_needed(boolean scis_planes[4], const struct u_rect *bbox, in scissor_planes_needed() argument 186 scis_planes[0] = (bbox->x0 < scissor->x0); in scissor_planes_needed() 188 scis_planes[1] = (bbox->x1 > scissor->x1); in scissor_planes_needed() 190 scis_planes[2] = (bbox->y0 < scissor->y0); in scissor_planes_needed() 192 scis_planes[3] = (bbox->y1 > scissor->y1); in scissor_planes_needed() 231 const struct u_rect *bbox,
|
D | lp_setup_line.c | 292 struct u_rect bbox, bboxpos; in try_setup_line() local 564 bbox.x0 = (MIN4(x[0], x[1], x[2], x[3]) + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_line() 565 bbox.x1 = (MAX4(x[0], x[1], x[2], x[3]) + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_line() 566 bbox.y0 = (MIN4(y[0], y[1], y[2], y[3]) + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_line() 567 bbox.y1 = (MAX4(y[0], y[1], y[2], y[3]) + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_line() 571 bbox.x1--; in try_setup_line() 572 bbox.y1--; in try_setup_line() 575 if (bbox.x1 < bbox.x0 || in try_setup_line() 576 bbox.y1 < bbox.y0) { in try_setup_line() 582 if (!u_rect_test_intersection(&setup->draw_regions[viewport_index], &bbox)) { in try_setup_line() [all …]
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/ |
D | binner.cpp | 886 SIMDBBOX_T<SIMD_T> bbox; in BinTrianglesImpl() local 894 calcBoundingBoxIntVertical<SIMD_T, CT>(vXi, vYi, bbox); in BinTrianglesImpl() 908 Integer<SIMD_T> xmin = SIMD_T::add_epi32(bbox.xmin, SIMD_T::set1_epi32(127)); in BinTrianglesImpl() 910 Integer<SIMD_T> xmax = SIMD_T::add_epi32(bbox.xmax, SIMD_T::set1_epi32(128)); in BinTrianglesImpl() 915 Integer<SIMD_T> ymin = SIMD_T::add_epi32(bbox.ymin, SIMD_T::set1_epi32(127)); in BinTrianglesImpl() 917 Integer<SIMD_T> ymax = SIMD_T::add_epi32(bbox.ymax, SIMD_T::set1_epi32(128)); in BinTrianglesImpl() 961 bbox.xmax = SIMD_T::sub_epi32(bbox.xmax, SIMD_T::set1_epi32(1)); in BinTrianglesImpl() 962 bbox.ymax = SIMD_T::sub_epi32(bbox.ymax, SIMD_T::set1_epi32(1)); in BinTrianglesImpl() 964 bbox.xmin = SIMD_T::max_epi32(bbox.xmin, scisXmin); in BinTrianglesImpl() 965 bbox.ymin = SIMD_T::max_epi32(bbox.ymin, scisYmin); in BinTrianglesImpl() [all …]
|
/external/mesa3d/src/mesa/main/ |
D | framebuffer.c | 342 unsigned idx, int *bbox) in _mesa_intersect_scissor_bounding_box() argument 345 if (ctx->Scissor.ScissorArray[idx].X > bbox[0]) { in _mesa_intersect_scissor_bounding_box() 346 bbox[0] = ctx->Scissor.ScissorArray[idx].X; in _mesa_intersect_scissor_bounding_box() 348 if (ctx->Scissor.ScissorArray[idx].Y > bbox[2]) { in _mesa_intersect_scissor_bounding_box() 349 bbox[2] = ctx->Scissor.ScissorArray[idx].Y; in _mesa_intersect_scissor_bounding_box() 351 if (ctx->Scissor.ScissorArray[idx].X + ctx->Scissor.ScissorArray[idx].Width < bbox[1]) { in _mesa_intersect_scissor_bounding_box() 352 bbox[1] = ctx->Scissor.ScissorArray[idx].X + ctx->Scissor.ScissorArray[idx].Width; in _mesa_intersect_scissor_bounding_box() 354 if (ctx->Scissor.ScissorArray[idx].Y + ctx->Scissor.ScissorArray[idx].Height < bbox[3]) { in _mesa_intersect_scissor_bounding_box() 355 bbox[3] = ctx->Scissor.ScissorArray[idx].Y + ctx->Scissor.ScissorArray[idx].Height; in _mesa_intersect_scissor_bounding_box() 358 if (bbox[0] > bbox[1]) { in _mesa_intersect_scissor_bounding_box() [all …]
|
/external/freetype/src/autofit/ |
D | afloader.c | 516 FT_BBox bbox; in af_loader_load_glyph() local 537 FT_Outline_Get_CBox( &gloader->base.outline, &bbox ); in af_loader_load_glyph() 539 bbox.xMin = FT_PIX_FLOOR( bbox.xMin ); in af_loader_load_glyph() 540 bbox.yMin = FT_PIX_FLOOR( bbox.yMin ); in af_loader_load_glyph() 541 bbox.xMax = FT_PIX_CEIL( bbox.xMax ); in af_loader_load_glyph() 542 bbox.yMax = FT_PIX_CEIL( bbox.yMax ); in af_loader_load_glyph() 544 slot->metrics.width = bbox.xMax - bbox.xMin; in af_loader_load_glyph() 545 slot->metrics.height = bbox.yMax - bbox.yMin; in af_loader_load_glyph() 546 slot->metrics.horiBearingX = bbox.xMin; in af_loader_load_glyph() 547 slot->metrics.horiBearingY = bbox.yMax; in af_loader_load_glyph() [all …]
|
/external/python/cpython2/RISCOS/Modules/ |
D | drawfmodule.c | 28 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/ |
D | SkScalerContext_win_dw.cpp | 430 RECT* bbox) in getBoundingBox() argument 487 HRM(glyphRunAnalysis->GetAlphaTextureBounds(textureType, bbox), in getBoundingBox() 658 auto glyphCheckAndSetBounds = [](SkGlyph* glyph, const RECT& bbox) { in generateMetrics() argument 659 if (bbox.left >= bbox.right || bbox.top >= bbox.bottom) { in generateMetrics() 666 SkIRect::MakeLTRB(bbox.left, bbox.top, bbox.right, bbox.bottom))) { in generateMetrics() 670 glyph->fWidth = SkToU16(bbox.right - bbox.left); in generateMetrics() 671 glyph->fHeight = SkToU16(bbox.bottom - bbox.top); in generateMetrics() 672 glyph->fLeft = SkToS16(bbox.left); in generateMetrics() 673 glyph->fTop = SkToS16(bbox.top); in generateMetrics() 699 RECT bbox; in generateMetrics() local [all …]
|
D | SkFontHost_FreeType.cpp | 553 void getBBoxForCurrentGlyph(const SkGlyph* glyph, FT_BBox* bbox, 555 bool getCBoxForLetter(char letter, FT_BBox* bbox); 649 info->fBBox = SkIRect::MakeLTRB(face->bbox.xMin, face->bbox.yMax, in onGetAdvancedMetrics() 650 face->bbox.xMax, face->bbox.yMin); in onGetAdvancedMetrics() 1091 FT_BBox* bbox, in getBBoxForCurrentGlyph() argument 1094 FT_Outline_Get_CBox(&fFace->glyph->outline, bbox); in getBBoxForCurrentGlyph() 1100 bbox->xMin += dx; in getBBoxForCurrentGlyph() 1101 bbox->yMin -= dy; in getBBoxForCurrentGlyph() 1102 bbox->xMax += dx; in getBBoxForCurrentGlyph() 1103 bbox->yMax -= dy; in getBBoxForCurrentGlyph() [all …]
|
/external/skqp/src/ports/ |
D | SkScalerContext_win_dw.cpp | 436 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() 512 SkIRect::MakeLTRB(bbox.left, bbox.top, bbox.right, bbox.bottom))) { in glyph_check_and_set_bounds() 516 glyph->fWidth = SkToU16(bbox.right - bbox.left); in glyph_check_and_set_bounds() 517 glyph->fHeight = SkToU16(bbox.bottom - bbox.top); in glyph_check_and_set_bounds() 518 glyph->fLeft = SkToS16(bbox.left); in glyph_check_and_set_bounds() 519 glyph->fTop = SkToS16(bbox.top); in glyph_check_and_set_bounds() 704 RECT bbox; in generateMetrics() local [all …]
|
D | SkFontHost_FreeType.cpp | 531 void getBBoxForCurrentGlyph(const SkGlyph* glyph, FT_BBox* bbox, 533 bool getCBoxForLetter(char letter, FT_BBox* bbox); 627 info->fBBox = SkIRect::MakeLTRB(face->bbox.xMin, face->bbox.yMax, in onGetAdvancedMetrics() 628 face->bbox.xMax, face->bbox.yMin); in onGetAdvancedMetrics() 1070 FT_BBox* bbox, in getBBoxForCurrentGlyph() argument 1073 FT_Outline_Get_CBox(&fFace->glyph->outline, bbox); in getBBoxForCurrentGlyph() 1079 bbox->xMin += dx; in getBBoxForCurrentGlyph() 1080 bbox->yMin -= dy; in getBBoxForCurrentGlyph() 1081 bbox->xMax += dx; in getBBoxForCurrentGlyph() 1082 bbox->yMax -= dy; in getBBoxForCurrentGlyph() [all …]
|
/external/deqp/modules/gles31/functional/ |
D | es31fPrimitiveBoundingBoxTests.cpp | 94 static ProjectedBBox projectBoundingBox (const BoundingBox& bbox) in projectBoundingBox() argument 96 const float wMin = de::max(0.0f, bbox.min.w()); // clamp to w=0 as extension requires in projectBoundingBox() 97 const float wMax = de::max(0.0f, bbox.max.w()); in projectBoundingBox() 100 retVal.min = tcu::min(bbox.min.swizzle(0, 1, 2) / wMin, in projectBoundingBox() 101 bbox.min.swizzle(0, 1, 2) / wMax); in projectBoundingBox() 102 retVal.max = tcu::max(bbox.max.swizzle(0, 1, 2) / wMin, in projectBoundingBox() 103 bbox.max.swizzle(0, 1, 2) / wMax); in projectBoundingBox() 107 static tcu::IVec4 getViewportBoundingBoxArea (const ProjectedBBox& bbox, const tcu::IVec2& viewport… in getViewportBoundingBoxArea() argument 112 vertexBox.x() = (bbox.min.x() * 0.5f + 0.5f) * (float)viewportSize.x(); in getViewportBoundingBoxArea() 113 vertexBox.y() = (bbox.min.y() * 0.5f + 0.5f) * (float)viewportSize.y(); in getViewportBoundingBoxArea() [all …]
|
/external/skia/src/pdf/ |
D | SkPDFGradientShader.cpp | 697 SkRect bbox; in make_function_shader() local 698 bbox.set(state.fBBox); in make_function_shader() 699 if (!SkPDFUtils::InverseTransformBBox(finalMatrix, &bbox)) { in make_function_shader() 732 "Domain", SkPDFMakeArray(bbox.left(), bbox.right(), bbox.top(), bbox.bottom())); in make_function_shader() 734 auto domain = SkPDFMakeArray(bbox.left(), bbox.right(), bbox.top(), bbox.bottom()); in make_function_shader() 830 SkRect bbox = SkRect::Make(state.fBBox); in create_smask_graphic_state() local 833 create_pattern_fill_content(-1, luminosityShader.fValue, bbox), in create_smask_graphic_state() 834 SkPDFUtils::RectToArray(bbox), in create_smask_graphic_state() 852 SkRect bbox = SkRect::Make(state.fBBox); in make_alpha_function_shader() local 864 create_pattern_fill_content(alphaGsRef.fValue, colorShader.fValue, bbox); in make_alpha_function_shader() [all …]
|
/external/skqp/src/pdf/ |
D | SkPDFGradientShader.cpp | 698 SkRect bbox; in make_function_shader() local 699 bbox.set(state.fBBox); in make_function_shader() 700 if (!SkPDFUtils::InverseTransformBBox(finalMatrix, &bbox)) { in make_function_shader() 733 "Domain", SkPDFMakeArray(bbox.left(), bbox.right(), bbox.top(), bbox.bottom())); in make_function_shader() 735 auto domain = SkPDFMakeArray(bbox.left(), bbox.right(), bbox.top(), bbox.bottom()); in make_function_shader() 831 SkRect bbox = SkRect::Make(state.fBBox); in create_smask_graphic_state() local 834 create_pattern_fill_content(-1, luminosityShader.fValue, bbox), in create_smask_graphic_state() 835 SkPDFUtils::RectToArray(bbox), in create_smask_graphic_state() 853 SkRect bbox = SkRect::Make(state.fBBox); in make_alpha_function_shader() local 865 create_pattern_fill_content(alphaGsRef.fValue, colorShader.fValue, bbox); in make_alpha_function_shader() [all …]
|
/external/tensorflow/tensorflow/lite/tools/evaluation/tasks/coco_object_detection/ |
D | preprocess_coco_minival.py | 111 bbox = annotation_dict['bbox'] 114 top = bbox[1] 115 left = bbox[0] 116 bottom = top + bbox[3] 117 right = left + bbox[2]
|
/external/tensorflow/tensorflow/lite/tools/evaluation/stages/ |
D | object_detection_stage.cc | 120 auto* bbox = object->mutable_bounding_box(); in Run() local 121 bbox->set_normalized_top(detected_label_boxes[bounding_box_offset + 0]); in Run() 122 bbox->set_normalized_left(detected_label_boxes[bounding_box_offset + 1]); in Run() 123 bbox->set_normalized_bottom(detected_label_boxes[bounding_box_offset + 2]); in Run() 124 bbox->set_normalized_right(detected_label_boxes[bounding_box_offset + 3]); in Run()
|
/external/skqp/modules/sksg/tests/ |
D | SGTest.cpp | 31 const auto bbox = root->revalidate(&ic, SkMatrix::I()); in check_inval() local 35 bbox.fLeft, bbox.fTop, bbox.fRight, bbox.fBottom, in check_inval() 39 REPORTER_ASSERT(reporter, bbox == expected_bounds); in check_inval()
|
/external/python/cpython2/Demo/tkinter/guido/ |
D | hanoi.py | 95 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/python/cpython3/Tools/demo/ |
D | hanoi.py | 96 ax1, ay1, ax2, ay2 = c.bbox(self.pegs[a]) 98 x1, y1, x2, y2 = c.bbox(p) 104 bx1, by1, bx2, by2 = c.bbox(self.pegs[b]) 107 x1, y1, x2, y2 = c.bbox(p) 118 x1, y1, x2, y2 = c.bbox(p)
|
/external/python/cpython3/Lib/tkinter/test/test_tkinter/ |
D | test_widgets.py | 496 self.assertIsBoundingBox(widget.bbox(0)) 497 self.assertRaises(tkinter.TclError, widget.bbox, 'noindex') 498 self.assertRaises(tkinter.TclError, widget.bbox, None) 499 self.assertRaises(TypeError, widget.bbox) 500 self.assertRaises(TypeError, widget.bbox, 0, 1) 681 self.assertIsBoundingBox(widget.bbox('1.1')) 682 self.assertIsNone(widget.bbox('end')) 683 self.assertRaises(tkinter.TclError, widget.bbox, 'noindex') 684 self.assertRaises(tkinter.TclError, widget.bbox, None) 685 self.assertRaises(TypeError, widget.bbox) [all …]
|
/external/pdfium/xfa/fgas/font/ |
D | cfgas_gefont.cpp | 187 bool CFGAS_GEFont::GetCharBBox(wchar_t wUnicode, FX_RECT* bbox) { in GetCharBBox() argument 190 *bbox = it->second; in GetCharBBox() 201 return pFont->GetCharBBox(wUnicode, bbox); in GetCharBBox() 208 *bbox = rtBBox; in GetCharBBox() 212 bool CFGAS_GEFont::GetBBox(FX_RECT* bbox) { in GetBBox() argument 213 return m_pFont->GetBBox(bbox); in GetBBox()
|
/external/python/cpython2/Demo/tkinter/ttk/ |
D | ttkcalendar.py | 147 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)
|