Home
last modified time | relevance | path

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

12

/external/skia/src/core/
DSkBBoxRecord.cpp45 SkRect bbox; in drawPoints() local
46 bbox.set(pts, count); in drawPoints()
58 bbox.outset(halfStrokeWidth, halfStrokeWidth); in drawPoints()
59 if (this->transformBounds(bbox, &paint)) { in drawPoints()
65 SkRect bbox; in drawPaint() local
66 if (this->getClipBounds(&bbox)) { in drawPaint()
67 if (this->transformBounds(bbox, &paint)) { in drawPaint()
75 SkRect bbox = {0, 0, SkIntToScalar(size.width()), SkIntToScalar(size.height())}; in clear() local
76 this->handleBBox(bbox); in clear()
82 SkRect bbox; in drawText() local
[all …]
/external/freetype/src/base/
Dftbbox.c38 FT_BBox bbox; member
73 #define CHECK_X( p, bbox ) \ argument
74 ( p->x < bbox.xMin || p->x > bbox.xMax )
76 #define CHECK_Y( p, bbox ) \ argument
77 ( p->y < bbox.yMin || p->y > bbox.yMax )
170 if ( CHECK_X( control, user->bbox ) ) in BBox_Conic_To()
174 &user->bbox.xMin, in BBox_Conic_To()
175 &user->bbox.xMax ); in BBox_Conic_To()
177 if ( CHECK_Y( control, user->bbox ) ) in BBox_Conic_To()
181 &user->bbox.yMin, in BBox_Conic_To()
[all …]
/external/jmonkeyengine/engine/src/tools/jme3tools/optimize/
DOctnode.java64 final BoundingBox bbox; field in Octnode
71 public Octnode(BoundingBox bbox, ArrayList<OCTTriangle> tris){ in Octnode() argument
72 this.bbox = bbox; in Octnode()
77 float extent = bbox.getXExtent() * 0.5f; in getChildBound()
78 Vector3f center = new Vector3f(bbox.getCenter().x + extent * extentMult[side].x, in getChildBound()
79 bbox.getCenter().y + extent * extentMult[side].y, in getChildBound()
80 bbox.getCenter().z + extent * extentMult[side].z); in getChildBound()
84 private float getAdditionCost(BoundingBox bbox, OCTTriangle t){ in getAdditionCost() argument
85 if (bbox.intersects(t.get1(), t.get2(), t.get3())){ in getAdditionCost()
86 float d1 = bbox.distanceToEdge(t.get1()); in getAdditionCost()
[all …]
DOctree.java57 private final BoundingBox bbox; field in Octree
87 bbox = new BoundingBox(); in Octree()
90 bbox.mergeLocal(bv); in Octree()
94 float extent = Math.max(bbox.getXExtent(), Math.max(bbox.getYExtent(), bbox.getZExtent())); in Octree()
95 bbox.setXExtent(extent); in Octree()
96 bbox.setYExtent(extent); in Octree()
97 bbox.setZExtent(extent); in Octree()
121 root = new Octnode(bbox, allTris); in construct()
131 return bbox; in getBound()
152 bbox.collideWith(r, boundResults); in intersect()
DFastOctnode.java90 private static void findChildBound(BoundingBox bbox, int side){ in findChildBound() argument
91 float extent = bbox.getXExtent() * 0.5f; in findChildBound()
92 bbox.getCenter().set(bbox.getCenter().x + extent * Octnode.extentMult[side].x, in findChildBound()
93 bbox.getCenter().y + extent * Octnode.extentMult[side].y, in findChildBound()
94 bbox.getCenter().z + extent * Octnode.extentMult[side].z); in findChildBound()
95 bbox.setXExtent(extent); in findChildBound()
96 bbox.setYExtent(extent); in findChildBound()
97 bbox.setZExtent(extent); in findChildBound()
/external/skia/src/ports/
DSkFontHost_FreeType.cpp193 void getBBoxForCurrentGlyph(SkGlyph* glyph, FT_BBox* bbox,
381 static bool GetLetterCBox(FT_Face face, char letter, FT_BBox* bbox) { in GetLetterCBox() argument
386 FT_Outline_Get_CBox(&face->glyph->outline, bbox); in GetLetterCBox()
527 FT_BBox bbox; in GetAdvancedTypefaceMetrics()
528 if (GetLetterCBox(face, stem_chars[i], &bbox)) { in GetAdvancedTypefaceMetrics()
529 int16_t width = bbox.xMax - bbox.xMin; in GetAdvancedTypefaceMetrics()
565 info->fBBox = SkIRect::MakeLTRB(face->bbox.xMin, face->bbox.yMax, in GetAdvancedTypefaceMetrics()
566 face->bbox.xMax, face->bbox.yMin); in GetAdvancedTypefaceMetrics()
987 FT_BBox* bbox, in getBBoxForCurrentGlyph() argument
990 FT_Outline_Get_CBox(&fFace->glyph->outline, bbox); in getBBoxForCurrentGlyph()
[all …]
DSkFontHost_win_dw.cpp169 RECT bbox; in draw() local
170 bbox.left = glyph.fLeft; in draw()
171 bbox.top = glyph.fTop; in draw()
172 bbox.right = glyph.fLeft + glyph.fWidth; in draw()
173 bbox.bottom = glyph.fTop + glyph.fHeight; in draw()
175 &bbox, in draw()
831 RECT bbox;
832 HRVM(glyphRunAnalysis->GetAlphaTextureBounds(textureType, &bbox),
835 glyph->fWidth = SkToU16(bbox.right - bbox.left);
836 glyph->fHeight = SkToU16(bbox.bottom - bbox.top);
[all …]
DSkFontHost_FreeType_common.cpp140 FT_BBox bbox; in generateGlyphImage() local
154 FT_Outline_Get_CBox(outline, &bbox); in generateGlyphImage()
163 FT_Outline_Translate(outline, dx - ((bbox.xMin + dx) & ~63), in generateGlyphImage()
164 dy - ((bbox.yMin + dy) & ~63)); in generateGlyphImage()
/external/skia/legacy/src/ports/
DSkFontHost_FreeType.cpp181 void getBBoxForCurrentGlyph(SkGlyph* glyph, FT_BBox* bbox,
367 static bool GetLetterCBox(FT_Face face, char letter, FT_BBox* bbox) { in GetLetterCBox() argument
372 FT_Outline_Get_CBox(&face->glyph->outline, bbox); in GetLetterCBox()
513 FT_BBox bbox; in GetAdvancedTypefaceMetrics()
514 if (GetLetterCBox(face, stem_chars[i], &bbox)) { in GetAdvancedTypefaceMetrics()
515 int16_t width = bbox.xMax - bbox.xMin; in GetAdvancedTypefaceMetrics()
551 info->fBBox = SkIRect::MakeLTRB(face->bbox.xMin, face->bbox.yMax, in GetAdvancedTypefaceMetrics()
552 face->bbox.xMax, face->bbox.yMin); in GetAdvancedTypefaceMetrics()
991 FT_BBox* bbox, in getBBoxForCurrentGlyph() argument
994 FT_Outline_Get_CBox(&fFace->glyph->outline, bbox); in getBBoxForCurrentGlyph()
[all …]
/external/freetype/src/autofit/
Dafloader.c390 FT_BBox bbox; in af_loader_load_g() local
411 FT_Outline_Get_CBox( &gloader->base.outline, &bbox ); in af_loader_load_g()
413 bbox.xMin = FT_PIX_FLOOR( bbox.xMin ); in af_loader_load_g()
414 bbox.yMin = FT_PIX_FLOOR( bbox.yMin ); in af_loader_load_g()
415 bbox.xMax = FT_PIX_CEIL( bbox.xMax ); in af_loader_load_g()
416 bbox.yMax = FT_PIX_CEIL( bbox.yMax ); in af_loader_load_g()
418 slot->metrics.width = bbox.xMax - bbox.xMin; in af_loader_load_g()
419 slot->metrics.height = bbox.yMax - bbox.yMin; in af_loader_load_g()
420 slot->metrics.horiBearingX = bbox.xMin; in af_loader_load_g()
421 slot->metrics.horiBearingY = bbox.yMax; in af_loader_load_g()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/collision/bih/
DBIHTree.java158 BoundingBox bbox = new BoundingBox(min, max); in createBox() local
160 return bbox; in createBox()
193 private void setMinMax(BoundingBox bbox, boolean doMin, int axis, float value) { in setMinMax() argument
194 Vector3f min = bbox.getMin(null); in setMinMax()
195 Vector3f max = bbox.getMax(null); in setMinMax()
203 bbox.setMinMax(min, max); in setMinMax()
206 private float getMinMax(BoundingBox bbox, boolean doMin, int axis) { in getMinMax() argument
208 return bbox.getMin(null).get(axis); in getMinMax()
210 return bbox.getMax(null).get(axis); in getMinMax()
433 BoundingBox bbox; in collideWithBoundingVolume() local
[all …]
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/
DTerrainPatch.java813 … BoundingBox bbox = new BoundingBox(boundingVolume.getCenter().clone(), sphere.getRadius(), in collideWithBoundingVolume() local
816 return collideWithBoundingBox(bbox, results); in collideWithBoundingVolume()
832 private int collideWithBoundingBox(BoundingBox bbox, CollisionResults results) { in collideWithBoundingBox() argument
835 …pLeft = worldCoordinateToLocal(new Vector3f(bbox.getCenter().x-bbox.getXExtent(), 0, bbox.getCente… in collideWithBoundingBox()
836 …Right = worldCoordinateToLocal(new Vector3f(bbox.getCenter().x+bbox.getXExtent(), 0, bbox.getCente… in collideWithBoundingBox()
837 …mLeft = worldCoordinateToLocal(new Vector3f(bbox.getCenter().x-bbox.getXExtent(), 0, bbox.getCente… in collideWithBoundingBox()
838 …Right = worldCoordinateToLocal(new Vector3f(bbox.getCenter().x+bbox.getXExtent(), 0, bbox.getCente… in collideWithBoundingBox()
841 if (t != null && bbox.collideWith(t, results) > 0) in collideWithBoundingBox()
844 if (t != null && bbox.collideWith(t, results) > 0) in collideWithBoundingBox()
847 if (t != null && bbox.collideWith(t, results) > 0) in collideWithBoundingBox()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/scene/debug/
DWireBox.java104 public void fromBoundingBox(BoundingBox bbox){ in fromBoundingBox() argument
105 updatePositions(bbox.getXExtent(), bbox.getYExtent(), bbox.getZExtent()); in fromBoundingBox()
/external/jmonkeyengine/engine/src/test/jme3test/bounding/
DTestRayCollision.java47 BoundingBox bbox = new BoundingBox(new Vector3f(5, 0, 0), 1, 1, 1); in main() local
50 bbox.collideWith(r, res); in main()
52 System.out.println("Bounding:" +bbox); in main()
/external/freetype/src/truetype/
Dttgload.c315 loader->bbox.xMin = FT_NEXT_SHORT( p ); in TT_Load_Glyph_Header()
316 loader->bbox.yMin = FT_NEXT_SHORT( p ); in TT_Load_Glyph_Header()
317 loader->bbox.xMax = FT_NEXT_SHORT( p ); in TT_Load_Glyph_Header()
318 loader->bbox.yMax = FT_NEXT_SHORT( p ); in TT_Load_Glyph_Header()
321 FT_TRACE5(( " xMin: %4d xMax: %4d\n", loader->bbox.xMin, in TT_Load_Glyph_Header()
322 loader->bbox.xMax )); in TT_Load_Glyph_Header()
323 FT_TRACE5(( " yMin: %4d yMax: %4d\n", loader->bbox.yMin, in TT_Load_Glyph_Header()
324 loader->bbox.yMax )); in TT_Load_Glyph_Header()
1190 (loader)->pp1.x = (loader)->bbox.xMin - (loader)->left_bearing; \
1195 (loader)->pp3.y = (loader)->top_bearing + (loader)->bbox.yMax; \
[all …]
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/lodcalc/util/
DEntropyComputeUtil.java27 BoundingBox bbox = (BoundingBox) terrainBlock.getBound(); in computeLodEntropy() local
55 pos.addLocal(0, bbox.getYExtent(), 0); in computeLodEntropy()
59 terrainBlock.collideWith(ray, Matrix4f.IDENTITY, bbox, results); in computeLodEntropy()
/external/jmonkeyengine/engine/src/core/com/jme3/shadow/
DShadowUtil.java174 BoundingBox bbox = new BoundingBox(); in computeUnionBound() local
180 bbox.mergeLocal(newVol); in computeUnionBound()
183 return bbox; in computeUnionBound()
193 BoundingBox bbox = new BoundingBox(); in computeUnionBound() local
200 bbox.mergeLocal(store); in computeUnionBound()
203 return bbox; in computeUnionBound()
212 BoundingBox bbox = new BoundingBox(); in computeUnionBound() local
215 bbox.mergeLocal(vol); in computeUnionBound()
217 return bbox; in computeUnionBound()
/external/jmonkeyengine/engine/src/tools/jme3tools/converters/model/
DFloatToFixed.java59 BoundingBox bbox = (BoundingBox) geom.getModelBound(); in convertToFixed() local
72 Transform t = convertPositions(fb, bbox, newBuf); in convertToFixed()
284 private static Transform convertPositions(FloatBuffer input, BoundingBox bbox, Buffer output){ in convertPositions() argument
288 Vector3f offset = bbox.getCenter().negate(); in convertPositions()
289 Vector3f size = new Vector3f(bbox.getXExtent(), bbox.getYExtent(), bbox.getZExtent()); in convertPositions()
/external/skia/src/pdf/
DSkPDFShader.cpp24 static bool transformBBox(const SkMatrix& matrix, SkRect* bbox) { in transformBBox() argument
29 inverse.mapRect(bbox); in transformBBox()
412 const SkIRect& bbox);
609 SkRect bbox; in SkPDFFunctionShader() local
610 bbox.set(fState.get()->fBBox); in SkPDFFunctionShader()
611 if (!transformBBox(finalMatrix, &bbox)) { in SkPDFFunctionShader()
617 domain->appendScalar(bbox.fLeft); in SkPDFFunctionShader()
618 domain->appendScalar(bbox.fRight); in SkPDFFunctionShader()
619 domain->appendScalar(bbox.fTop); in SkPDFFunctionShader()
620 domain->appendScalar(bbox.fBottom); in SkPDFFunctionShader()
[all …]
DSkPDFFont.cpp280 SkPDFArray* bbox = new SkPDFArray; in makeFontBBox() local
281 bbox->reserve(4); in makeFontBBox()
282 bbox->appendScalar(scaleFromFontUnits(glyphBBox.fLeft, emSize)); in makeFontBBox()
283 bbox->appendScalar(scaleFromFontUnits(glyphBBox.fBottom, emSize)); in makeFontBBox()
284 bbox->appendScalar(scaleFromFontUnits(glyphBBox.fRight, emSize)); in makeFontBBox()
285 bbox->appendScalar(scaleFromFontUnits(glyphBBox.fTop, emSize)); in makeFontBBox()
286 return bbox; in makeFontBBox()
1372 SkIRect bbox = SkIRect::MakeEmpty(); in populate() local
1382 bbox.join(glyphBBox); in populate()
1403 insert("FontBBox", makeFontBBox(bbox, 1000))->unref(); in populate()
/external/freetype/src/cff/
Dcffparse.c521 FT_BBox* bbox = &dict->font_bbox; in cff_parse_font_bbox() local
530 bbox->xMin = FT_RoundFix( cff_parse_fixed( data++ ) ); in cff_parse_font_bbox()
531 bbox->yMin = FT_RoundFix( cff_parse_fixed( data++ ) ); in cff_parse_font_bbox()
532 bbox->xMax = FT_RoundFix( cff_parse_fixed( data++ ) ); in cff_parse_font_bbox()
533 bbox->yMax = FT_RoundFix( cff_parse_fixed( data ) ); in cff_parse_font_bbox()
537 bbox->xMin / 65536, in cff_parse_font_bbox()
538 bbox->yMin / 65536, in cff_parse_font_bbox()
539 bbox->xMax / 65536, in cff_parse_font_bbox()
540 bbox->yMax / 65536 )); in cff_parse_font_bbox()
Dcffobjs.c752 cffface->bbox.xMin = dict->font_bbox.xMin >> 16; in cff_face_init()
753 cffface->bbox.yMin = dict->font_bbox.yMin >> 16; in cff_face_init()
755 cffface->bbox.xMax = ( dict->font_bbox.xMax + 0xFFFF ) >> 16; in cff_face_init()
756 cffface->bbox.yMax = ( dict->font_bbox.yMax + 0xFFFF ) >> 16; in cff_face_init()
760 cffface->ascender = (FT_Short)( cffface->bbox.yMax ); in cff_face_init()
761 cffface->descender = (FT_Short)( cffface->bbox.yMin ); in cff_face_init()
/external/jmonkeyengine/engine/src/core/com/jme3/bounding/
DIntersection.java81 public static boolean intersect(BoundingBox bbox, Vector3f v1, Vector3f v2, Vector3f v3) { in intersect() argument
101 Vector3f center = bbox.getCenter(); in intersect()
102 Vector3f extent = bbox.getExtent(null); in intersect()
273 if (bbox.whichSide(p) == Plane.Side.Negative) { in intersect()
/external/jmonkeyengine/engine/src/core/com/jme3/effect/
DParticleEmitter.java874 BoundingBox bbox = (BoundingBox) this.getMesh().getBound(); in emitAllParticles() local
879 bbox.getMin(min); in emitAllParticles()
880 bbox.getMax(max); in emitAllParticles()
891 bbox.setMinMax(min, max); in emitAllParticles()
1019 BoundingBox bbox = (BoundingBox) this.getMesh().getBound(); in updateParticleState() local
1020 bbox.setMinMax(min, max); in updateParticleState()
/external/freetype/src/pfr/
Dpfrload.c743 phy_font->bbox.xMin = PFR_NEXT_SHORT( p ); in pfr_phy_font_load()
744 phy_font->bbox.yMin = PFR_NEXT_SHORT( p ); in pfr_phy_font_load()
745 phy_font->bbox.xMax = PFR_NEXT_SHORT( p ); in pfr_phy_font_load()
746 phy_font->bbox.yMax = PFR_NEXT_SHORT( p ); in pfr_phy_font_load()

12