Home
last modified time | relevance | path

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

1234

/external/XNNPACK/test/
Dq8-gavgpool.cc48 for (float x_scale = 0.01f; x_scale < 100.0f; x_scale *= 3.14159265f) { in TEST() local
52 .x_scale(x_scale) in TEST()
97 .x_scale(1.0f) in TEST()
110 .x_scale(1.0f) in TEST()
163 for (float x_scale = 0.01f; x_scale < 100.0f; x_scale *= 3.14159265f) { in TEST() local
167 .x_scale(x_scale) in TEST()
220 .x_scale(1.0f) in TEST()
235 .x_scale(1.0f) in TEST()
267 for (float x_scale = 0.01f; x_scale < 100.0f; x_scale *= 3.14159265f) { in TEST() local
271 .x_scale(x_scale) in TEST()
[all …]
Dgavgpool-microkernel-tester.h81 inline GAvgPoolMicrokernelTester& x_scale(float x_scale) { in x_scale() function
82 assert(x_scale > 0.0f); in x_scale()
83 assert(std::isnormal(x_scale)); in x_scale()
84 this->x_scale_ = x_scale; in x_scale()
88 inline float x_scale() const { in x_scale() function
169 x_scale() / (y_scale() * float(m())),
175 x_scale() / (y_scale() * float(m())),
182 x_scale() / (y_scale() * float(m())),
193 y_fp[j] = float(acc) * (x_scale() / (y_scale() * float(m()))) + float(y_zero_point());
241 x_scale() / (y_scale() * float(m())),
[all …]
Dq8-avgpool.cc245 for (float x_scale = 0.01f; x_scale < 100.0f; x_scale *= 3.14159265f) { in TEST() local
252 .x_scale(x_scale) in TEST()
329 .x_scale(1.0f) in TEST()
349 .x_scale(1.0f) in TEST()
924 for (float x_scale = 0.01f; x_scale < 100.0f; x_scale *= 3.14159265f) { in TEST() local
932 .x_scale(x_scale) in TEST()
1013 .x_scale(1.0f) in TEST()
1035 .x_scale(1.0f) in TEST()
1349 for (float x_scale = 0.01f; x_scale < 100.0f; x_scale *= 3.14159265f) { in TEST() local
1356 .x_scale(x_scale) in TEST()
[all …]
/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()
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);
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_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);
Dsize.h89 float x_scale,
93 float x_scale,
97 float x_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.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);
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()
/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.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/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/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/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()
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()
/external/freetype/src/truetype/
Dttgload.c841 loader->exec->metrics.x_scale = 1 << 16; in TT_Hint_Glyph()
848 loader->exec->metrics.x_scale = loader->size->metrics->x_scale; in TT_Hint_Glyph()
1016 FT_Fixed x_scale = 0; /* pacify compiler */ in TT_Process_Simple_Glyph() local
1037 x_scale = FT_MulDiv( loader->size->metrics->x_scale, in TT_Process_Simple_Glyph()
1072 x_scale = loader->size->metrics->x_scale; in TT_Process_Simple_Glyph()
1089 vec->x = ( FT_MulFix( u->x, x_scale ) + 32 ) >> 6; in TT_Process_Simple_Glyph()
1098 vec->x = FT_MulFix( vec->x, x_scale ); in TT_Process_Simple_Glyph()
1267 FT_Fixed x_scale = loader->size->metrics->x_scale; in TT_Process_Composite_Component() local
1271 x = FT_MulFix( x, x_scale ); in TT_Process_Composite_Component()
1583 FT_Fixed x_scale, y_scale; in load_truetype_glyph() local
[all …]

1234