Home
last modified time | relevance | path

Searched refs:frameNo (Results 1 – 9 of 9) sorted by relevance

/lvgl-latest/src/libs/thorvg/
DtvgLottieProperty.h50 T interpolate(LottieScalarFrame<T>* next, float frameNo) in interpolate()
52 auto t = (frameNo - no) / (next->no - no); in interpolate()
75 T interpolate(LottieVectorFrame* next, float frameNo) in interpolate()
77 auto t = (frameNo - no) / (next->no - no); in interpolate()
93 float angle(LottieVectorFrame* next, float frameNo) in angle()
100 auto t = (frameNo - no) / (next->no - no); in angle()
128 virtual float frameNo(int32_t key) = 0;
186 uint32_t _bsearch(T* frames, float frameNo) in _bsearch() argument
194 if (frameNo < frame->no) high = mid - 1; in _bsearch()
204 uint32_t _nearest(T* frames, float frameNo) in _nearest() argument
[all …]
DtvgLottieBuilder.h109 void updateEffect(LottieLayer* layer, float frameNo);
110 void updateLayer(LottieComposition* comp, Scene* scene, LottieLayer* layer, float frameNo);
111 bool updateMatte(LottieComposition* comp, float frameNo, Scene* scene, LottieLayer* layer);
112 void updatePrecomp(LottieComposition* comp, LottieLayer* precomp, float frameNo);
115 void updateText(LottieLayer* layer, float frameNo);
116 void updateMaskings(LottieLayer* layer, float frameNo);
117 void updateTransform(LottieLayer* layer, float frameNo);
118 void updateChildren(LottieGroup* parent, float frameNo, Inlist<RenderContext>& contexts);
119 …void updateGroup(LottieGroup* parent, LottieObject** child, float frameNo, Inlist<RenderContext>& …
120 …void updateTransform(LottieGroup* parent, LottieObject** child, float frameNo, Inlist<RenderContex…
[all …]
DtvgLottieExpressions.h47 bool result(float frameNo, NumType& out, LottieExpression* exp) in result()
49 auto bm_rt = evaluate(frameNo, exp); in result()
55 out = (*prop)(frameNo); in result()
62 bool result(float frameNo, Point& out, LottieExpression* exp) in result()
64 auto bm_rt = evaluate(frameNo, exp); in result()
68 out = (*prop)(frameNo); in result()
82 bool result(float frameNo, RGB24& out, LottieExpression* exp) in result()
84 auto bm_rt = evaluate(frameNo, exp); in result()
88 out = (*color)(frameNo); in result()
105 bool result(float frameNo, Fill* fill, LottieExpression* exp) in result()
[all …]
DtvgLottieBuilder.cpp107 static bool _updateTransform(LottieTransform* transform, float frameNo, bool autoOrient, Matrix& ma… in _updateTransform() argument
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 …&matrix, transform->rotationEx->x(frameNo, exps), transform->rotationEx->y(frameNo, exps), transfo… 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()
138 auto scale = transform->scale(frameNo, exps); in _updateTransform()
142 auto anchor = transform->anchor(frameNo, exps); in _updateTransform()
[all …]
DtvgLottieExpressions.cpp42 float frameNo; member
64 static ExpContent* _expcontent(LottieExpression* exp, float frameNo, LottieObject* obj) in _expcontent() argument
68 data->frameNo = frameNo; in _expcontent()
112 static jerry_value_t _value(float frameNo, LottieProperty* property) in _value() argument
117 auto pos = (*static_cast<LottiePoint*>(property))(frameNo); in _value()
127 return jerry_number((*static_cast<LottieFloat*>(property))(frameNo)); in _value()
130 return jerry_number((*static_cast<LottieOpacity*>(property))(frameNo)); in _value()
139 auto pos = (*static_cast<LottiePosition*>(property))(frameNo); in _value()
156 static void _buildTransform(jerry_value_t context, float frameNo, LottieTransform* transform) in _buildTransform() argument
163 auto anchorPoint = _value(frameNo, &transform->anchor); in _buildTransform()
[all …]
DtvgLottieLoader.cpp40 builder->update(comp, frameNo); in run()
334 auto frameNo = no + startFrame(); in frame() local
337 frameNo *= 10000.0f; in frame()
338 frameNo = nearbyintf(frameNo); in frame()
339 frameNo *= 0.0001f; in frame()
342 if (fabsf(this->frameNo - frameNo) <= 0.0009f) return false; in frame()
346 this->frameNo = frameNo; in frame()
368 return frameNo - startFrame(); in curFrame()
DtvgLottieModel.cpp116 void LottieTextRange::range(float frameNo, float totalLen, float& start, float& end) in range() argument
119 auto offset = this->offset(frameNo) / divisor; in range()
120 start = nearbyintf(this->start(frameNo) / divisor) + offset; in range()
121 end = nearbyintf(this->end(frameNo) / divisor) + offset; in range()
162 void LottieTrimpath::segment(float frameNo, float& start, float& end, LottieExpressions* exps) in segment() argument
164 start = this->start(frameNo, exps) * 0.01f; in segment()
166 end = this->end(frameNo, exps) * 0.01f; in segment()
169 auto o = fmodf(this->offset(frameNo, exps), 360.0f) / 360.0f; //0 ~ 1 in segment()
276 Fill* LottieGradient::fill(float frameNo, LottieExpressions* exps) in fill() argument
278 auto opacity = this->opacity(frameNo); in fill()
[all …]
DtvgLottieModel.h58 float dashOffset(float frameNo, LottieExpressions* exps) in dashOffset()
60 return dash(0)(frameNo, exps); in dashOffset()
63 float dashGap(float frameNo, LottieExpressions* exps) in dashGap()
65 return dash(2)(frameNo, exps); in dashGap()
68 float dashSize(float frameNo, LottieExpressions* exps) in dashSize()
70 auto d = dash(1)(frameNo, exps); in dashSize()
221 void range(float frameNo, float totalLen, float& start, float& end);
310 void segment(float frameNo, float& start, float& end, LottieExpressions* exps);
592 Fill* fill(float frameNo, LottieExpressions* exps);
755 uint8_t opacity(float frameNo) in opacity()
[all …]
DtvgLottieLoader.h41 float frameNo = 0.0f; //current frame number variable