Home
last modified time | relevance | path

Searched refs:transform (Results 1 – 25 of 44) sorted by relevance

12

/lvgl-latest/src/libs/thorvg/
DtvgSwImage.cpp40 static bool _genOutline(SwImage* image, const Matrix& transform, SwMpool* mpool, unsigned tid) in _genOutline() argument
59 outline->pts.push(mathTransform(&to[i], transform)); in _genOutline()
78 bool imagePrepare(SwImage* image, const Matrix& transform, const SwBBox& clipRegion, SwBBox& render… in imagePrepare() argument
80 image->direct = _onlyShifted(transform); in imagePrepare()
84 image->ox = -static_cast<int32_t>(nearbyint(transform.e13)); in imagePrepare()
85 image->oy = -static_cast<int32_t>(nearbyint(transform.e23)); in imagePrepare()
88 auto scaleX = sqrtf((transform.e11 * transform.e11) + (transform.e21 * transform.e21)); in imagePrepare()
89 auto scaleY = sqrtf((transform.e22 * transform.e22) + (transform.e12 * transform.e12)); in imagePrepare()
92 if (tvg::zero(transform.e12) && tvg::zero(transform.e21)) image->scaled = true; in imagePrepare()
96 if (!_genOutline(image, transform, mpool, tid)) return false; in imagePrepare()
DtvgSwShape.cpp54 static bool _outlineMoveTo(SwOutline& outline, const Point* to, const Matrix& transform, bool close… in _outlineMoveTo() argument
59 outline.pts.push(mathTransform(to, transform)); in _outlineMoveTo()
65 static void _outlineLineTo(SwOutline& outline, const Point* to, const Matrix& transform) in _outlineLineTo() argument
67 outline.pts.push(mathTransform(to, transform)); in _outlineLineTo()
72 …Outline& outline, const Point* ctrl1, const Point* ctrl2, const Point* to, const Matrix& transform) in _outlineCubicTo() argument
74 outline.pts.push(mathTransform(ctrl1, transform)); in _outlineCubicTo()
77 outline.pts.push(mathTransform(ctrl2, transform)); in _outlineCubicTo()
80 outline.pts.push(mathTransform(to, transform)); in _outlineCubicTo()
104 static void _dashLineTo(SwDashStroke& dash, const Point* to, const Matrix& transform) in _dashLineTo() argument
110 _outlineMoveTo(*dash.outline, &dash.ptCur, transform); in _dashLineTo()
[all …]
DtvgFill.h57 Matrix* transform = nullptr; member
66 free(transform); in ~Impl()
83 if (transform) { in duplicate()
84 ret->pImpl->transform = static_cast<Matrix*>(malloc(sizeof(Matrix))); in duplicate()
85 *ret->pImpl->transform = *transform; in duplicate()
DtvgSvgSceneBuilder.cpp44 …ata, SvgNode* node, Shape* shape, const Box& vBox, const string& svgPath, const Matrix* transform);
99 bool isTransform = (g->transform ? true : false); in _applyLinearGradientProperty()
101 if (isTransform) finalTransform = *g->transform; in _applyLinearGradientProperty()
117 if (isTransform) fillGrad->transform(finalTransform); in _applyLinearGradientProperty()
154 bool isTransform = (g->transform ? true : false); in _applyRadialGradientProperty()
156 if (isTransform) finalTransform = *g->transform; in _applyRadialGradientProperty()
176 if (isTransform) fillGrad->transform(finalTransform); in _applyRadialGradientProperty()
214 if (node->transform) finalTransform = *node->transform; in _appendClipUseNode()
219 if (child->transform) finalTransform = *child->transform * finalTransform; in _appendClipUseNode()
238 if (node->transform && type != SvgNodeType::Mask) { in _compositionTransform()
[all …]
DtvgLottieBuilder.cpp107 static bool _updateTransform(LottieTransform* transform, float frameNo, bool autoOrient, Matrix& ma… in _updateTransform() argument
111 if (!transform) { in _updateTransform()
116 if (transform->coords) { in _updateTransform()
117 … translate(&matrix, transform->coords->x(frameNo, exps), transform->coords->y(frameNo, exps)); in _updateTransform()
119 auto position = transform->position(frameNo, exps); in _updateTransform()
124 if (autoOrient) angle = transform->position.angle(frameNo); in _updateTransform()
125 …if (transform->rotationEx) _rotationXYZ(&matrix, transform->rotationEx->x(frameNo, exps), transfor… in _updateTransform()
126 else _rotationZ(&matrix, transform->rotation(frameNo, exps) + angle); in _updateTransform()
129 auto skewAngle = transform->skewAngle(frameNo, exps); in _updateTransform()
135 _skew(&matrix, skewAngle, transform->skewAxis(frameNo, exps)); in _updateTransform()
[all …]
DtvgSwRenderer.cpp48 Matrix transform; member
104 return (width * sqrt(transform.e11 * transform.e11 + transform.e12 * transform.e12)); in validStrokeWidth()
140 …if (!shapePrepare(&shape, rshape, transform, bbox, renderRegion, mpool, tid, clips.count > 0 ? tru… in run()
154 … if (!shapeGenFillColors(&shape, fill, transform, surface, opacity, ctable)) goto err; in run()
162 shapeResetStroke(&shape, rshape, transform); in run()
164 … if (!shapeGenStrokeRle(&shape, rshape, transform, bbox, renderRegion, mpool, tid)) goto err; in run()
168 … if (!shapeGenStrokeFillColors(&shape, fill, transform, surface, opacity, ctable)) goto err; in run()
236 if (!imagePrepare(&image, transform, clipRegion, bbox, mpool, tid)) goto end; in run()
422 return rasterImage(surface, &task->image, task->transform, task->bbox, task->opacity); in renderImage()
690 void* SwRenderer::prepareCommon(SwTask* task, const Matrix& transform, const Array<RenderData>& cli… in prepareCommon() argument
[all …]
DtvgFill.cpp138 Result Fill::transform(const Matrix& m) noexcept in transform() function in Fill
140 if (!pImpl->transform) { in transform()
141 pImpl->transform = static_cast<Matrix*>(malloc(sizeof(Matrix))); in transform()
143 *pImpl->transform = m; in transform()
148 Matrix Fill::transform() const noexcept in transform() function in Fill
150 if (pImpl->transform) return *pImpl->transform; in transform()
DtvgLottieParser.cpp579 auto transform = new LottieTransform; in parseTransform() local
581 context.parent = transform; in parseTransform()
584 transform->rotationEx = new LottieTransform::RotationEx; in parseTransform()
589 if (parseCommon(transform, key)) continue; in parseTransform()
594 if (KEY_AS("k")) parsePropertyInternal(transform->position); in parseTransform()
595 … else if (KEY_AS("s") && getBool()) transform->coords = new LottieTransform::SeparateCoord; in parseTransform()
597 …else if (transform->coords && KEY_AS("x")) parseProperty<LottieProperty::Type::Float>(transform->c… in parseTransform()
598 …else if (transform->coords && KEY_AS("y")) parseProperty<LottieProperty::Type::Float>(transform->c… in parseTransform()
599 …else if (KEY_AS("x")) transform->position.exp = _expression(getStringCopy(), comp, context.layer, … in parseTransform()
602 transform->position.type = LottieProperty::Type::Position; in parseTransform()
[all …]
DtvgSwRenderer.h42 …RenderData prepare(const RenderShape& rshape, RenderData data, const Matrix& transform, Array<Rend…
43 …RenderData prepare(RenderSurface* surface, RenderData data, const Matrix& transform, Array<RenderD…
86 …RenderData prepareCommon(SwTask* task, const Matrix& transform, const Array<RenderData>& clips, ui…
DtvgSwMath.cpp269 SwPoint mathTransform(const Point* to, const Matrix& transform) in mathTransform() argument
271 auto tx = to->x * transform.e11 + to->y * transform.e12 + transform.e13; in mathTransform()
272 auto ty = to->x * transform.e21 + to->y * transform.e22 + transform.e23; in mathTransform()
DtvgText.h110 return loader->transform(shape, fontSize, italic); in load()
113 …RenderData update(RenderMethod* renderer, const Matrix& transform, Array<RenderData>& clips, uint8… in update()
135 return PP(shape)->update(renderer, transform, clips, opacity, pFlag, false); in update()
DtvgLottieProperty.h156 static void _copy(PathSet* pathset, Array<Point>& outPts, Matrix* transform) in _copy() argument
160 if (transform) { in _copy()
163 pt *= *transform; in _copy()
414 …bool operator()(float frameNo, Array<PathCommand>& cmds, Array<Point>& pts, Matrix* transform, con… in operator()
443 … roundness->modifyPath(path->cmds, path->cmdsCnt, path->pts, path->ptsCnt, cmds1, pts1, transform); in operator()
446 …rn roundness->modifyPath(path->cmds, path->cmdsCnt, path->pts, path->ptsCnt, cmds, pts, transform); in operator()
451 _copy(path, pts, transform); in operator()
461 if (transform) pt *= *transform; in operator()
472 if (transform) *p *= *transform; in operator()
490 …bool operator()(float frameNo, Array<PathCommand>& cmds, Array<Point>& pts, Matrix* transform, con… in operator()
[all …]
DtvgLottieBuilder.h41 Matrix transform; member
61 Matrix* transform = nullptr; member
77 free(transform); in ~RenderContext()
DtvgLottieExpressions.h118 …bool result(float frameNo, Array<PathCommand>& cmds, Array<Point>& pts, Matrix* transform, const L… in result()
124 (*pathset)(frameNo, cmds, pts, transform, roundness, offsetPath); in result()
163 …NUSED Array<PathCommand>&, TVG_UNUSED Array<Point>&, TVG_UNUSED Matrix* transform, TVG_UNUSED cons… in result()
DtvgPicture.h94 …RenderData update(RenderMethod* renderer, const Matrix& transform, Array<RenderData>& clips, uint8… in update()
105 auto m = transform * Matrix{scale, 0, 0, 0, scale, 0, 0, 0, 1}; in update()
114 rd = paint->pImpl->update(renderer, transform, clips, opacity, flag, false); in update()
DtvgSwCommon.h499 SwPoint mathTransform(const Point* to, const Matrix& transform);
504 bool shapePrepare(SwShape* shape, const RenderShape* rshape, const Matrix& transform, const SwBBox&…
508 void shapeResetStroke(SwShape* shape, const RenderShape* rshape, const Matrix& transform);
509 bool shapeGenStrokeRle(SwShape* shape, const RenderShape* rshape, const Matrix& transform, const Sw…
512 bool shapeGenFillColors(SwShape* shape, const Fill* fill, const Matrix& transform, SwSurface* surfa…
513 bool shapeGenStrokeFillColors(SwShape* shape, const Fill* fill, const Matrix& transform, SwSurface*…
519 void strokeReset(SwStroke* stroke, const RenderShape* shape, const Matrix& transform);
524 bool imagePrepare(SwImage* image, const Matrix& transform, const SwBBox& clipRegion, SwBBox& render…
530 bool fillGenColorTable(SwFill* fill, const Fill* fdata, const Matrix& transform, SwSurface* surface…
569 bool rasterImage(SwSurface* surface, SwImage* image, const Matrix& transform, const SwBBox& bbox, u…
DtvgPaint.cpp92 auto& rm = P(cmpTarget)->transform(); in _compFastTrack()
316 const auto& m = this->transform(origin); in bounds()
422 Result Paint::transform(const Matrix& m) noexcept in transform() function in Paint
424 if (pImpl->transform(m)) return Result::Success; in transform()
429 Matrix Paint::transform() noexcept in transform() function in Paint
431 return pImpl->transform(); in transform()
DtvgPaint.h111 bool transform(const Matrix& m) in transform() function
120 Matrix& transform(bool origin = false)
DtvgSvgCssStyle.cpp192 if (from->transform && !(to->style->flags & SvgStyleFlags::Transform)) { in cssCopyStyleAttr()
193 to->transform = (Matrix*)malloc(sizeof(Matrix)); in cssCopyStyleAttr()
194 if (to->transform) { in cssCopyStyleAttr()
195 *to->transform = *from->transform; in cssCopyStyleAttr()
DtvgSvgLoaderCommon.h454 Matrix* transform; member
462 free(transform); in clear()
515 Matrix* transform; member
DtvgSwFill.cpp213 bool _prepareLinear(SwFill* fill, const LinearGradient* linear, const Matrix& transform) in _prepareLinear() argument
233 auto gradTransform = linear->transform(); in _prepareLinear()
237 gradTransform = transform * gradTransform; in _prepareLinear()
239 gradTransform = transform; in _prepareLinear()
258 bool _prepareRadial(SwFill* fill, const RadialGradient* radial, const Matrix& transform) in _prepareRadial() argument
300 auto gradTransform = radial->transform(); in _prepareRadial()
303 if (isTransformation) gradTransform = transform * gradTransform; in _prepareRadial()
305 gradTransform = transform; in _prepareRadial()
828 bool fillGenColorTable(SwFill* fill, const Fill* fdata, const Matrix& transform, SwSurface* surface… in fillGenColorTable() argument
835 … if (!_prepareLinear(fill, static_cast<const LinearGradient*>(fdata), transform)) return false; in fillGenColorTable()
[all …]
DtvgLoadModule.h108 virtual bool transform(Paint* paint, float fontSize, bool italic) = 0;
DtvgScene.h113 …RenderData update(RenderMethod* renderer, const Matrix& transform, Array<RenderData>& clips, uint8… in update()
124 paint->pImpl->update(renderer, transform, clips, opacity, flag, false); in update()
/lvgl-latest/tests/src/test_cases/draw/
Dtest_clip_corner.c17 static lv_obj_t * create_panel(int32_t radius, bool transform) in create_panel() argument
29 if(transform) lv_obj_set_style_transform_rotation(parent, 300, 0); in create_panel()
/lvgl-latest/docs/_static/css/
Dcustom.css60 transition: transform .3s ease-out;
64 transform: translate(0, -10px);

12