Home
last modified time | relevance | path

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

123

/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 …]
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()
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.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);
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()
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()
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.h73 void Scale(float x_scale, float y_scale) { in Scale() argument
74 SetPoint(x() * x_scale, y() * y_scale); in Scale()
113 GFX_EXPORT PointF ScalePoint(const PointF& p, float x_scale, float y_scale);
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()
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()
Dsize_f.cc33 SizeF ScaleSize(const SizeF& s, float x_scale, float y_scale) { in ScaleSize() argument
35 scaled_s.Scale(x_scale, y_scale); in ScaleSize()
/external/harfbuzz_ng/test/api/
Dtest-font.c468 int x_scale, y_scale; in test_font_properties() local
499 x_scale = y_scale = 13; in test_font_properties()
500 hb_font_get_scale (font, &x_scale, NULL); in test_font_properties()
501 g_assert_cmpint (x_scale, ==, upem); in test_font_properties()
502 x_scale = y_scale = 13; in test_font_properties()
505 x_scale = y_scale = 13; in test_font_properties()
506 hb_font_get_scale (font, &x_scale, &y_scale); in test_font_properties()
507 g_assert_cmpint (x_scale, ==, upem); in test_font_properties()
512 x_scale = y_scale = 13; in test_font_properties()
513 hb_font_get_scale (font, &x_scale, &y_scale); in test_font_properties()
[all …]
/external/freetype/src/base/
Dftpfr.c66 FT_Fixed x_scale, y_scale; in FT_Get_PFR_Metrics() local
76 x_scale = y_scale = 0x10000L; in FT_Get_PFR_Metrics()
79 x_scale = face->size->metrics.x_scale; in FT_Get_PFR_Metrics()
84 *ametrics_x_scale = x_scale; in FT_Get_PFR_Metrics()
/external/harfbuzz_ng/src/
Dhb-font.hh110 int x_scale; member
131 { return HB_DIRECTION_IS_VERTICAL(direction) ? y_scale : x_scale; } in dir_scale()
132 hb_position_t em_scale_x (int16_t v) { return em_scale (v, x_scale); } in em_scale_x()
134 hb_position_t em_scalef_x (float v) { return em_scalef (v, this->x_scale); } in em_scalef_x()
136 float em_fscale_x (int16_t v) { return em_fscale (v, x_scale); } in em_fscale_x()
144 if (unlikely (parent && parent->x_scale != x_scale)) in parent_scale_x_distance()
145 return (hb_position_t) (v * (int64_t) this->x_scale / this->parent->x_scale); in parent_scale_x_distance()
377 extents->ascender = x_scale / 2; in get_v_extents_with_fallback()
378 extents->descender = extents->ascender - x_scale; in get_v_extents_with_fallback()
Dhb-ft.cc272 int mult = font->x_scale < 0 ? -1 : +1; in hb_ft_get_glyph_h_advances()
274 if (font->x_scale != ft_font->cached_x_scale.get ()) in hb_ft_get_glyph_h_advances()
277 ft_font->cached_x_scale.set (font->x_scale); in hb_ft_get_glyph_h_advances()
341 if (font->x_scale < 0) in hb_ft_get_glyph_v_origin()
367 if (font->x_scale < 0) in hb_ft_get_glyph_extents()
688 …(int) (((uint64_t) ft_face->size->metrics.x_scale * (uint64_t) ft_face->units_per_EM + (1u<<15)) >… in hb_ft_font_changed()
822 abs (font->x_scale), abs (font->y_scale), in hb_ft_font_set_funcs()
825 font->x_ppem * 72 * 64 / font->x_scale, in hb_ft_font_set_funcs()
828 if (font->x_scale < 0 || font->y_scale < 0) in hb_ft_font_set_funcs()
830 FT_Matrix matrix = { font->x_scale < 0 ? -1 : +1, 0, in hb_ft_font_set_funcs()
/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/freetype/src/pfr/
Dpfrdrivr.c107 FT_Fixed x_scale, y_scale; in pfr_get_metrics() local
117 x_scale = 0x10000L; in pfr_get_metrics()
122 x_scale = FT_DivFix( size->metrics.x_ppem << 6, in pfr_get_metrics()
130 *ametrics_x_scale = x_scale; in pfr_get_metrics()
/external/freetype/src/cff/
Dcffobjs.c241 size->metrics.x_scale, size->metrics.y_scale, in cff_size_select()
248 FT_Pos x_scale, y_scale; in cff_size_select() local
253 x_scale = FT_MulDiv( size->metrics.x_scale, top_upm, sub_upm ); in cff_size_select()
258 x_scale = size->metrics.x_scale; in cff_size_select()
263 x_scale, y_scale, 0, 0 ); in cff_size_select()
313 size->metrics.x_scale, size->metrics.y_scale, in cff_size_request()
320 FT_Pos x_scale, y_scale; in cff_size_request() local
325 x_scale = FT_MulDiv( size->metrics.x_scale, top_upm, sub_upm ); in cff_size_request()
330 x_scale = size->metrics.x_scale; in cff_size_request()
335 x_scale, y_scale, 0, 0 ); in cff_size_request()
Dcffgload.c237 glyph->x_scale = 0x10000L; in cff_slot_load()
241 glyph->x_scale = size->root.metrics.x_scale; in cff_slot_load()
373 glyph->x_scale = FT_MulDiv( glyph->x_scale, top_upm, sub_upm ); in cff_slot_load()
641 FT_Fixed x_scale = glyph->x_scale; in cff_slot_load() local
649 vec->x = FT_MulFix( vec->x, x_scale ); in cff_slot_load()
654 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()
517 vvector.x = FT_MulFix( vvector.x, style_metrics->scaler.x_scale ); in af_loader_load_glyph()
557 style_metrics->scaler.x_scale ); in af_loader_load_glyph()
Dafdummy.c31 hints->x_scale = metrics->scaler.x_scale; in af_dummy_hints_init()
/external/freetype/src/truetype/
Dttgload.c827 loader->exec->metrics.x_scale = 1 << 16; in TT_Hint_Glyph()
834 loader->exec->metrics.x_scale = loader->size->metrics->x_scale; in TT_Hint_Glyph()
991 FT_Fixed x_scale = 0; /* pacify compiler */ in TT_Process_Simple_Glyph() local
1012 x_scale = FT_MulDiv( loader->size->metrics->x_scale, in TT_Process_Simple_Glyph()
1034 x_scale = loader->size->metrics->x_scale; in TT_Process_Simple_Glyph()
1045 vec->x = FT_MulFix( vec->x, x_scale ); in TT_Process_Simple_Glyph()
1208 FT_Fixed x_scale = loader->size->metrics->x_scale; in TT_Process_Composite_Component() local
1212 x = FT_MulFix( x, x_scale ); in TT_Process_Composite_Component()
1524 FT_Fixed x_scale, y_scale; in load_truetype_glyph() local
1563 x_scale = loader->size->metrics->x_scale; in load_truetype_glyph()
[all …]
/external/freetype/src/type1/
Dt1gload.c393 glyph->x_scale = t1size->metrics.x_scale; in T1_Load_Glyph()
398 glyph->x_scale = 0x10000L; in T1_Load_Glyph()
544 FT_Fixed x_scale = glyph->x_scale; in T1_Load_Glyph() local
552 vec->x = FT_MulFix( vec->x, x_scale ); in T1_Load_Glyph()
557 metrics->horiAdvance = FT_MulFix( metrics->horiAdvance, x_scale ); in T1_Load_Glyph()
/external/freetype/src/cid/
Dcidgload.c364 glyph->x_scale = cidsize->metrics.x_scale; in cid_slot_load_glyph()
488 FT_Fixed x_scale = glyph->x_scale; in cid_slot_load_glyph() local
496 vec->x = FT_MulFix( vec->x, x_scale ); in cid_slot_load_glyph()
501 metrics->horiAdvance = FT_MulFix( metrics->horiAdvance, x_scale ); in cid_slot_load_glyph()

123