Home
last modified time | relevance | path

Searched refs:xMax (Results 1 – 25 of 78) sorted by relevance

1234

/external/fonttools/Lib/fontTools/misc/
DarrayTools.py36 xMin, yMin, xMax, yMax = bounds
37 return min(xMin, x), min(yMin, y), max(xMax, x), max(yMax, y)
42 xMin, yMin, xMax, yMax = rect
43 return (xMin <= x <= xMax) and (yMin <= y <= yMax)
51 xMin, yMin, xMax, yMax = rect
52 return [(xMin <= x <= xMax) and (yMin <= y <= yMax) for x, y in array]
68 (xMin, yMin, xMax, yMax) = rect
69 return min(xMin, xMax), min(yMin, yMax), max(xMin, xMax), max(yMin, yMax)
73 (xMin, yMin, xMax, yMax) = rect
74 return xMin * x, yMin * y, xMax * x, yMax * y
[all …]
/external/freetype/src/tools/
Dtest_bbox.c121 XVAL( bbox.xMax ), in dump_outline()
129 XVAL( bbox.xMax ), in dump_outline()
152 XVAL( bbox.xMax ), in profile_outline()
155 bbox.xMin, bbox.yMin, bbox.xMax, bbox.yMax ); in profile_outline()
167 XVAL( bbox.xMax ), in profile_outline()
170 bbox.xMin, bbox.yMin, bbox.xMax, bbox.yMax ); in profile_outline()
/external/fonttools/Lib/fontTools/ttLib/tables/
D_m_a_x_p.py68 xMax = -INFINITY
84 xMax = max(xMax, g.xMax)
99 headTable.xMax = 0
104 headTable.xMax = xMax
D_h_e_a_d.py67 self.xMin, self.yMin, self.xMax, self.yMax = intRect(topDict.FontBBox)
/external/freetype/src/base/
Dftbbox.c49 if ( p->x > bbox.xMax ) \
50 bbox.xMax = p->x; \
58 ( p->x < bbox.xMin || p->x > bbox.xMax )
222 &user->bbox.xMax ); in BBox_Conic_To()
431 &user->bbox.xMax ); in BBox_Cubic_To()
483 abbox->xMin = abbox->xMax = 0; in FT_EXPORT_DEF()
506 if ( cbox.xMin < bbox.xMin || cbox.xMax > bbox.xMax || in FT_EXPORT_DEF()
Dftoutln.c461 FT_Pos xMin, yMin, xMax, yMax; in FT_Outline_Get_CBox() local
470 xMax = 0; in FT_Outline_Get_CBox()
479 xMin = xMax = vec->x; in FT_Outline_Get_CBox()
490 if ( x > xMax ) xMax = x; in FT_Outline_Get_CBox()
498 acbox->xMax = xMax; in FT_Outline_Get_CBox()
615 cbox.xMax > 0x1000000L || cbox.yMax > 0x1000000L ) in FT_Outline_Render()
629 params->clip_box.xMax = ( cbox.xMax + 63 ) >> 6; in FT_Outline_Render()
1061 if ( cbox.xMin == cbox.xMax || cbox.yMin == cbox.yMax ) in FT_Outline_Get_Orientation()
1064 xshift = FT_MSB( (FT_UInt32)( FT_ABS( cbox.xMax ) | in FT_Outline_Get_Orientation()
Dftglyph.c128 cbox->xMax = cbox->xMin + (FT_Pos)( glyph->bitmap.width * 64 ); in ft_bitmap_glyph_bbox()
498 acbox->xMin = acbox->yMin = acbox->xMax = acbox->yMax = 0; in FT_Glyph_Get_CBox()
516 acbox->xMax = FT_PIX_CEIL_LONG( acbox->xMax ); in FT_Glyph_Get_CBox()
526 acbox->xMax >>= 6; in FT_Glyph_Get_CBox()
Dftlcdfil.c63 cbox->xMax += lcd_weights[4] ? 43 : in ft_lcd_padding()
382 cbox->xMax -= FT_MIN( FT_MIN( sub[0].x, sub[1].x ), sub[2].x ); in ft_lcd_padding()
389 cbox->xMax -= FT_MIN( FT_MIN( sub[0].y, sub[1].y ), sub[2].y ); in ft_lcd_padding()
/external/neven/FaceRecEm/common/src/b_FDSDK/
DDCR.c221 if( pRectA->xMax <= pRectA->xMin || pRectA->yMax <= pRectA->yMin ) in btk_DCR_assignImageROI()
232 pRectA->xMax >> 16, in btk_DCR_assignImageROI()
340 pRectA->xMax = ( rxL + doffL ) << 16; in btk_DCR_getRect()
342 pRectA->yMax = ( pRectA->yMin + ( pRectA->xMax - pRectA->xMin ) ); in btk_DCR_getRect()
346 pRectA->xMax += ( int32 )hdcrA->dcrE.roiRectE.x1E << 16; in btk_DCR_getRect()
356 pRectA->xMax += ( int32 )hdcrA->dcrE.offsE.xE << 16; in btk_DCR_getRect()
DDCR.h56 s16p16 xMax; /* x max coordinate */ member
/external/angle/samples/tri_fan_microbench/
DTriFanMicroBench.cpp58 const GLfloat xMax = 1.0f; in createVertexBuffers() local
80 if (xOffset > xMax) in createVertexBuffers()
128 if (xOffset > xMax) in createVertexBuffers()
/external/skqp/gm/
Dtypeface.cpp225 SkScalar xMax = x; local
260 xMax = SkTMax(x, xMax);
266 xBase = xMax;
/external/skia/gm/
Dtypeface.cpp220 SkScalar xMax = x; local
255 xMax = std::max(x, xMax);
261 xBase = xMax;
/external/deqp/external/vulkancts/modules/vulkan/image/
DvktImageLoadStoreTests.cpp255 const int xMax = imageSize.x() - 1; in generateReferenceImage() local
262 tcu::IVec4 color(x^y^z, (xMax - x)^y^z, x^(yMax - y)^z, (xMax - x)^(yMax - y)^z); in generateReferenceImage()
265 color -= tcu::IVec4(deRoundFloatToInt32((float)de::max(xMax, yMax) / 2.0f)); in generateReferenceImage()
290 const int xMax = access.getWidth() - 1; in flipHorizontally() local
298 const tcu::UVec4 temp = access.getPixelUint(xMax - x, y, z); in flipHorizontally()
299 access.setPixel(access.getPixelUint(x, y, z), xMax - x, y, z); in flipHorizontally()
307 const tcu::Vec4 temp = access.getPixel(xMax - x, y, z); in flipHorizontally()
308 access.setPixel(access.getPixel(x, y, z), xMax - x, y, z); in flipHorizontally()
438 const deUint32 xMax = m_texture.size().x() - 1; in initPrograms() local
445 + "(" + de::toString(xMax) + "-gx)^gy^gz, " in initPrograms()
[all …]
/external/skia/src/ports/
DSkFontHost_FreeType.cpp650 face->bbox.xMax, face->bbox.yMin); in onGetAdvancedMetrics()
1102 bbox->xMax += dx; in getBBoxForCurrentGlyph()
1110 bbox->xMax = (bbox->xMax + 63) & ~63; in getBBoxForCurrentGlyph()
1123 bbox->xMax += vector.x; in getBBoxForCurrentGlyph()
1217 bounds.xMax = std::max(bbox.xMax, bounds.xMax); in generateMetrics()
1224 if (!(bounds.xMin < bounds.xMax && bounds.yMin < bounds.yMax)) { in generateMetrics()
1240 bounds.xMax = SkFDot6Ceil (bounds.xMax); in generateMetrics()
1243 FT_Pos width = bounds.xMax - bounds.xMin; in generateMetrics()
1446 xmax = SkIntToScalar(face->bbox.xMax) / upem; in generateFontMetrics()
/external/skqp/src/ports/
DSkFontHost_FreeType.cpp628 face->bbox.xMax, face->bbox.yMin); in onGetAdvancedMetrics()
1081 bbox->xMax += dx; in getBBoxForCurrentGlyph()
1089 bbox->xMax = (bbox->xMax + 63) & ~63; in getBBoxForCurrentGlyph()
1102 bbox->xMax += vector.x; in getBBoxForCurrentGlyph()
1196 bounds.xMax = std::max(bbox.xMax, bounds.xMax); in generateMetrics()
1203 if (!(bounds.xMin < bounds.xMax && bounds.yMin < bounds.yMax)) { in generateMetrics()
1219 bounds.xMax = SkFDot6Ceil (bounds.xMax); in generateMetrics()
1222 FT_Pos width = bounds.xMax - bounds.xMin; in generateMetrics()
1429 xmax = SkIntToScalar(face->bbox.xMax) / upem; in generateFontMetrics()
/external/harfbuzz_ng/src/
Dhb-ot-head-table.hh139 HBINT16 xMax; /* For all glyph bounding boxes. */ member
/external/fonttools/Tests/subset/
Dsubset_test.py488 bounds = [head.xMin, head.yMin, head.xMax, head.yMax]
496 self.assertEqual(bounds, [head.xMin, head.yMin, head.xMax, head.yMax])
501 self.assertEqual(bounds, [head.xMin, head.yMin, head.xMax, head.yMax])
508 bounds = [head.xMin, head.yMin, head.xMax, head.yMax]
516 self.assertEqual(bounds, [head.xMin, head.yMin, head.xMax, head.yMax])
521 self.assertEqual(bounds, [head.xMin, head.yMin, head.xMax, head.yMax])
/external/freetype/src/type1/
Dt1objs.c473 root->bbox.xMax = ( type1->font_bbox.xMax + 0xFFFF ) >> 16; in T1_Face_Init()
489 (FT_Short)( root->bbox.xMax ); in T1_Face_Init()
Dt1afm.c303 t1_face->bbox.xMax = ( fi->FontBBox.xMax + 0xFFFF ) >> 16; in T1_Read_Metrics()
/external/dng_sdk/source/
Ddng_lens_correction.cpp1122 int32 xMax = INT_MIN; in SrcArea() local
1193 xMax = Max_int32 (xMax, x); in SrcArea()
1207 xMax = SafeInt32Add(xMax, pad); in SrcArea()
1210 xMax = SafeInt32Add(xMax, 1); in SrcArea()
1216 xMax); in SrcArea()
/external/pdfium/core/fpdfapi/font/
Dcpdf_cidfont.cpp440 cbox.xMax = pdfium::clamp(cbox.xMax, kMinCBox, kMaxCBox); in GetCharBBox()
446 rect = FX_RECT(cbox.xMin, cbox.yMax, cbox.xMax, cbox.yMin); in GetCharBBox()
450 cbox.xMax * 1000 / pixel_size_x, in GetCharBBox()
/external/fonttools/Tests/ttLib/
Dwoff2_test.py845 def drawRect(pen, xMin, xMax): argument
848 pen.lineTo((xMax, 1000))
849 pen.lineTo((xMax, 0))
890 ".notdef": Glyph(xMin=50, xMax=450),
892 "A": Glyph(xMin=40, xMax=510),
893 "acutecomb": Glyph(xMin=-40, xMax=60),
895 "zero": Glyph(xMin=30, xMax=470),
896 "one": Glyph(xMin=50, xMax=450),
897 "two": Glyph(xMin=40, xMax=460),
/external/freetype/src/cid/
Dcidobjs.c436 cidface->bbox.xMax = ( cid->font_bbox.xMax + 0xFFFF ) >> 16; in cid_face_init()
/external/freetype/src/autofit/
Dafloader.c541 bbox.xMax = FT_PIX_CEIL( bbox.xMax ); in af_loader_load_glyph()
544 slot->metrics.width = bbox.xMax - bbox.xMin; in af_loader_load_glyph()

1234