Home
last modified time | relevance | path

Searched refs:x_scale (Results 1 – 25 of 85) sorted by relevance

1234

/external/libchrome/ui/gfx/geometry/
Drect.h272 float x_scale, in ScaleToEnclosingRect() argument
274 if (x_scale == 1.f && y_scale == 1.f) in ScaleToEnclosingRect()
281 std::floor(rect.x() * x_scale))); in ScaleToEnclosingRect()
285 std::ceil(rect.right() * x_scale))); in ScaleToEnclosingRect()
288 int x = static_cast<int>(std::floor(rect.x() * x_scale)); in ScaleToEnclosingRect()
291 x : static_cast<int>(std::ceil(rect.right() * x_scale)); in ScaleToEnclosingRect()
304 float x_scale, in ScaleToEnclosingRectSafe() argument
306 if (x_scale == 1.f && y_scale == 1.f) in ScaleToEnclosingRectSafe()
308 int x = base::saturated_cast<int>(std::floor(rect.x() * x_scale)); in ScaleToEnclosingRectSafe()
310 int w = base::saturated_cast<int>(std::ceil(rect.width() * x_scale)); in ScaleToEnclosingRectSafe()
[all …]
Dsize.cc79 Size ScaleToCeiledSize(const Size& size, float x_scale, float y_scale) { in ScaleToCeiledSize() argument
80 if (x_scale == 1.f && y_scale == 1.f) in ScaleToCeiledSize()
82 return ToCeiledSize(ScaleSize(gfx::SizeF(size), x_scale, y_scale)); in ScaleToCeiledSize()
91 Size ScaleToFlooredSize(const Size& size, float x_scale, float y_scale) { in ScaleToFlooredSize() argument
92 if (x_scale == 1.f && y_scale == 1.f) in ScaleToFlooredSize()
94 return ToFlooredSize(ScaleSize(gfx::SizeF(size), x_scale, y_scale)); in ScaleToFlooredSize()
103 Size ScaleToRoundedSize(const Size& size, float x_scale, float y_scale) { in ScaleToRoundedSize() argument
104 if (x_scale == 1.f && y_scale == 1.f) in ScaleToRoundedSize()
106 return ToRoundedSize(ScaleSize(gfx::SizeF(size), x_scale, y_scale)); in ScaleToRoundedSize()
Dpoint.cc69 Point ScaleToCeiledPoint(const Point& point, float x_scale, float y_scale) { in ScaleToCeiledPoint() argument
70 if (x_scale == 1.f && y_scale == 1.f) in ScaleToCeiledPoint()
72 return ToCeiledPoint(ScalePoint(gfx::PointF(point), x_scale, y_scale)); in ScaleToCeiledPoint()
81 Point ScaleToFlooredPoint(const Point& point, float x_scale, float y_scale) { in ScaleToFlooredPoint() argument
82 if (x_scale == 1.f && y_scale == 1.f) in ScaleToFlooredPoint()
84 return ToFlooredPoint(ScalePoint(gfx::PointF(point), x_scale, y_scale)); in ScaleToFlooredPoint()
93 Point ScaleToRoundedPoint(const Point& point, float x_scale, float y_scale) { in ScaleToRoundedPoint() argument
94 if (x_scale == 1.f && y_scale == 1.f) in ScaleToRoundedPoint()
96 return ToRoundedPoint(ScalePoint(gfx::PointF(point), x_scale, y_scale)); in ScaleToRoundedPoint()
Dvector2d_f.cc39 void Vector2dF::Scale(float x_scale, float y_scale) { in Scale() argument
40 x_ *= x_scale; in Scale()
54 Vector2dF ScaleVector2d(const Vector2dF& v, float x_scale, float y_scale) { in ScaleVector2d() argument
56 scaled_v.Scale(x_scale, y_scale); in ScaleVector2d()
Dpoint.h134 float x_scale,
136 GFX_EXPORT Point ScaleToCeiledPoint(const Point& point, float x_scale);
138 float x_scale,
140 GFX_EXPORT Point ScaleToFlooredPoint(const Point& point, float x_scale);
142 float x_scale,
144 GFX_EXPORT Point ScaleToRoundedPoint(const Point& point, float x_scale);
Dbox_f.h42 void Scale(float x_scale, float y_scale, float z_scale) { in Scale() argument
43 origin_.Scale(x_scale, y_scale, z_scale); in Scale()
44 set_size(width_ * x_scale, height_ * y_scale, depth_ * z_scale); in Scale()
120 float x_scale, in ScaleBox() argument
123 return BoxF(b.x() * x_scale, in ScaleBox()
126 b.width() * x_scale, in ScaleBox()
Dquad_f.cc101 void QuadF::Scale(float x_scale, float y_scale) { in Scale() argument
102 p1_.Scale(x_scale, y_scale); in Scale()
103 p2_.Scale(x_scale, y_scale); in Scale()
104 p3_.Scale(x_scale, y_scale); in Scale()
105 p4_.Scale(x_scale, y_scale); in Scale()
Dvector3d_f.cc47 void Vector3dF::Scale(float x_scale, float y_scale, float z_scale) { in Scale() argument
48 x_ *= x_scale; in Scale()
79 float x_scale, in ScaleVector3d() argument
83 scaled_v.Scale(x_scale, y_scale, z_scale); in ScaleVector3d()
Drect_f.h174 void Scale(float x_scale, float y_scale) { in Scale() argument
175 set_origin(ScalePoint(origin(), x_scale, y_scale)); in Scale()
176 set_size(ScaleSize(size(), x_scale, y_scale)); in Scale()
218 inline RectF ScaleRect(const RectF& r, float x_scale, float y_scale) { in ScaleRect() argument
219 return RectF(r.x() * x_scale, r.y() * y_scale, in ScaleRect()
220 r.width() * x_scale, r.height() * y_scale); in ScaleRect()
Dpoint3_f.h30 void Scale(float x_scale, float y_scale, float z_scale) { in Scale() argument
31 SetPoint(x() * x_scale, y() * y_scale, z() * z_scale); in Scale()
107 float x_scale, in ScalePoint() argument
110 return Point3F(p.x() * x_scale, p.y() * y_scale, p.z() * z_scale); in ScalePoint()
Dsize.h89 float x_scale,
93 float x_scale,
97 float x_scale,
Dsize_f.h57 void Scale(float x_scale, float y_scale) { in Scale() argument
58 SetSize(width() * x_scale, height() * y_scale); in Scale()
84 GFX_EXPORT SizeF ScaleSize(const SizeF& p, float x_scale, float y_scale);
Dpoint_f.cc25 PointF ScalePoint(const PointF& p, float x_scale, float y_scale) { in ScalePoint() argument
27 scaled_p.Scale(x_scale, y_scale); in ScalePoint()
Dinsets.h91 Insets Scale(float x_scale, float y_scale) const { in Scale() argument
93 static_cast<int>(left() * x_scale), in Scale()
95 static_cast<int>(right() * x_scale)); in Scale()
/external/harfbuzz_ng/test/api/
Dtest-font.c465 int x_scale, y_scale; in test_font_properties() local
496 x_scale = y_scale = 13; in test_font_properties()
497 hb_font_get_scale (font, &x_scale, NULL); in test_font_properties()
498 g_assert_cmpint (x_scale, ==, upem); in test_font_properties()
499 x_scale = y_scale = 13; in test_font_properties()
502 x_scale = y_scale = 13; in test_font_properties()
503 hb_font_get_scale (font, &x_scale, &y_scale); in test_font_properties()
504 g_assert_cmpint (x_scale, ==, upem); in test_font_properties()
509 x_scale = y_scale = 13; in test_font_properties()
510 hb_font_get_scale (font, &x_scale, &y_scale); in test_font_properties()
[all …]
/external/freetype/src/base/
Dftpfr.c65 FT_Fixed x_scale, y_scale; in FT_Get_PFR_Metrics() local
75 x_scale = y_scale = 0x10000L; in FT_Get_PFR_Metrics()
78 x_scale = face->size->metrics.x_scale; in FT_Get_PFR_Metrics()
83 *ametrics_x_scale = x_scale; in FT_Get_PFR_Metrics()
/external/freetype/src/pfr/
Dpfrdrivr.c106 FT_Fixed x_scale, y_scale; in pfr_get_metrics() local
116 x_scale = 0x10000L; in pfr_get_metrics()
121 x_scale = FT_DivFix( size->metrics.x_ppem << 6, in pfr_get_metrics()
129 *ametrics_x_scale = x_scale; in pfr_get_metrics()
/external/libkmsxx/py/tests/
Drottest.py46 def show_rot_plane(crtc, plane, fb, rot, x_scale, y_scale): argument
48 crtc_w = int(fb_w * x_scale)
96 x_scale = 1 variable
125 show_rot_plane(crtc, plane, fb, current_rot, x_scale, y_scale)
168 show_rot_plane(crtc, plane, fb, current_rot, x_scale, y_scale)
/external/pdfium/core/fpdfapi/render/
Dcpdf_rendershading.cpp627 int x_scale, in BiInterpolImpl() argument
630 int x1 = Interpolate(c0, c3, x, x_scale, overflow); in BiInterpolImpl()
631 int x2 = Interpolate(c1, c2, x, x_scale, overflow); in BiInterpolImpl()
642 int x_scale, in BiInterpol()
648 x_scale, y_scale, &overflow); in BiInterpol()
663 void Draw(int x_scale, in Draw()
678 if (!div_colors[0].BiInterpol(patch_colors, left, bottom, x_scale, in Draw()
683 if (!div_colors[1].BiInterpol(patch_colors, left, bottom + 1, x_scale, in Draw()
687 if (!div_colors[2].BiInterpol(patch_colors, left + 1, bottom + 1, x_scale, in Draw()
691 if (!div_colors[3].BiInterpol(patch_colors, left + 1, bottom, x_scale, in Draw()
[all …]
/external/harfbuzz_ng/src/
Dhb-font.hh110 int32_t x_scale; member
136 hb_position_t em_scalef_x (float v) { return em_scalef (v, x_scale); } in em_scalef_x()
138 float em_fscale_x (int16_t v) { return em_fscale (v, x_scale); } in em_fscale_x()
146 if (unlikely (parent && parent->x_scale != x_scale)) in parent_scale_x_distance()
147 return (hb_position_t) (v * (int64_t) this->x_scale / this->parent->x_scale); in parent_scale_x_distance()
387 extents->ascender = x_scale / 2; in get_v_extents_with_fallback()
388 extents->descender = extents->ascender - x_scale; in get_v_extents_with_fallback()
615 x_mult = ((int64_t) x_scale << 16) / upem; in mults_changed()
Dhb-ft.cc274 int mult = font->x_scale < 0 ? -1 : +1; in hb_ft_get_glyph_h_advances()
276 if (font->x_scale != ft_font->cached_x_scale.get ()) in hb_ft_get_glyph_h_advances()
279 ft_font->cached_x_scale.set (font->x_scale); in hb_ft_get_glyph_h_advances()
343 if (font->x_scale < 0) in hb_ft_get_glyph_v_origin()
388 if (font->x_scale < 0) in hb_ft_get_glyph_extents()
713 …(int) (((uint64_t) ft_face->size->metrics.x_scale * (uint64_t) ft_face->units_per_EM + (1u<<15)) >… in hb_ft_font_changed()
847 abs (font->x_scale), abs (font->y_scale), in hb_ft_font_set_funcs()
850 font->x_ppem * 72 * 64 / font->x_scale, in hb_ft_font_set_funcs()
853 if (font->x_scale < 0 || font->y_scale < 0) in hb_ft_font_set_funcs()
855 FT_Matrix matrix = { font->x_scale < 0 ? -1 : +1, 0, in hb_ft_font_set_funcs()
/external/freetype/src/truetype/
Dttgload.c850 loader->exec->metrics.x_scale = 1 << 16; in TT_Hint_Glyph()
857 loader->exec->metrics.x_scale = loader->size->metrics->x_scale; in TT_Hint_Glyph()
1025 FT_Fixed x_scale = 0; /* pacify compiler */ in TT_Process_Simple_Glyph() local
1046 x_scale = FT_MulDiv( loader->size->metrics->x_scale, in TT_Process_Simple_Glyph()
1081 x_scale = loader->size->metrics->x_scale; in TT_Process_Simple_Glyph()
1098 vec->x = ( FT_MulFix( u->x, x_scale ) + 32 ) >> 6; in TT_Process_Simple_Glyph()
1107 vec->x = FT_MulFix( vec->x, x_scale ); in TT_Process_Simple_Glyph()
1119 loader->pp1.x = FT_MulFix( loader->pp1.x, x_scale ); in TT_Process_Simple_Glyph()
1120 loader->pp2.x = FT_MulFix( loader->pp2.x, x_scale ); in TT_Process_Simple_Glyph()
1136 loader->pp3.x = FT_MulFix( loader->pp3.x, x_scale ); in TT_Process_Simple_Glyph()
[all …]
/external/freetype/src/cff/
Dcffobjs.c250 size->metrics.x_scale, size->metrics.y_scale, in cff_size_select()
257 FT_Pos x_scale, y_scale; in cff_size_select() local
262 x_scale = FT_MulDiv( size->metrics.x_scale, top_upm, sub_upm ); in cff_size_select()
267 x_scale = size->metrics.x_scale; in cff_size_select()
272 x_scale, y_scale, 0, 0 ); in cff_size_select()
322 size->metrics.x_scale, size->metrics.y_scale, in cff_size_request()
329 FT_Pos x_scale, y_scale; in cff_size_request() local
334 x_scale = FT_MulDiv( size->metrics.x_scale, top_upm, sub_upm ); in cff_size_request()
339 x_scale = size->metrics.x_scale; in cff_size_request()
344 x_scale, y_scale, 0, 0 ); in cff_size_request()
Dcffgload.c236 glyph->x_scale = 0x10000L; in cff_slot_load()
240 glyph->x_scale = size->root.metrics.x_scale; in cff_slot_load()
371 glyph->x_scale = FT_MulDiv( glyph->x_scale, top_upm, sub_upm ); in cff_slot_load()
638 FT_Fixed x_scale = glyph->x_scale; in cff_slot_load() local
646 vec->x = FT_MulFix( vec->x, x_scale ); in cff_slot_load()
651 metrics->horiAdvance = FT_MulFix( metrics->horiAdvance, x_scale ); in cff_slot_load()
/external/freetype/src/autofit/
Dafloader.c149 size_metrics->x_scale ), in af_loader_embolden_glyph_in_slot()
240 if ( !size_internal->autohint_metrics.x_scale || in af_loader_load_glyph()
268 size_metrics->x_scale = FT_DivFix( size_metrics->x_ppem << 6, in af_loader_load_glyph()
274 size_metrics->x_scale ) ); in af_loader_load_glyph()
289 scaler.x_scale = size_internal->autohint_metrics.x_scale; in af_loader_load_glyph()
414 hints->x_scale ) + hints->x_delta; in af_loader_load_glyph()
522 vvector.x = FT_MulFix( vvector.x, style_metrics->scaler.x_scale ); in af_loader_load_glyph()
562 style_metrics->scaler.x_scale ); in af_loader_load_glyph()

1234