/external/mesa3d/src/mesa/drivers/dri/i965/ |
gen6_scissor_state.c | 62 int bbox[4]; local 64 bbox[0] = MAX2(ctx->ViewportArray[i].X, 0); 65 bbox[1] = MIN2(bbox[0] + ctx->ViewportArray[i].Width, fb_width); 66 bbox[2] = MAX2(ctx->ViewportArray[i].Y, 0); 67 bbox[3] = MIN2(bbox[2] + ctx->ViewportArray[i].Height, fb_height); 68 _mesa_intersect_scissor_bounding_box(ctx, i, bbox); 70 if (bbox[0] == bbox[1] || bbox[2] == bbox[3]) [all...] |
/external/freetype/src/base/ |
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.yMax ) 446 FT_BBox bbox = { 0x7FFFFFFFL, 0x7FFFFFFFL, local [all...] |
/external/pdfium/third_party/freetype/src/base/ |
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.yMax ) 443 FT_BBox bbox = { 0x7FFFFFFFL, 0x7FFFFFFFL, local [all...] |
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_setup_point.c | 346 struct u_rect bbox; local 380 bbox.x0 = (x0 + (FIXED_ONE-1)) >> FIXED_ORDER; 381 bbox.x1 = (x0 + fixed_width + (FIXED_ONE-1)) >> FIXED_ORDER; 382 bbox.y0 = (y0 + (FIXED_ONE-1) + adj) >> FIXED_ORDER; 383 bbox.y1 = (y0 + fixed_width + (FIXED_ONE-1) + adj) >> FIXED_ORDER; 387 bbox.x1--; 388 bbox.y1--; 413 bbox.x0 = x0 >> FIXED_ORDER; 414 bbox.y0 = y0 >> FIXED_ORDER; 415 bbox.x1 = bbox.x0 [all...] |
lp_setup_context.h | 172 scissor_planes_needed(boolean scis_planes[4], const struct u_rect *bbox, 176 scis_planes[0] = (bbox->x0 < scissor->x0); 178 scis_planes[1] = (bbox->x1 > scissor->x1); 180 scis_planes[2] = (bbox->y0 < scissor->y0); 182 scis_planes[3] = (bbox->y1 > scissor->y1); 220 const struct u_rect *bbox,
|
lp_setup_tri.c | 279 struct u_rect bbox; local 317 bbox.x0 = MIN3(position->x[0], position->x[1], position->x[2]) >> FIXED_ORDER; 318 bbox.x1 = (MAX3(position->x[0], position->x[1], position->x[2]) - 1) >> FIXED_ORDER; 321 bbox.y0 = (MIN3(position->y[0], position->y[1], position->y[2]) + adj) >> FIXED_ORDER; 322 bbox.y1 = (MAX3(position->y[0], position->y[1], position->y[2]) - 1 + adj) >> FIXED_ORDER; 325 if (bbox.x1 < bbox.x0 || 326 bbox.y1 < bbox.y0) { 332 if (!u_rect_test_intersection(&setup->draw_regions[viewport_index], &bbox)) { [all...] |
lp_setup_line.c | 291 struct u_rect bbox; local 558 bbox.x0 = (MIN4(x[0], x[1], x[2], x[3]) + (FIXED_ONE-1)) >> FIXED_ORDER; 559 bbox.x1 = (MAX4(x[0], x[1], x[2], x[3]) + (FIXED_ONE-1)) >> FIXED_ORDER; 560 bbox.y0 = (MIN4(y[0], y[1], y[2], y[3]) + (FIXED_ONE-1) + adj) >> FIXED_ORDER; 561 bbox.y1 = (MAX4(y[0], y[1], y[2], y[3]) + (FIXED_ONE-1) + adj) >> FIXED_ORDER; 565 bbox.x1--; 566 bbox.y1--; 569 if (bbox.x1 < bbox.x0 || 570 bbox.y1 < bbox.y0) [all...] |
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/ |
binner.cpp | 80 /// @param bbox: fixed point bbox 84 INLINE void calcBoundingBoxIntVertical(const simdvector * const tri, simdscalari(&vX)[3], simdscalari(&vY)[3], simdBBox &bbox) 102 bbox.xmin = vMinX; 103 bbox.xmax = vMaxX; 104 bbox.ymin = vMinY; 105 bbox.ymax = vMaxY; 110 /// Offsets BBox for conservative rast 112 INLINE void calcBoundingBoxIntVertical<FEConservativeRastT>(const simdvector * const tri, simdscalari(&vX)[3], simdscalari(&vY)[3], simdBBox &bbox) 134 /// expand bbox by 1/256; coverage will be correctly handled in the rasterizer 657 simdBBox bbox; local 1069 simdBBox bbox; local 1279 simdBBox bbox; local [all...] |
/prebuilts/go/darwin-x86/test/fixedbugs/ |
bug281.go | 24 bbox Rect 27 func (o *Obj) Bbox() Rect { 28 return o.bbox 32 return [2]Point{o.bbox.Min, o.bbox.Max} 40 q := p.Sub(o.Bbox().Min)
|
/prebuilts/go/linux-x86/test/fixedbugs/ |
bug281.go | 24 bbox Rect 27 func (o *Obj) Bbox() Rect { 28 return o.bbox 32 return [2]Point{o.bbox.Min, o.bbox.Max} 40 q := p.Sub(o.Bbox().Min)
|
/external/mesa3d/src/mesa/main/ |
framebuffer.c | 365 * \param bbox Bounding box for the scissored viewport. Stored as xmin, 370 unsigned idx, int *bbox) 373 if (ctx->Scissor.ScissorArray[idx].X > bbox[0]) { 374 bbox[0] = ctx->Scissor.ScissorArray[idx].X; 376 if (ctx->Scissor.ScissorArray[idx].Y > bbox[2]) { 377 bbox[2] = ctx->Scissor.ScissorArray[idx].Y; 379 if (ctx->Scissor.ScissorArray[idx].X + ctx->Scissor.ScissorArray[idx].Width < bbox[1]) { 380 bbox[1] = ctx->Scissor.ScissorArray[idx].X + ctx->Scissor.ScissorArray[idx].Width; 382 if (ctx->Scissor.ScissorArray[idx].Y + ctx->Scissor.ScissorArray[idx].Height < bbox[3]) { 383 bbox[3] = ctx->Scissor.ScissorArray[idx].Y + ctx->Scissor.ScissorArray[idx].Height 435 int bbox[4]; local [all...] |
/external/pdfium/core/fxge/ge/ |
cfx_font.cpp | 385 bool CFX_Font::GetGlyphBBox(uint32_t glyph_index, FX_RECT& bbox) { 406 bbox.left = cbox.xMin; 407 bbox.right = cbox.xMax; 408 bbox.top = cbox.yMax; 409 bbox.bottom = cbox.yMin; 411 bbox.left = cbox.xMin * 1000 / pixel_size_x; 412 bbox.right = cbox.xMax * 1000 / pixel_size_x; 413 bbox.top = cbox.yMax * 1000 / pixel_size_y; 414 bbox.bottom = cbox.yMin * 1000 / pixel_size_y; 416 if (bbox.top > FXFT_Get_Face_Ascender(m_Face) [all...] |
/external/pdfium/fpdfsdk/ |
fpdfedittext.cpp | 107 FX_RECT bbox; local 108 pFont->GetBBox(bbox); 110 pBBox->AddNew<CPDF_Number>(bbox.left); 111 pBBox->AddNew<CPDF_Number>(bbox.bottom); 112 pBBox->AddNew<CPDF_Number>(bbox.right); 113 pBBox->AddNew<CPDF_Number>(bbox.top);
|
/external/pdfium/core/fpdfapi/page/ |
cpdf_tilingpattern.h | 33 const CFX_FloatRect& bbox() const { return m_BBox; } function in class:CPDF_TilingPattern
|
/external/freetype/src/autofit/ |
afloader.c | 467 FT_BBox bbox; local 488 FT_Outline_Get_CBox( &gloader->base.outline, &bbox ); 490 bbox.xMin = FT_PIX_FLOOR( bbox.xMin ); 491 bbox.yMin = FT_PIX_FLOOR( bbox.yMin ); 492 bbox.xMax = FT_PIX_CEIL( bbox.xMax ); 493 bbox.yMax = FT_PIX_CEIL( bbox.yMax ) [all...] |
/external/mesa3d/src/gallium/winsys/svga/drm/ |
vmw_screen_dri.c | 134 const struct drm_clip_rect *bbox) 139 xy1 = ((int)src->x1 > (int)bbox->x1 + dst_x) ? src->x1 : 140 (int)bbox->x1 + dst_x; 141 xy2 = ((int)src->x2 < (int)bbox->x2 + dst_x) ? src->x2 : 142 (int)bbox->x2 + dst_x; 149 xy1 = ((int)src->y1 > (int)bbox->y1 + dst_y) ? src->y1 : 150 (int)bbox->y1 + dst_y; 151 xy2 = ((int)src->y2 < (int)bbox->y2 + dst_y) ? src->y2 : 152 (int)bbox->y2 + dst_y;
|
/external/pdfium/xfa/fgas/font/ |
cfgas_gefont.cpp | 307 CFX_Rect* bbox, 309 return GetCharBBoxInternal(wUnicode, bbox, true, bCharCode); 313 CFX_Rect* bbox, 318 *bbox = it->second; 328 return pFont->GetCharBBoxInternal(wUnicode, bbox, false, bCharCode); 336 *bbox = rt; 340 bool CFGAS_GEFont::GetBBox(CFX_Rect* bbox) { 345 bbox->left = rt.left; 346 bbox->width = rt.Width(); 347 bbox->top = rt.bottom [all...] |
cfgas_gefont.h | 58 bool GetCharBBox(FX_WCHAR wUnicode, CFX_Rect* bbox, bool bCharCode = false); 59 bool GetBBox(CFX_Rect* bbox); 87 CFX_Rect* bbox,
|
/external/skia/src/ports/ |
SkScalerContext_win_dw.cpp | 436 RECT* bbox) 493 HRM(glyphRunAnalysis->GetAlphaTextureBounds(textureType, bbox), 504 static bool glyph_check_and_set_bounds(SkGlyph* glyph, const RECT& bbox) { 505 if (bbox.left >= bbox.right || bbox.top >= bbox.bottom) { 508 glyph->fWidth = SkToU16(bbox.right - bbox.left); 509 glyph->fHeight = SkToU16(bbox.bottom - bbox.top) 561 RECT bbox; local 817 RECT bbox; local [all...] |
SkFontHost_FreeType.cpp | 492 void getBBoxForCurrentGlyph(SkGlyph* glyph, FT_BBox* bbox, 494 bool getCBoxForLetter(char letter, FT_BBox* bbox); 604 info->fBBox = SkIRect::MakeLTRB(face->bbox.xMin, face->bbox.yMax, 605 face->bbox.xMax, face->bbox.yMin); [all...] |
/external/python/cpython2/RISCOS/Modules/ |
drawfmodule.c | 28 os_box bbox; member in struct:dheader 185 box=&dpath->bbox; 237 extend(&(diag->bbox),box); 273 box=&(dtext->bbox); 275 extend(&(diag->bbox),box); 322 box=&(dtext->bbox); 324 extend(&(diag->bbox),box); 380 dgroup->bbox=g->drawf->bbox; 386 extend(&(diag->bbox),&(dgroup->bbox)) [all...] |
/external/python/cpython2/Demo/tkinter/guido/ |
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/deqp/modules/gles31/functional/ |
es31fPrimitiveBoundingBoxTests.cpp | 93 static ProjectedBBox projectBoundingBox (const BoundingBox& bbox) 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) 111 vertexBox.x() = (bbox.min.x() * 0.5f + 0.5f) * (float)viewportSize.x(); 112 vertexBox.y() = (bbox.min.y() * 0.5f + 0.5f) * (float)viewportSize.y() [all...] |
/external/pdfium/third_party/freetype/src/cid/ |
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/xfa/fde/ |
cfde_path.cpp | 214 CFX_RectF bbox = CFX_RectF(rect.left, rect.top, rect.Width(), rect.Height()); local 215 bbox.Normalize(); 216 return bbox; 221 CFX_RectF bbox = CFX_RectF(rect.left, rect.top, rect.Width(), rect.Height()); local 222 bbox.Normalize(); 223 return bbox;
|