Home
last modified time | relevance | path

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

1234

/external/libchrome/ui/gfx/geometry/
Drect.h273 float y_scale) { in ScaleToEnclosingRect() argument
274 if (x_scale == 1.f && y_scale == 1.f) in ScaleToEnclosingRect()
283 std::floor(rect.y() * y_scale))); in ScaleToEnclosingRect()
287 std::ceil(rect.bottom() * y_scale))); in ScaleToEnclosingRect()
289 int y = static_cast<int>(std::floor(rect.y() * y_scale)); in ScaleToEnclosingRect()
293 y : static_cast<int>(std::ceil(rect.bottom() * y_scale)); in ScaleToEnclosingRect()
305 float y_scale) { in ScaleToEnclosingRectSafe() argument
306 if (x_scale == 1.f && y_scale == 1.f) in ScaleToEnclosingRectSafe()
309 int y = base::saturated_cast<int>(std::floor(rect.y() * y_scale)); in ScaleToEnclosingRectSafe()
311 int h = base::saturated_cast<int>(std::ceil(rect.height() * y_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()
Dvector2d_f.cc39 void Vector2dF::Scale(float x_scale, float y_scale) { in Scale() argument
41 y_ *= y_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.h90 float y_scale);
94 float y_scale);
98 float y_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
92 return Insets(static_cast<int>(top() * y_scale), in Scale()
94 static_cast<int>(bottom() * y_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()
Dpoint.h135 float y_scale);
139 float y_scale);
143 float y_scale);
/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()
502 x_scale = y_scale = 13; in test_font_properties()
503 hb_font_get_scale (font, NULL, &y_scale); in test_font_properties()
504 g_assert_cmpint (y_scale, ==, upem); 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()
508 g_assert_cmpint (y_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()
80 y_scale = face->size->metrics.y_scale; in FT_Get_PFR_Metrics()
87 *ametrics_y_scale = y_scale; in FT_Get_PFR_Metrics()
/external/harfbuzz_ng/src/
Dhb-font.hh111 int y_scale; member
131 { return HB_DIRECTION_IS_VERTICAL(direction) ? y_scale : x_scale; } in dir_scale()
133 hb_position_t em_scale_y (int16_t v) { return em_scale (v, y_scale); } in em_scale_y()
135 hb_position_t em_scalef_y (float v) { return em_scalef (v, this->y_scale); } in em_scalef_y()
137 float em_fscale_y (int16_t v) { return em_fscale (v, y_scale); } in em_fscale_y()
150 if (unlikely (parent && parent->y_scale != y_scale)) in parent_scale_y_distance()
151 return (hb_position_t) (v * (int64_t) this->y_scale / this->parent->y_scale); in parent_scale_y_distance()
368 extents->ascender = y_scale * .8; in get_h_extents_with_fallback()
369 extents->descender = extents->ascender - y_scale; in get_h_extents_with_fallback()
Dhb-ft.cc313 if (font->y_scale < 0) in hb_ft_get_glyph_v_advance()
343 if (font->y_scale < 0) in hb_ft_get_glyph_v_origin()
372 if (font->y_scale < 0) in hb_ft_get_glyph_extents()
469 metrics->ascender = FT_MulFix(ft_face->ascender, ft_face->size->metrics.y_scale); in hb_ft_get_font_h_extents()
470 metrics->descender = FT_MulFix(ft_face->descender, ft_face->size->metrics.y_scale); in hb_ft_get_font_h_extents()
471 …metrics->line_gap = FT_MulFix( ft_face->height, ft_face->size->metrics.y_scale ) - (metrics->ascen… in hb_ft_get_font_h_extents()
472 if (font->y_scale < 0) in hb_ft_get_font_h_extents()
689 …(int) (((uint64_t) ft_face->size->metrics.y_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()
826 font->y_ppem * 72 * 64 / font->y_scale); in hb_ft_font_set_funcs()
[all …]
/external/libkmsxx/py/tests/
Drottest.py46 def show_rot_plane(crtc, plane, fb, rot, x_scale, y_scale): argument
49 crtc_h = int(fb_h * y_scale)
97 y_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
118 y_scale = 0x10000L; in pfr_get_metrics()
125 y_scale = FT_DivFix( size->metrics.y_ppem << 6, in pfr_get_metrics()
133 *ametrics_y_scale = y_scale; in pfr_get_metrics()
/external/freetype/src/truetype/
Dttgload.c828 loader->exec->metrics.y_scale = 1 << 16; in TT_Hint_Glyph()
835 loader->exec->metrics.y_scale = loader->size->metrics->y_scale; in TT_Hint_Glyph()
992 FT_Fixed y_scale = 0; in TT_Process_Simple_Glyph() local
1014 y_scale = loader->size->metrics->y_scale; in TT_Process_Simple_Glyph()
1035 y_scale = loader->size->metrics->y_scale; in TT_Process_Simple_Glyph()
1046 vec->y = FT_MulFix( vec->y, y_scale ); in TT_Process_Simple_Glyph()
1209 FT_Fixed y_scale = loader->size->metrics->y_scale; in TT_Process_Composite_Component() local
1213 y = FT_MulFix( y, y_scale ); in TT_Process_Composite_Component()
1524 FT_Fixed x_scale, y_scale; in load_truetype_glyph() local
1564 y_scale = loader->size->metrics->y_scale; in load_truetype_glyph()
[all …]
/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
254 y_scale = FT_MulDiv( size->metrics.y_scale, top_upm, sub_upm ); in cff_size_select()
259 y_scale = size->metrics.y_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
326 y_scale = FT_MulDiv( size->metrics.y_scale, top_upm, sub_upm ); in cff_size_request()
331 y_scale = size->metrics.y_scale; in cff_size_request()
335 x_scale, y_scale, 0, 0 ); in cff_size_request()
Dcffgload.c238 glyph->y_scale = 0x10000L; in cff_slot_load()
242 glyph->y_scale = size->root.metrics.y_scale; in cff_slot_load()
374 glyph->y_scale = FT_MulDiv( glyph->y_scale, top_upm, sub_upm ); in cff_slot_load()
642 FT_Fixed y_scale = glyph->y_scale; in cff_slot_load() local
650 vec->y = FT_MulFix( vec->y, y_scale ); in cff_slot_load()
655 metrics->vertAdvance = FT_MulFix( metrics->vertAdvance, y_scale ); in cff_slot_load()
/external/freetype/src/autofit/
Dafloader.c168 size_metrics->y_scale ), in af_loader_embolden_glyph_in_slot()
260 size_metrics->y_scale ) ); in af_loader_load_glyph()
263 size_metrics->y_scale ) ); in af_loader_load_glyph()
266 size_metrics->y_scale ) ); in af_loader_load_glyph()
270 size_metrics->y_scale = FT_DivFix( size_metrics->y_ppem << 6, in af_loader_load_glyph()
291 scaler.y_scale = size_internal->autohint_metrics.y_scale; in af_loader_load_glyph()
518 vvector.y = FT_MulFix( vvector.y, style_metrics->scaler.y_scale ); in af_loader_load_glyph()
572 style_metrics->scaler.y_scale ); in af_loader_load_glyph()
Dafdummy.c32 hints->y_scale = metrics->scaler.y_scale; in af_dummy_hints_init()
/external/freetype/src/type1/
Dt1gload.c394 glyph->y_scale = t1size->metrics.y_scale; in T1_Load_Glyph()
399 glyph->y_scale = 0x10000L; in T1_Load_Glyph()
545 FT_Fixed y_scale = glyph->y_scale; in T1_Load_Glyph() local
553 vec->y = FT_MulFix( vec->y, y_scale ); in T1_Load_Glyph()
558 metrics->vertAdvance = FT_MulFix( metrics->vertAdvance, y_scale ); in T1_Load_Glyph()
/external/freetype/src/cid/
Dcidgload.c365 glyph->y_scale = cidsize->metrics.y_scale; in cid_slot_load_glyph()
489 FT_Fixed y_scale = glyph->y_scale; in cid_slot_load_glyph() local
497 vec->y = FT_MulFix( vec->y, y_scale ); in cid_slot_load_glyph()
502 metrics->vertAdvance = FT_MulFix( metrics->vertAdvance, y_scale ); in cid_slot_load_glyph()

1234