/external/freetype/src/base/ |
H A D | ftbbox.c | 5 /* FreeType bbox computation (body). */ 40 FT_BBox bbox; member in struct:TBBox_Rec_ 45 #define FT_UPDATE_BBOX( p, bbox ) \ 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 443 FT_BBox bbox = { 0x7FFFFFFFL, 0x7FFFFFFFL, local [all...] |
/external/pdfium/third_party/freetype/src/base/ |
H A D | ftbbox.c | 5 /* FreeType bbox computation (body). */ 40 FT_BBox bbox; member in struct:TBBox_Rec_ 45 #define FT_UPDATE_BBOX( p, bbox ) \ 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 443 FT_BBox bbox = { 0x7FFFFFFFL, 0x7FFFFFFFL, local [all...] |
/external/skia/src/pdf/ |
H A D | SkPDFFormXObject.h | 45 SkRect bbox, 51 SkPDFDict* resourceDict, SkPDFArray* bbox);
|
H A D | SkPDFFormXObject.cpp | 47 SkPDFFormXObject::SkPDFFormXObject(SkStream* content, SkRect bbox, argument 51 SkAutoTUnref<SkPDFArray> bboxArray(SkPDFUtils::RectToArray(bbox)); 57 * Note that bbox is unreferenced here, so calling code does not need worry. 60 SkPDFDict* resourceDict, SkPDFArray* bbox) { 64 this->insertObject("BBox", SkRef(bbox)); 59 init(const char* colorSpace, SkPDFDict* resourceDict, SkPDFArray* bbox) argument
|
H A D | SkPDFShader.cpp | 25 static bool inverse_transform_bbox(const SkMatrix& matrix, SkRect* bbox) { argument 30 inverse.mapRect(bbox); 439 const SkIRect& bbox, SkScalar rasterScale); 541 SkRect& bbox, 552 pattern->insertObject("BBox", SkPDFUtils::RectToArray(bbox)); 553 pattern->insertScalar("XStep", bbox.width()); 554 pattern->insertScalar("YStep", bbox.height()); 581 * luminosity mode. The shader pattern extends to the bbox. 585 SkRect bbox; local 586 bbox 540 populate_tiling_pattern_dict(SkPDFDict* pattern, SkRect& bbox, SkPDFDict* resources, const SkMatrix& matrix) argument 611 SkRect bbox; local 768 SkRect bbox; local 1091 State(const SkShader& shader, const SkMatrix& canvasTransform, const SkIRect& bbox, SkScalar rasterScale) argument [all...] |
/external/opencv3/modules/flann/include/opencv2/flann/ |
H A D | kdtree_single_index.h | 314 void computeBoundingBox(BoundingBox& bbox) argument 316 bbox.resize(dim_); 318 bbox[i].low = (DistanceType)dataset_[0][i]; 319 bbox[i].high = (DistanceType)dataset_[0][i]; 323 if (dataset_[k][i]<bbox[i].low) bbox[i].low = (DistanceType)dataset_[k][i]; 324 if (dataset_[k][i]>bbox[i].high) bbox[i].high = (DistanceType)dataset_[k][i]; 339 NodePtr divideTree(int left, int right, BoundingBox& bbox) argument 351 bbox[ 400 middleSplit(int* ind, int count, int& index, int& cutfeat, DistanceType& cutval, const BoundingBox& bbox) argument 445 middleSplit_(int* ind, int count, int& index, int& cutfeat, DistanceType& cutval, const BoundingBox& bbox) argument [all...] |
/external/pdfium/core/src/fxge/ge/ |
H A D | fx_ge_font.cpp | 276 FX_BOOL CFX_Font::GetGlyphBBox(FX_DWORD glyph_index, FX_RECT& bbox) { argument 300 bbox.left = cbox.xMin; 301 bbox.right = cbox.xMax; 302 bbox.top = cbox.yMax; 303 bbox.bottom = cbox.yMin; 305 bbox.left = cbox.xMin * 1000 / pixel_size_x; 306 bbox.right = cbox.xMax * 1000 / pixel_size_x; 307 bbox.top = cbox.yMax * 1000 / pixel_size_y; 308 bbox.bottom = cbox.yMin * 1000 / pixel_size_y; 310 if (bbox 408 GetBBox(FX_RECT& bbox) argument [all...] |
/external/pdfium/xfa/src/fdp/include/ |
H A D | fde_pth.h | 28 virtual void GetBBox(CFX_RectF& bbox) const = 0;
29 virtual void GetBBox(CFX_RectF& bbox,
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_setup_point.c | 324 struct u_rect bbox; local 338 bbox.x0 = (x0 + (FIXED_ONE-1) + adj) >> FIXED_ORDER; 339 bbox.x1 = (x0 + fixed_width + (FIXED_ONE-1) + adj) >> FIXED_ORDER; 340 bbox.y0 = (y0 + (FIXED_ONE-1)) >> FIXED_ORDER; 341 bbox.y1 = (y0 + fixed_width + (FIXED_ONE-1)) >> FIXED_ORDER; 345 bbox.x1--; 346 bbox.y1--; 349 if (!u_rect_test_intersection(&setup->draw_region, &bbox)) { 355 u_rect_find_intersection(&setup->draw_region, &bbox); 391 plane[0].c = 1-bbox [all...] |
H A D | lp_setup_tri.c | 246 struct u_rect bbox; local 273 bbox.x0 = MIN3(position->x[0], position->x[1], position->x[2]) >> FIXED_ORDER; 274 bbox.x1 = (MAX3(position->x[0], position->x[1], position->x[2]) - 1) >> FIXED_ORDER; 277 bbox.y0 = (MIN3(position->y[0], position->y[1], position->y[2]) + adj) >> FIXED_ORDER; 278 bbox.y1 = (MAX3(position->y[0], position->y[1], position->y[2]) - 1 + adj) >> FIXED_ORDER; 281 if (bbox.x1 < bbox.x0 || 282 bbox.y1 < bbox.y0) { 288 if (!u_rect_test_intersection(&setup->draw_region, &bbox)) { 559 lp_setup_bin_triangle( struct lp_setup_context *setup, struct lp_rast_triangle *tri, const struct u_rect *bbox, int nr_planes ) argument [all...] |
H A D | lp_setup_line.c | 286 struct u_rect bbox; local 548 bbox.x0 = (MIN4(x[0], x[1], x[2], x[3]) + (FIXED_ONE-1)) >> FIXED_ORDER; 549 bbox.x1 = (MAX4(x[0], x[1], x[2], x[3]) + (FIXED_ONE-1)) >> FIXED_ORDER; 550 bbox.y0 = (MIN4(y[0], y[1], y[2], y[3]) + (FIXED_ONE-1) + adj) >> FIXED_ORDER; 551 bbox.y1 = (MAX4(y[0], y[1], y[2], y[3]) + (FIXED_ONE-1) + adj) >> FIXED_ORDER; 555 bbox.x1--; 556 bbox.y1--; 559 if (bbox.x1 < bbox.x0 || 560 bbox [all...] |
/external/freetype/src/autofit/ |
H A D | afloader.c | 238 FT_BBox bbox; local 259 FT_Outline_Get_CBox( &gloader->base.outline, &bbox ); 261 bbox.xMin = FT_PIX_FLOOR( bbox.xMin ); 262 bbox.yMin = FT_PIX_FLOOR( bbox.yMin ); 263 bbox.xMax = FT_PIX_CEIL( bbox.xMax ); 264 bbox.yMax = FT_PIX_CEIL( bbox [all...] |
/external/mesa3d/src/gallium/winsys/svga/drm/ |
H A D | vmw_screen_dri.c | 125 const struct drm_clip_rect *bbox) 130 xy1 = ((int)src->x1 > (int)bbox->x1 + dst_x) ? src->x1 : 131 (int)bbox->x1 + dst_x; 132 xy2 = ((int)src->x2 < (int)bbox->x2 + dst_x) ? src->x2 : 133 (int)bbox->x2 + dst_x; 140 xy1 = ((int)src->y1 > (int)bbox->y1 + dst_y) ? src->y1 : 141 (int)bbox->y1 + dst_y; 142 xy2 = ((int)src->y2 < (int)bbox->y2 + dst_y) ? src->y2 : 143 (int)bbox->y2 + dst_y; 121 vmw_dri1_intersect_src_bbox(struct drm_clip_rect *dst, int dst_x, int dst_y, const struct drm_clip_rect *src, const struct drm_clip_rect *bbox) argument
|
/external/pdfium/xfa/src/fgas/src/font/ |
H A D | fx_gefont.h | 40 CFX_Rect& bbox,
42 virtual FX_BOOL GetBBox(CFX_Rect& bbox);
77 CFX_Rect& bbox,
|
H A D | fx_gdifont.cpp | 400 CFX_Rect& bbox,
416 bbox.left = gm.gmptGlyphOrigin.x;
417 bbox.top = gm.gmptGlyphOrigin.y;
418 bbox.width = gm.gmBlackBoxX;
419 bbox.height = gm.gmBlackBoxY;
424 FX_BOOL CFX_GdiFont::GetBBox(CFX_Rect& bbox) {
argument 425 bbox.left = m_OutlineTM.otmrcFontBox.left;
426 bbox.top = m_OutlineTM.otmrcFontBox.top;
427 bbox.width = m_OutlineTM.otmrcFontBox.right - m_OutlineTM.otmrcFontBox.left;
428 bbox 399 GetCharBBox(FX_WCHAR wUnicode, CFX_Rect& bbox, FX_BOOL bCharCode) argument [all...] |
H A D | fx_gefont.cpp | 431 CFX_Rect& bbox,
433 return GetCharBBox(wUnicode, bbox, TRUE, bCharCode);
436 CFX_Rect& bbox,
458 ->GetCharBBox(wUnicode, bbox, FALSE, bCharCode)) {
466 bbox = *(FX_LPCRECT)pRect;
469 FX_BOOL CFX_GEFont::GetBBox(CFX_Rect& bbox) {
argument 473 bbox.left = rt.left;
474 bbox.width = rt.Width();
475 bbox.top = rt.bottom;
476 bbox 430 GetCharBBox(FX_WCHAR wUnicode, CFX_Rect& bbox, FX_BOOL bCharCode) argument 435 GetCharBBox(FX_WCHAR wUnicode, CFX_Rect& bbox, FX_BOOL bRecursive, FX_BOOL bCharCode) argument [all...] |
H A D | fx_gdifont.h | 55 CFX_Rect& bbox,
57 virtual FX_BOOL GetBBox(CFX_Rect& bbox);
|
/external/skia/src/ports/ |
H A 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) { argument 432 FT_Outline_Get_CBox(&face->glyph->outline, bbox); 539 FT_BBox bbox; 540 if (GetLetterCBox(face, stem_chars[i], &bbox)) { 541 int16_t width = bbox.xMax - bbox.xMin; 582 info->fBBox = SkIRect::MakeLTRB(face->bbox.xMin, face->bbox 1040 getBBoxForCurrentGlyph(SkGlyph* glyph, FT_BBox* bbox, bool snapToPixelBoundary) argument 1079 getCBoxForLetter(char letter, FT_BBox* bbox) argument 1143 FT_BBox bbox; local 1351 FT_BBox bbox; local 1357 FT_BBox bbox; local [all...] |
H A D | SkScalerContext_win_dw.cpp | 398 RECT* bbox) 438 HRM(glyphRunAnalysis->GetAlphaTextureBounds(textureType, bbox), 449 static bool glyph_check_and_set_bounds(SkGlyph* glyph, const RECT& bbox) { argument 450 if (bbox.left >= bbox.right || bbox.top >= bbox.bottom) { 453 glyph->fWidth = SkToU16(bbox.right - bbox.left); 454 glyph->fHeight = SkToU16(bbox 395 getBoundingBox(SkGlyph* glyph, DWRITE_RENDERING_MODE renderingMode, DWRITE_TEXTURE_TYPE textureType, RECT* bbox) argument 468 RECT bbox; local 695 RECT bbox; local [all...] |
H A D | SkScalerContext_win_dw.h | 43 RECT* bbox);
|
/external/pdfium/xfa/src/fdp/src/fde/ |
H A D | fde_geobject.h | 30 virtual void GetBBox(CFX_RectF& bbox) const;
31 virtual void GetBBox(CFX_RectF& bbox,
|
H A D | fde_geobject.cpp | 255 void CFDE_Path::GetBBox(CFX_RectF& bbox) const {
257 bbox.Set(rect.left, rect.top, rect.Width(), rect.Height());
258 bbox.Normalize();
260 void CFDE_Path::GetBBox(CFX_RectF& bbox,
argument 264 bbox.Set(rect.left, rect.top, rect.Width(), rect.Height());
265 bbox.Normalize();
|
/external/deqp/modules/gles31/functional/ |
H A D | es31fPrimitiveBoundingBoxTests.cpp | 93 static ProjectedBBox projectBoundingBox (const BoundingBox& bbox) argument 95 const float wMin = de::max(0.0f, bbox.min.w()); // clamp to w=0 as extension requires 96 const float wMax = de::max(0.0f, bbox.max.w()); 99 retVal.min = tcu::min(bbox.min.swizzle(0, 1, 2) / wMin, 100 bbox.min.swizzle(0, 1, 2) / wMax); 101 retVal.max = tcu::max(bbox.max.swizzle(0, 1, 2) / wMin, 102 bbox.max.swizzle(0, 1, 2) / wMax); 106 static tcu::IVec4 getViewportBoundingBoxArea (const ProjectedBBox& bbox, const tcu::IVec2& viewportSize, float size = 0.0f) argument 111 vertexBox.x() = (bbox.min.x() * 0.5f + 0.5f) * (float)viewportSize.x(); 112 vertexBox.y() = (bbox [all...] |
/external/pdfium/third_party/freetype/src/cid/ |
H A D | cidobjs.c | 426 cidface->bbox.xMin = cid->font_bbox.xMin >> 16; 427 cidface->bbox.yMin = cid->font_bbox.yMin >> 16; 429 cidface->bbox.xMax = ( cid->font_bbox.xMax + 0xFFFF ) >> 16; 430 cidface->bbox.yMax = ( cid->font_bbox.yMax + 0xFFFF ) >> 16; 435 cidface->ascender = (FT_Short)( cidface->bbox.yMax ); 436 cidface->descender = (FT_Short)( cidface->bbox.yMin );
|
/external/pdfium/third_party/freetype/src/type1/ |
H A D | t1objs.c | 459 root->bbox.xMin = type1->font_bbox.xMin >> 16; 460 root->bbox.yMin = type1->font_bbox.yMin >> 16; 462 root->bbox.xMax = ( type1->font_bbox.xMax + 0xFFFF ) >> 16; 463 root->bbox.yMax = ( type1->font_bbox.yMax + 0xFFFF ) >> 16; 469 root->ascender = (FT_Short)( root->bbox.yMax ); 470 root->descender = (FT_Short)( root->bbox.yMin ); 478 (FT_Short)( root->bbox.xMax );
|