/lvgl-latest/src/libs/thorvg/ |
D | tvgSwMath.cpp | 160 void mathRotate(SwPoint& pt, SwFixed angle) in mathRotate() argument 162 if (angle == 0 || pt.zero()) return; in mathRotate() 164 Point v = pt.toPoint(); in mathRotate() 170 pt.x = SwCoord(nearbyint((v.x * cosv - v.y * sinv) * 64.0f)); in mathRotate() 171 pt.y = SwCoord(nearbyint((v.x * sinv + v.y * cosv) * 64.0f)); in mathRotate() 182 SwFixed mathAtan(const SwPoint& pt) in mathAtan() argument 184 if (pt.zero()) return 0; in mathAtan() 185 return SwFixed(tvg::atan2(TO_FLOAT(pt.y), TO_FLOAT(pt.x)) * (180.0f / MATH_PI) * 65536.0f); in mathAtan() 202 SwFixed mathLength(const SwPoint& pt) in mathLength() argument 204 if (pt.zero()) return 0; in mathLength() [all …]
|
D | tvgSwRle.cpp | 262 static inline SwPoint UPSCALE(const SwPoint& pt) in UPSCALE() argument 264 …return {SwCoord(((unsigned long) pt.x) << (PIXEL_BITS - 6)), SwCoord(((unsigned long) pt.y) << (PI… in UPSCALE() 268 static inline SwPoint TRUNC(const SwPoint& pt) in TRUNC() argument 270 return {pt.x >> PIXEL_BITS, pt.y >> PIXEL_BITS}; in TRUNC() 280 static inline SwPoint SUBPIXELS(const SwPoint& pt) in SUBPIXELS() argument 282 …return {SwCoord(((unsigned long) pt.x) << PIXEL_BITS), SwCoord(((unsigned long) pt.y) << PIXEL_BIT… in SUBPIXELS() 296 static inline SwCoord HYPOT(SwPoint pt) in HYPOT() argument 298 if (pt.x < 0) pt.x = -pt.x; in HYPOT() 299 if (pt.y < 0) pt.y = -pt.y; in HYPOT() 300 return ((pt.x > pt.y) ? (pt.x + (3 * pt.y >> 3)) : (pt.y + (3 * pt.x >> 3))); in HYPOT() [all …]
|
D | tvgSwStroke.cpp | 45 static inline void SCALE(const SwStroke& stroke, SwPoint& pt) in SCALE() argument 47 pt.x = static_cast<SwCoord>(pt.x * stroke.sx); in SCALE() 48 pt.y = static_cast<SwCoord>(pt.y * stroke.sy); in SCALE() 123 auto pt = border->pts + border->ptsCnt; in _borderCubicTo() local 126 pt[0] = ctrl1; in _borderCubicTo() 127 pt[1] = ctrl2; in _borderCubicTo() 128 pt[2] = to; in _borderCubicTo() 360 auto pt = stroke.center + delta; in _firstSubPath() local 362 _borderMoveTo(border, pt); in _firstSubPath() 364 pt = stroke.center - delta; in _firstSubPath() [all …]
|
D | tvgMath.cpp | 200 void operator*=(Point& pt, const Matrix& m) in operator *=() argument 202 auto tx = pt.x * m.e11 + pt.y * m.e12 + m.e13; in operator *=() 203 auto ty = pt.x * m.e21 + pt.y * m.e22 + m.e23; in operator *=() 204 pt.x = tx; in operator *=() 205 pt.y = ty; in operator *=() 209 Point operator*(const Point& pt, const Matrix& m) in operator *() argument 211 auto tx = pt.x * m.e11 + pt.y * m.e12 + m.e13; in operator *() 212 auto ty = pt.x * m.e21 + pt.y * m.e22 + m.e23; in operator *() 361 …Point pt ={a * start.x + b * ctrl1.x + c * ctrl2.x + d * end.x, a * start.y + b * ctrl1.y + c * ct… in angle() local 362 pt.x *= 3; in angle() [all …]
|
D | tvgMath.h | 176 void operator*=(Point& pt, const Matrix& m); 177 Point operator*(const Point& pt, const Matrix& m); 252 static inline void log(const Point& pt) in log() argument 254 TVGLOG("COMMON", "Point: [%f %f]", pt.x, pt.y); in log()
|
D | tvgPaint.cpp | 333 Point pt[4] = {{tx, ty}, {tx + tw, ty}, {tx + tw, ty + th}, {tx, ty + th}}; in bounds() local 343 pt[i] *= m; in bounds() 345 if (pt[i].x < x1) x1 = pt[i].x; in bounds() 346 if (pt[i].x > x2) x2 = pt[i].x; in bounds() 347 if (pt[i].y < y1) y1 = pt[i].y; in bounds() 348 if (pt[i].y > y2) y2 = pt[i].y; in bounds()
|
D | tvgLottieParser.cpp | 212 auto pt = pts.begin(); in getValue() local 229 outPts.push(*pt); in getValue() 231 for (++pt, ++out, ++in; pt < pts.end(); ++pt, ++out, ++in) { in getValue() 233 outPts.push(*(pt - 1) + *(out - 1)); in getValue() 234 outPts.push(*pt + *in); in getValue() 235 outPts.push(*pt); in getValue() 272 Point pt; in getValue() local 273 getValue(pt); in getValue() 274 pts.push(pt); in getValue() 318 bool LottieParser::getValue(Point& pt) in getValue() argument [all …]
|
D | tvgLottieParser.h | 58 void getInterpolatorPoint(Point& pt); 69 bool getValue(Point& pt);
|
D | tvgSwRasterTexmap.h | 28 Point pt; member 652 float x[3] = {polygon.vertex[0].pt.x, polygon.vertex[1].pt.x, polygon.vertex[2].pt.x}; in _rasterPolygonImage() 653 float y[3] = {polygon.vertex[0].pt.y, polygon.vertex[1].pt.y, polygon.vertex[2].pt.y}; in _rasterPolygonImage() 1134 vertices[i].pt *= transform; in _rasterTexmapPolygon() 1135 if (vertices[i].pt.y < ys) ys = vertices[i].pt.y; in _rasterTexmapPolygon() 1136 if (vertices[i].pt.y > ye) ye = vertices[i].pt.y; in _rasterTexmapPolygon()
|
D | tvgLottieModifier.cpp | 150 auto nonDegeneratedCubic = [&](uint32_t cmd, uint32_t pt) { in line() argument 151 …d] == PathCommand::CubicTo && !tvg::zero(inPts[pt] - inPts[pt + 1]) && !tvg::zero(inPts[pt + 2] - … in line()
|
D | tvgLottieProperty.h | 162 Point pt = pathset->pts[i]; in _copy() local 163 pt *= *transform; in _copy() 164 outPts.push(pt); in _copy() 460 auto pt = lerp(*s, *e, t); in operator() local 461 if (transform) pt *= *transform; in operator() 462 pts.push(pt); in operator()
|
D | tvgSwCommon.h | 488 void mathRotate(SwPoint& pt, SwFixed angle); 490 SwFixed mathAtan(const SwPoint& pt); 496 SwFixed mathLength(const SwPoint& pt);
|
/lvgl-latest/src/draw/ |
D | lv_draw_vector.c | 100 lv_fpoint_t * pt = lv_array_front(&path->points); in lv_matrix_transform_path() local 103 lv_matrix_transform_point(matrix, &pt[i]); in lv_matrix_transform_path() 251 lv_fpoint_t pt = {x, y}; in lv_vector_path_append_rect() local 252 lv_vector_path_move_to(path, &pt); in lv_vector_path_append_rect() 253 pt.x += w; in lv_vector_path_append_rect() 254 lv_vector_path_line_to(path, &pt); in lv_vector_path_append_rect() 255 pt.y += h; in lv_vector_path_append_rect() 256 lv_vector_path_line_to(path, &pt); in lv_vector_path_append_rect() 257 pt.x -= w; in lv_vector_path_append_rect() 258 lv_vector_path_line_to(path, &pt); in lv_vector_path_append_rect() [all …]
|
/lvgl-latest/tests/src/test_cases/ |
D | test_svg_anim.c | 122 float * pt = (float *)(&l->data); in testAnimateMotion() local 123 TEST_ASSERT_EQUAL_FLOAT(pt[0], 0.5f); in testAnimateMotion() 124 TEST_ASSERT_EQUAL_FLOAT(pt[1], 0.8f); in testAnimateMotion() 125 TEST_ASSERT_EQUAL_FLOAT(pt[2], 1.0f); in testAnimateMotion() 216 float * pt = (float *)(&l->data); in testAnimateTransform() local 217 TEST_ASSERT_EQUAL_FLOAT(pt[0], 0.0f); in testAnimateTransform() 223 pt = (float *)(&ll->data); in testAnimateTransform() 224 TEST_ASSERT_EQUAL_FLOAT(pt[0], 0.5f); in testAnimateTransform() 228 pt = (float *)(&ll->data); in testAnimateTransform() 229 TEST_ASSERT_EQUAL_FLOAT(pt[0], 0.2f); in testAnimateTransform() [all …]
|
/lvgl-latest/src/libs/svg/ |
D | lv_svg_render.c | 473 lv_fpoint_t pt = {points[0].x, points[0].y}; in _set_polyline_attr() local 474 lv_vector_path_move_to(poly->path, &pt); in _set_polyline_attr() 476 pt.x = points[i].x; in _set_polyline_attr() 477 pt.y = points[i].y; in _set_polyline_attr() 478 lv_vector_path_line_to(poly->path, &pt); in _set_polyline_attr() 479 CALC_BOUNDS(pt, poly->bounds); in _set_polyline_attr() 525 lv_fpoint_t pt = {points[0].x, points[0].y}; in _set_path_attr() local 526 lv_vector_path_move_to(poly->path, &pt); in _set_path_attr() 527 CALC_BOUNDS(pt, poly->bounds); in _set_path_attr() 531 lv_fpoint_t pt = {points[0].x, points[0].y}; in _set_path_attr() local [all …]
|
D | lv_svg_parser.c | 822 lv_svg_point_t * pt = (lv_svg_point_t *)(&list->data) + point_cnt; in _process_points_value() local 825 pt->x = val_number; in _process_points_value() 828 pt->y = val_number; in _process_points_value() 1829 lv_svg_point_t * pt = (lv_svg_point_t *)(&list->data); in _parse_anim_value() local 1833 pt->x = val_number; in _parse_anim_value() 1836 pt->y = val_number; in _parse_anim_value()
|
/lvgl-latest/src/draw/vg_lite/ |
D | lv_vg_lite_path.c | 203 const point_t * pt = (point_t *)data; in path_bounds_iter_cb() local 209 if(pt[i].x < bounds->min_x) bounds->min_x = pt[i].x; in path_bounds_iter_cb() 210 if(pt[i].y < bounds->min_y) bounds->min_y = pt[i].y; in path_bounds_iter_cb() 211 if(pt[i].x > bounds->max_x) bounds->max_x = pt[i].x; in path_bounds_iter_cb() 212 if(pt[i].y > bounds->max_y) bounds->max_y = pt[i].y; in path_bounds_iter_cb()
|
/lvgl-latest/tests/src/test_cases/draw/ |
D | test_draw_vector.c | 290 lv_fpoint_t * pt = lv_array_at(&path->points, 0); in test_transform() local 292 TEST_ASSERT_EQUAL_FLOAT(210.0f, pt[0].x); in test_transform() 293 TEST_ASSERT_EQUAL_FLOAT(210.0f, pt[0].y); in test_transform() 294 TEST_ASSERT_EQUAL_FLOAT(120.0f, pt[1].x); in test_transform() 295 TEST_ASSERT_EQUAL_FLOAT(120.0f, pt[1].y); in test_transform()
|
/lvgl-latest/src/draw/sw/ |
D | lv_draw_sw_vector.c | 97 lv_fpoint_t * pt = lv_array_at(&p->points, pidx); in _set_paint_shape() local 98 tvg_shape_move_to(obj, pt->x, pt->y); in _set_paint_shape() 103 lv_fpoint_t * pt = lv_array_at(&p->points, pidx); in _set_paint_shape() local 104 tvg_shape_line_to(obj, pt->x, pt->y); in _set_paint_shape()
|
/lvgl-latest/src/draw/nxp/vglite/ |
D | lv_draw_vglite_arc.c | 244 static uint16_t _get_bez_t_from_pos(float pt, cubic_cont_pt cp, bool dec) in _get_bez_t_from_pos() argument 255 if((a_pt > pt) != dec) { in _get_bez_t_from_pos()
|
/lvgl-latest/docs/details/main-components/ |
D | font.rst | 433 wh=($(identify -format '%[width]pt %[height]pt' "${input?}"))
|