Home
last modified time | relevance | path

Searched refs:PathCommand (Results 1 – 14 of 14) sorted by relevance

/lvgl-latest/src/libs/thorvg/
DtvgLottieModifier.h41 …bool modifyPath(const PathCommand* inCmds, uint32_t inCmdsCnt, const Point* inPts, uint32_t inPtsC…
42 …bool modifyPolystar(const Array<PathCommand>& inCmds, const Array<Point>& inPts, Array<PathCommand
55 …bool modifyPath(const PathCommand* inCmds, uint32_t inCmdsCnt, const Point* inPts, uint32_t inPtsC…
56 …bool modifyPolystar(const Array<PathCommand>& inCmds, const Array<Point>& inPts, Array<PathCommand
57 …bool modifyRect(const PathCommand* inCmds, uint32_t inCmdsCnt, const Point* inPts, uint32_t inPtsC…
70PathCommand* inCmds, uint32_t inCmdsCnt, const Point* inPts, uint32_t& currentPt, uint32_t current…
71 …ine, const Line& nextLine, uint32_t movetoIndex, bool nextClose, Array<PathCommand>& cmds, Array<P…
DtvgLottieModifier.cpp33 static void _roundCorner(Array<PathCommand>& cmds, Array<Point>& pts, const Point& prev, const Poin… in _roundCorner()
47 cmds.push(PathCommand::LineTo); in _roundCorner()
48 cmds.push(PathCommand::CubicTo); in _roundCorner()
102 …, const Line& nextLine, uint32_t movetoOutIndex, bool nextClose, Array<PathCommand>& outCmds, Arra… in corner()
113 outCmds.push(PathCommand::CubicTo); in corner()
121 outCmds.push(PathCommand::LineTo); in corner()
125 outCmds.push(PathCommand::LineTo); in corner()
133PathCommand* inCmds, uint32_t inCmdsCnt, const Point* inPts, uint32_t& currentPt, uint32_t current… in line()
140 …if (inCmds[currentCmd - 1] != PathCommand::LineTo) state.line = _offset(inPts[currentPt - 1], inPt… in line()
143 outCmds.push(PathCommand::MoveTo); in line()
[all …]
DtvgSvgPath.cpp103 void _pathAppendArcTo(Array<PathCommand>* cmds, Array<Point>* pts, Point* cur, Point* curCtl, float… in _pathAppendArcTo()
251 cmds->push(PathCommand::CubicTo); in _pathAppendArcTo()
317 static bool _processCommand(Array<PathCommand>* cmds, Array<Point>* pts, char cmd, float* arr, int … in _processCommand()
354 cmds->push(PathCommand::MoveTo); in _processCommand()
363 cmds->push(PathCommand::LineTo); in _processCommand()
371 cmds->push(PathCommand::CubicTo); in _processCommand()
386 if ((cmds->count > 1) && (cmds->last() == PathCommand::CubicTo) && in _processCommand()
393 cmds->push(PathCommand::CubicTo); in _processCommand()
412 cmds->push(PathCommand::CubicTo); in _processCommand()
427 if ((cmds->count > 1) && (cmds->last() == PathCommand::CubicTo) && in _processCommand()
[all …]
DtvgSwShape.cpp280 const PathCommand* cmds = rshape->path.cmds.data + shiftCmds; in _outlineLength()
292 if (cmds[0] == PathCommand::MoveTo) { in _outlineLength()
301 case PathCommand::Close: { in _outlineLength()
306 case PathCommand::MoveTo: { in _outlineLength()
312 case PathCommand::LineTo: { in _outlineLength()
317 case PathCommand::CubicTo: { in _outlineLength()
331 const PathCommand* cmds = rshape->path.cmds.data; in _genDashOutline()
378 if (cmds[0] == PathCommand::MoveTo) { in _genDashOutline()
387 case PathCommand::Close: { in _genDashOutline()
391 case PathCommand::MoveTo: { in _genDashOutline()
[all …]
DtvgLottieBuilder.cpp390 PathCommand commands[] = { in _appendRect()
391 PathCommand::MoveTo, PathCommand::LineTo, PathCommand::LineTo, in _appendRect()
392 PathCommand::LineTo, PathCommand::Close in _appendRect()
418 PathCommand commands[cmdCnt]; in _appendRect()
430 …commands[0] = PathCommand::MoveTo; commands[1] = PathCommand::LineTo; commands[2] = PathCommand::C… in _appendRect()
431 …commands[3] = PathCommand::LineTo; commands[4] = PathCommand::CubicTo;commands[5] = PathCommand::L… in _appendRect()
432 …commands[6] = PathCommand::CubicTo; commands[7] = PathCommand::LineTo; commands[8] = PathCommand::… in _appendRect()
433 commands[9] = PathCommand::Close; in _appendRect()
445 …commands[0] = PathCommand::MoveTo; commands[1] = PathCommand::CubicTo; commands[2] = PathCommand::… in _appendRect()
446 …commands[3] = PathCommand::CubicTo; commands[4] = PathCommand::LineTo; commands[5] = PathCommand::… in _appendRect()
[all …]
DtvgShape.h175 void append(const PathCommand* cmds, uint32_t cmdCnt, const Point* pts, uint32_t ptsCnt) in append()
177 memcpy(rs.path.cmds.end(), cmds, sizeof(PathCommand) * cmdCnt); in append()
185 rs.path.cmds.push(PathCommand::MoveTo); in moveTo()
191 rs.path.cmds.push(PathCommand::LineTo); in lineTo()
197 rs.path.cmds.push(PathCommand::CubicTo); in cubicTo()
206 if (rs.path.cmds.count > 0 && rs.path.cmds.last() == PathCommand::Close) return; in close()
208 rs.path.cmds.push(PathCommand::Close); in close()
DtvgLottieExpressions.h118 …bool result(float frameNo, Array<PathCommand>& cmds, Array<Point>& pts, Matrix* transform, const L… in result()
163 …template<typename Property> bool result(TVG_UNUSED float, TVG_UNUSED Array<PathCommand>&, TVG_UNUS… in result()
DtvgLottieCommon.h36 PathCommand* cmds = nullptr;
DtvgLottieProperty.h175 static void _copy(PathSet* pathset, Array<PathCommand>& outCmds) in _copy()
177 Array<PathCommand> inCmds; in _copy()
414 …bool operator()(float frameNo, Array<PathCommand>& cmds, Array<Point>& pts, Matrix* transform, con… in operator()
441 Array<PathCommand> cmds1(path->cmdsCnt); in operator()
477 Array<PathCommand> cmds1; in operator()
490 …bool operator()(float frameNo, Array<PathCommand>& cmds, Array<Point>& pts, Matrix* transform, con… in operator()
Dthorvg.h109 enum class PathCommand enum
992 …Result appendPath(const PathCommand* cmds, uint32_t cmdCnt, const Point* pts, uint32_t ptsCnt) noe…
1126 uint32_t pathCommands(const PathCommand** cmds) const noexcept;
DtvgShape.cpp78 uint32_t Shape::pathCommands(const PathCommand** cmds) const noexcept in pathCommands()
92 Result Shape::appendPath(const PathCommand *cmds, uint32_t cmdCnt, const Point* pts, uint32_t ptsCn… in appendPath()
DtvgLottieParser.cpp216 Array<PathCommand> outCmds; in getValue()
228 outCmds.push(PathCommand::MoveTo); in getValue()
232 outCmds.push(PathCommand::CubicTo); in getValue()
242 outCmds.push(PathCommand::CubicTo); in getValue()
243 outCmds.push(PathCommand::Close); in getValue()
DtvgRender.h187 Array<PathCommand> cmds;
DtvgCapi.cpp339 …return (Tvg_Result) reinterpret_cast<Shape*>(paint)->appendPath((const PathCommand*)cmds, cmdCnt, … in tvg_shape_append_path()
354 *cnt = reinterpret_cast<const Shape*>(paint)->pathCommands((const PathCommand**)cmds); in tvg_shape_get_path_commands()