/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 | 346 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 …]
|
D | lp_setup_tri.c | 277 struct u_rect bbox, bboxpos; in do_triangle_ccw() local 316 bbox.x0 = MIN3(position->x[0], position->x[1], position->x[2]) >> FIXED_ORDER; in do_triangle_ccw() 317 bbox.x1 = (MAX3(position->x[0], position->x[1], position->x[2]) - 1) >> FIXED_ORDER; in do_triangle_ccw() 320 bbox.y0 = (MIN3(position->y[0], position->y[1], position->y[2]) + adj) >> FIXED_ORDER; in do_triangle_ccw() 321 bbox.y1 = (MAX3(position->y[0], position->y[1], position->y[2]) - 1 + adj) >> FIXED_ORDER; in do_triangle_ccw() 324 if (bbox.x1 < bbox.x0 || in do_triangle_ccw() 325 bbox.y1 < bbox.y0) { in do_triangle_ccw() 331 if (!u_rect_test_intersection(&setup->draw_regions[viewport_index], &bbox)) { in do_triangle_ccw() 337 bboxpos = bbox; in do_triangle_ccw() 499 (bbox.x1 - bbox.x0) <= MAX_FIXED_LENGTH32 && in do_triangle_ccw() [all …]
|
D | lp_setup_context.h | 172 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() 221 const struct u_rect *bbox,
|
D | lp_setup_line.c | 292 struct u_rect bbox, bboxpos; in try_setup_line() local 560 bbox.x0 = (MIN4(x[0], x[1], x[2], x[3]) + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_line() 561 bbox.x1 = (MAX4(x[0], x[1], x[2], x[3]) + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_line() 562 bbox.y0 = (MIN4(y[0], y[1], y[2], y[3]) + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_line() 563 bbox.y1 = (MAX4(y[0], y[1], y[2], y[3]) + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_line() 567 bbox.x1--; in try_setup_line() 568 bbox.y1--; in try_setup_line() 571 if (bbox.x1 < bbox.x0 || in try_setup_line() 572 bbox.y1 < bbox.y0) { in try_setup_line() 578 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 | 833 SIMDBBOX_T<SIMD_T> bbox; in BinTrianglesImpl() local 841 calcBoundingBoxIntVertical<SIMD_T, CT>(vXi, vYi, bbox); in BinTrianglesImpl() 855 typename SIMD_T::Integer xmin = SIMD_T::add_epi32(bbox.xmin, SIMD_T::set1_epi32(127)); in BinTrianglesImpl() 857 typename SIMD_T::Integer xmax = SIMD_T::add_epi32(bbox.xmax, SIMD_T::set1_epi32(128)); in BinTrianglesImpl() 862 typename SIMD_T::Integer ymin = SIMD_T::add_epi32(bbox.ymin, SIMD_T::set1_epi32(127)); in BinTrianglesImpl() 864 typename SIMD_T::Integer ymax = SIMD_T::add_epi32(bbox.ymax, SIMD_T::set1_epi32(128)); in BinTrianglesImpl() 900 bbox.xmax = SIMD_T::sub_epi32(bbox.xmax, SIMD_T::set1_epi32(1)); in BinTrianglesImpl() 901 bbox.ymax = SIMD_T::sub_epi32(bbox.ymax, SIMD_T::set1_epi32(1)); in BinTrianglesImpl() 903 bbox.xmin = SIMD_T::max_epi32(bbox.xmin, scisXmin); in BinTrianglesImpl() 904 bbox.ymin = SIMD_T::max_epi32(bbox.ymin, scisYmin); in BinTrianglesImpl() [all …]
|
/external/pdfium/core/fxge/ |
D | cfx_font.cpp | 352 bool CFX_Font::GetGlyphBBox(uint32_t glyph_index, FX_RECT& bbox) { in GetGlyphBBox() argument 376 bbox.left = cbox.xMin; in GetGlyphBBox() 377 bbox.right = cbox.xMax; in GetGlyphBBox() 378 bbox.top = cbox.yMax; in GetGlyphBBox() 379 bbox.bottom = cbox.yMin; in GetGlyphBBox() 381 bbox.left = cbox.xMin * 1000 / pixel_size_x; in GetGlyphBBox() 382 bbox.right = cbox.xMax * 1000 / pixel_size_x; in GetGlyphBBox() 383 bbox.top = cbox.yMax * 1000 / pixel_size_y; in GetGlyphBBox() 384 bbox.bottom = cbox.yMin * 1000 / pixel_size_y; in GetGlyphBBox() 386 bbox.top = std::min(bbox.top, in GetGlyphBBox() [all …]
|
/external/mesa3d/src/mesa/main/ |
D | framebuffer.c | 334 unsigned idx, int *bbox) in _mesa_intersect_scissor_bounding_box() argument 337 if (ctx->Scissor.ScissorArray[idx].X > bbox[0]) { in _mesa_intersect_scissor_bounding_box() 338 bbox[0] = ctx->Scissor.ScissorArray[idx].X; in _mesa_intersect_scissor_bounding_box() 340 if (ctx->Scissor.ScissorArray[idx].Y > bbox[2]) { in _mesa_intersect_scissor_bounding_box() 341 bbox[2] = ctx->Scissor.ScissorArray[idx].Y; in _mesa_intersect_scissor_bounding_box() 343 if (ctx->Scissor.ScissorArray[idx].X + ctx->Scissor.ScissorArray[idx].Width < bbox[1]) { in _mesa_intersect_scissor_bounding_box() 344 bbox[1] = ctx->Scissor.ScissorArray[idx].X + ctx->Scissor.ScissorArray[idx].Width; in _mesa_intersect_scissor_bounding_box() 346 if (ctx->Scissor.ScissorArray[idx].Y + ctx->Scissor.ScissorArray[idx].Height < bbox[3]) { in _mesa_intersect_scissor_bounding_box() 347 bbox[3] = ctx->Scissor.ScissorArray[idx].Y + ctx->Scissor.ScissorArray[idx].Height; in _mesa_intersect_scissor_bounding_box() 350 if (bbox[0] > bbox[1]) { in _mesa_intersect_scissor_bounding_box() [all …]
|
/external/freetype/src/autofit/ |
D | afloader.c | 511 FT_BBox bbox; in af_loader_load_glyph() local 532 FT_Outline_Get_CBox( &gloader->base.outline, &bbox ); in af_loader_load_glyph() 534 bbox.xMin = FT_PIX_FLOOR( bbox.xMin ); in af_loader_load_glyph() 535 bbox.yMin = FT_PIX_FLOOR( bbox.yMin ); in af_loader_load_glyph() 536 bbox.xMax = FT_PIX_CEIL( bbox.xMax ); in af_loader_load_glyph() 537 bbox.yMax = FT_PIX_CEIL( bbox.yMax ); in af_loader_load_glyph() 539 slot->metrics.width = bbox.xMax - bbox.xMin; in af_loader_load_glyph() 540 slot->metrics.height = bbox.yMax - bbox.yMin; in af_loader_load_glyph() 541 slot->metrics.horiBearingX = bbox.xMin; in af_loader_load_glyph() 542 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/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/skia/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/pdfium/xfa/fgas/font/ |
D | cfgas_gefont.cpp | 188 bool CFGAS_GEFont::GetCharBBox(wchar_t wUnicode, CFX_Rect* bbox) { in GetCharBBox() argument 191 *bbox = it->second; in GetCharBBox() 202 return pFont->GetCharBBox(wUnicode, bbox); in GetCharBBox() 210 *bbox = rt; in GetCharBBox() 214 bool CFGAS_GEFont::GetBBox(CFX_Rect* bbox) { in GetBBox() argument 219 bbox->left = rt.left; in GetBBox() 220 bbox->width = rt.Width(); in GetBBox() 221 bbox->top = rt.bottom; in GetBBox() 222 bbox->height = -rt.Height(); in GetBBox()
|
/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 | 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/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/contrib/eager/python/examples/revnet/ |
D | resnet_preprocessing.py | 27 bbox, argument 57 with tf.name_scope(scope, 'distorted_bounding_box_crop', [image_bytes, bbox]): 61 bounding_boxes=bbox, 87 bbox = tf.constant([0.0, 0.0, 1.0, 1.0], dtype=tf.float32, shape=[1, 1, 4]) 90 bbox,
|
/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/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/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/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)
|
/external/ImageMagick/coders/ |
D | wmf.c | 208 eps_info->bbox=bounding_box; in ReadWMFImage() 327 bbox; member 871 XC(ddata->bbox.TL.x),YC(ddata->bbox.TL.y), in ipa_device_begin() 872 XC(ddata->bbox.BR.x),YC(ddata->bbox.BR.y)); in ipa_device_begin() 919 XC(ddata->bbox.TL.x),YC(ddata->bbox.TL.y), in ipa_device_begin() 920 XC(ddata->bbox.BR.x),YC(ddata->bbox.BR.y)); in ipa_device_begin() 1486 TL = draw_text->bbox.TL; in ipa_draw_text() 1487 BR = draw_text->bbox.BR; in ipa_draw_text() 1488 TR = draw_text->bbox.TR; in ipa_draw_text() 1489 BL = draw_text->bbox.BL; in ipa_draw_text() [all …]
|