/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/pdfium/third_party/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/opencv3/modules/flann/include/opencv2/flann/ |
D | kdtree_single_index.h | 314 void computeBoundingBox(BoundingBox& bbox) in computeBoundingBox() argument 316 bbox.resize(dim_); in computeBoundingBox() 318 bbox[i].low = (DistanceType)dataset_[0][i]; in computeBoundingBox() 319 bbox[i].high = (DistanceType)dataset_[0][i]; in computeBoundingBox() 323 if (dataset_[k][i]<bbox[i].low) bbox[i].low = (DistanceType)dataset_[k][i]; in computeBoundingBox() 324 if (dataset_[k][i]>bbox[i].high) bbox[i].high = (DistanceType)dataset_[k][i]; in computeBoundingBox() 339 NodePtr divideTree(int left, int right, BoundingBox& bbox) in divideTree() argument 351 bbox[i].low = (DistanceType)dataset_[vind_[left]][i]; in divideTree() 352 bbox[i].high = (DistanceType)dataset_[vind_[left]][i]; in divideTree() 356 … if (bbox[i].low>dataset_[vind_[k]][i]) bbox[i].low=(DistanceType)dataset_[vind_[k]][i]; in divideTree() [all …]
|
/external/pdfium/core/src/fxge/ge/ |
D | fx_ge_font.cpp | 276 FX_BOOL CFX_Font::GetGlyphBBox(FX_DWORD glyph_index, FX_RECT& bbox) { in GetGlyphBBox() argument 300 bbox.left = cbox.xMin; in GetGlyphBBox() 301 bbox.right = cbox.xMax; in GetGlyphBBox() 302 bbox.top = cbox.yMax; in GetGlyphBBox() 303 bbox.bottom = cbox.yMin; in GetGlyphBBox() 305 bbox.left = cbox.xMin * 1000 / pixel_size_x; in GetGlyphBBox() 306 bbox.right = cbox.xMax * 1000 / pixel_size_x; in GetGlyphBBox() 307 bbox.top = cbox.yMax * 1000 / pixel_size_y; in GetGlyphBBox() 308 bbox.bottom = cbox.yMin * 1000 / pixel_size_y; in GetGlyphBBox() 310 if (bbox.top > FXFT_Get_Face_Ascender(m_Face)) { in GetGlyphBBox() [all …]
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_setup_tri.c | 246 struct u_rect bbox; in do_triangle_ccw() local 273 bbox.x0 = MIN3(position->x[0], position->x[1], position->x[2]) >> FIXED_ORDER; in do_triangle_ccw() 274 bbox.x1 = (MAX3(position->x[0], position->x[1], position->x[2]) - 1) >> FIXED_ORDER; in do_triangle_ccw() 277 bbox.y0 = (MIN3(position->y[0], position->y[1], position->y[2]) + adj) >> FIXED_ORDER; in do_triangle_ccw() 278 bbox.y1 = (MAX3(position->y[0], position->y[1], position->y[2]) - 1 + adj) >> FIXED_ORDER; in do_triangle_ccw() 281 if (bbox.x1 < bbox.x0 || in do_triangle_ccw() 282 bbox.y1 < bbox.y0) { in do_triangle_ccw() 288 if (!u_rect_test_intersection(&setup->draw_region, &bbox)) { in do_triangle_ccw() 298 bbox.x0 = MAX2(bbox.x0, 0); in do_triangle_ccw() 299 bbox.y0 = MAX2(bbox.y0, 0); in do_triangle_ccw() [all …]
|
D | lp_setup_point.c | 324 struct u_rect bbox; in try_setup_point() local 338 bbox.x0 = (x0 + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_point() 339 bbox.x1 = (x0 + fixed_width + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_point() 340 bbox.y0 = (y0 + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_point() 341 bbox.y1 = (y0 + fixed_width + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_point() 345 bbox.x1--; in try_setup_point() 346 bbox.y1--; in try_setup_point() 349 if (!u_rect_test_intersection(&setup->draw_region, &bbox)) { in try_setup_point() 355 u_rect_find_intersection(&setup->draw_region, &bbox); in try_setup_point() 391 plane[0].c = 1-bbox.x0; in try_setup_point() [all …]
|
D | lp_setup_line.c | 286 struct u_rect bbox; in try_setup_line() local 548 bbox.x0 = (MIN4(x[0], x[1], x[2], x[3]) + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_line() 549 bbox.x1 = (MAX4(x[0], x[1], x[2], x[3]) + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_line() 550 bbox.y0 = (MIN4(y[0], y[1], y[2], y[3]) + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_line() 551 bbox.y1 = (MAX4(y[0], y[1], y[2], y[3]) + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_line() 555 bbox.x1--; in try_setup_line() 556 bbox.y1--; in try_setup_line() 559 if (bbox.x1 < bbox.x0 || in try_setup_line() 560 bbox.y1 < bbox.y0) { in try_setup_line() 566 if (!u_rect_test_intersection(&setup->draw_region, &bbox)) { in try_setup_line() [all …]
|
/external/freetype/src/autofit/ |
D | afloader.c | 238 FT_BBox bbox; in af_loader_load_g() local 259 FT_Outline_Get_CBox( &gloader->base.outline, &bbox ); in af_loader_load_g() 261 bbox.xMin = FT_PIX_FLOOR( bbox.xMin ); in af_loader_load_g() 262 bbox.yMin = FT_PIX_FLOOR( bbox.yMin ); in af_loader_load_g() 263 bbox.xMax = FT_PIX_CEIL( bbox.xMax ); in af_loader_load_g() 264 bbox.yMax = FT_PIX_CEIL( bbox.yMax ); in af_loader_load_g() 266 slot->metrics.width = bbox.xMax - bbox.xMin; in af_loader_load_g() 267 slot->metrics.height = bbox.yMax - bbox.yMin; in af_loader_load_g() 268 slot->metrics.horiBearingX = bbox.xMin; in af_loader_load_g() 269 slot->metrics.horiBearingY = bbox.yMax; in af_loader_load_g() [all …]
|
/external/mesa3d/src/gallium/winsys/svga/drm/ |
D | vmw_screen_dri.c | 125 const struct drm_clip_rect *bbox) in vmw_dri1_intersect_src_bbox() argument 130 xy1 = ((int)src->x1 > (int)bbox->x1 + dst_x) ? src->x1 : in vmw_dri1_intersect_src_bbox() 131 (int)bbox->x1 + dst_x; in vmw_dri1_intersect_src_bbox() 132 xy2 = ((int)src->x2 < (int)bbox->x2 + dst_x) ? src->x2 : in vmw_dri1_intersect_src_bbox() 133 (int)bbox->x2 + dst_x; in vmw_dri1_intersect_src_bbox() 140 xy1 = ((int)src->y1 > (int)bbox->y1 + dst_y) ? src->y1 : in vmw_dri1_intersect_src_bbox() 141 (int)bbox->y1 + dst_y; in vmw_dri1_intersect_src_bbox() 142 xy2 = ((int)src->y2 < (int)bbox->y2 + dst_y) ? src->y2 : in vmw_dri1_intersect_src_bbox() 143 (int)bbox->y2 + dst_y; in vmw_dri1_intersect_src_bbox()
|
/external/skia/src/ports/ |
D | SkScalerContext_win_dw.cpp | 398 RECT* bbox) in getBoundingBox() argument 438 HRM(glyphRunAnalysis->GetAlphaTextureBounds(textureType, bbox), in getBoundingBox() 449 static bool glyph_check_and_set_bounds(SkGlyph* glyph, const RECT& bbox) { in glyph_check_and_set_bounds() argument 450 if (bbox.left >= bbox.right || bbox.top >= bbox.bottom) { in glyph_check_and_set_bounds() 453 glyph->fWidth = SkToU16(bbox.right - bbox.left); in glyph_check_and_set_bounds() 454 glyph->fHeight = SkToU16(bbox.bottom - bbox.top); in glyph_check_and_set_bounds() 455 glyph->fLeft = SkToS16(bbox.left); in glyph_check_and_set_bounds() 456 glyph->fTop = SkToS16(bbox.top); in glyph_check_and_set_bounds() 468 RECT bbox; in generateMetrics() local 469 HRVM(this->getBoundingBox(glyph, fRenderingMode, fTextureType, &bbox), in generateMetrics() [all …]
|
D | SkFontHost_FreeType.cpp | 216 void getBBoxForCurrentGlyph(SkGlyph* glyph, FT_BBox* bbox, 218 bool getCBoxForLetter(char letter, FT_BBox* bbox); 426 static bool GetLetterCBox(FT_Face face, char letter, FT_BBox* bbox) { in GetLetterCBox() argument 432 FT_Outline_Get_CBox(&face->glyph->outline, bbox); in GetLetterCBox() 539 FT_BBox bbox; in onGetAdvancedTypefaceMetrics() 540 if (GetLetterCBox(face, stem_chars[i], &bbox)) { in onGetAdvancedTypefaceMetrics() 541 int16_t width = bbox.xMax - bbox.xMin; in onGetAdvancedTypefaceMetrics() 582 info->fBBox = SkIRect::MakeLTRB(face->bbox.xMin, face->bbox.yMax, in onGetAdvancedTypefaceMetrics() 583 face->bbox.xMax, face->bbox.yMin); in onGetAdvancedTypefaceMetrics() 1041 FT_BBox* bbox, in getBBoxForCurrentGlyph() argument [all …]
|
/external/skia/src/pdf/ |
D | SkPDFShader.cpp | 25 static bool inverse_transform_bbox(const SkMatrix& matrix, SkRect* bbox) { in inverse_transform_bbox() argument 30 inverse.mapRect(bbox); in inverse_transform_bbox() 439 const SkIRect& bbox, SkScalar rasterScale); 541 SkRect& bbox, in populate_tiling_pattern_dict() argument 552 pattern->insertObject("BBox", SkPDFUtils::RectToArray(bbox)); in populate_tiling_pattern_dict() 553 pattern->insertScalar("XStep", bbox.width()); in populate_tiling_pattern_dict() 554 pattern->insertScalar("YStep", bbox.height()); in populate_tiling_pattern_dict() 585 SkRect bbox; in create_smask_graphic_state() local 586 bbox.set(state.fBBox); in create_smask_graphic_state() 593 SkAutoTDelete<SkStream> alphaStream(create_pattern_fill_content(-1, bbox)); in create_smask_graphic_state() [all …]
|
D | SkPDFFormXObject.cpp | 47 SkPDFFormXObject::SkPDFFormXObject(SkStream* content, SkRect bbox, in SkPDFFormXObject() argument 51 SkAutoTUnref<SkPDFArray> bboxArray(SkPDFUtils::RectToArray(bbox)); in SkPDFFormXObject() 60 SkPDFDict* resourceDict, SkPDFArray* bbox) { in init() argument 64 this->insertObject("BBox", SkRef(bbox)); in init()
|
D | SkPDFFormXObject.h | 45 SkRect bbox, 51 SkPDFDict* resourceDict, SkPDFArray* bbox);
|
/external/deqp/modules/gles31/functional/ |
D | es31fPrimitiveBoundingBoxTests.cpp | 93 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/pdfium/core/src/fpdfapi/fpdf_edit/ |
D | fpdf_edit_doc.cpp | 253 int flags = 0, italicangle, ascend, descend, capheight, bbox[4]; in AddWindowsFont() local 281 bbox[0] = ptm->otmrcFontBox.left; in AddWindowsFont() 282 bbox[1] = ptm->otmrcFontBox.bottom; in AddWindowsFont() 283 bbox[2] = ptm->otmrcFontBox.right; in AddWindowsFont() 284 bbox[3] = ptm->otmrcFontBox.top; in AddWindowsFont() 413 pBBox->AddInteger(bbox[i]); in AddWindowsFont() 559 bbox[4]; in AddMacFont() local 560 FXSYS_memset(bbox, 0, sizeof(int) * 4); in AddMacFont() 606 bbox[0] = box.origin.x; in AddMacFont() 607 bbox[1] = box.origin.y; in AddMacFont() [all …]
|
/external/pdfium/third_party/freetype/src/cid/ |
D | cidobjs.c | 426 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/ |
D | ttgload.c | 143 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/xfa/src/fgas/src/font/ |
D | fx_gdifont.cpp | 400 CFX_Rect& bbox, in GetCharBBox() argument 416 bbox.left = gm.gmptGlyphOrigin.x; in GetCharBBox() 417 bbox.top = gm.gmptGlyphOrigin.y; in GetCharBBox() 418 bbox.width = gm.gmBlackBoxX; in GetCharBBox() 419 bbox.height = gm.gmBlackBoxY; in GetCharBBox() 424 FX_BOOL CFX_GdiFont::GetBBox(CFX_Rect& bbox) { in GetBBox() argument 425 bbox.left = m_OutlineTM.otmrcFontBox.left; in GetBBox() 426 bbox.top = m_OutlineTM.otmrcFontBox.top; in GetBBox() 427 bbox.width = m_OutlineTM.otmrcFontBox.right - m_OutlineTM.otmrcFontBox.left; in GetBBox() 428 bbox.height = m_OutlineTM.otmrcFontBox.bottom - m_OutlineTM.otmrcFontBox.top; in GetBBox()
|
D | fx_gefont.cpp | 431 CFX_Rect& bbox, in GetCharBBox() argument 433 return GetCharBBox(wUnicode, bbox, TRUE, bCharCode); in GetCharBBox() 436 CFX_Rect& bbox, in GetCharBBox() argument 458 ->GetCharBBox(wUnicode, bbox, FALSE, bCharCode)) { in GetCharBBox() 466 bbox = *(FX_LPCRECT)pRect; in GetCharBBox() 469 FX_BOOL CFX_GEFont::GetBBox(CFX_Rect& bbox) { in GetBBox() argument 473 bbox.left = rt.left; in GetBBox() 474 bbox.width = rt.Width(); in GetBBox() 475 bbox.top = rt.bottom; in GetBBox() 476 bbox.height = -rt.Height(); in GetBBox()
|
D | fx_gefont.h | 40 CFX_Rect& bbox, 42 virtual FX_BOOL GetBBox(CFX_Rect& bbox); 77 CFX_Rect& bbox,
|
/external/pdfium/third_party/freetype/src/type1/ |
D | t1objs.c | 459 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/freetype/src/truetype/ |
D | ttgload.c | 143 loader->bbox.yMax, in tt_get_metrics() 330 loader->bbox.xMin = FT_NEXT_SHORT( p ); in TT_Load_Glyph_Header() 331 loader->bbox.yMin = FT_NEXT_SHORT( p ); in TT_Load_Glyph_Header() 332 loader->bbox.xMax = FT_NEXT_SHORT( p ); in TT_Load_Glyph_Header() 333 loader->bbox.yMax = FT_NEXT_SHORT( p ); in TT_Load_Glyph_Header() 336 FT_TRACE5(( " xMin: %4d xMax: %4d\n", loader->bbox.xMin, in TT_Load_Glyph_Header() 337 loader->bbox.xMax )); in TT_Load_Glyph_Header() 338 FT_TRACE5(( " yMin: %4d yMax: %4d\n", loader->bbox.yMin, in TT_Load_Glyph_Header() 339 loader->bbox.yMax )); in TT_Load_Glyph_Header() 1367 (loader)->pp1.x = (loader)->bbox.xMin - (loader)->left_bearing; \ [all …]
|
/external/pdfium/xfa/src/fdp/src/fde/ |
D | fde_geobject.cpp | 255 void CFDE_Path::GetBBox(CFX_RectF& bbox) const { in GetBBox() 257 bbox.Set(rect.left, rect.top, rect.Width(), rect.Height()); in GetBBox() 258 bbox.Normalize(); in GetBBox() 260 void CFDE_Path::GetBBox(CFX_RectF& bbox, in GetBBox() argument 264 bbox.Set(rect.left, rect.top, rect.Width(), rect.Height()); in GetBBox() 265 bbox.Normalize(); in GetBBox()
|
/external/pdfium/xfa/src/fdp/include/ |
D | fde_pth.h | 28 virtual void GetBBox(CFX_RectF& bbox) const = 0; 29 virtual void GetBBox(CFX_RectF& bbox,
|