Lines Matching refs:frameNo
42 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()
167 auto position = _value(frameNo, &transform->position); in _buildTransform()
171 auto scale = _value(frameNo, &transform->scale); in _buildTransform()
175 auto rotation = _value(frameNo, &transform->rotation); in _buildTransform()
179 auto opacity = _value(frameNo, &transform->opacity); in _buildTransform()
187 static jerry_value_t _buildGroup(LottieGroup* group, float frameNo) in _buildGroup() argument
194 _buildTransform(obj, frameNo, static_cast<LottieTransform*>(*c)); in _buildGroup()
198 jerry_object_set_native_ptr(obj, &freeCb, _expcontent(nullptr, frameNo, group)); in _buildGroup()
204 static jerry_value_t _buildPolystar(LottiePolyStar* polystar, float frameNo) in _buildPolystar() argument
211 auto innerRadius = jerry_number(polystar->innerRadius(frameNo)); in _buildPolystar()
214 auto outerRadius = jerry_number(polystar->outerRadius(frameNo)); in _buildPolystar()
217 auto innerRoundness = jerry_number(polystar->innerRoundness(frameNo)); in _buildPolystar()
220 auto outerRoundness = jerry_number(polystar->outerRoundness(frameNo)); in _buildPolystar()
223 auto rotation = jerry_number(polystar->rotation(frameNo)); in _buildPolystar()
226 auto ptsCnt = jerry_number(polystar->ptsCnt(frameNo)); in _buildPolystar()
234 static jerry_value_t _buildTrimpath(LottieTrimpath* trimpath, float frameNo) in _buildTrimpath() argument
237 auto start = jerry_number(trimpath->start(frameNo)); in _buildTrimpath()
240 auto end = jerry_number(trimpath->end(frameNo)); in _buildTrimpath()
243 auto offset = jerry_number(trimpath->offset(frameNo)); in _buildTrimpath()
251 static void _buildLayer(jerry_value_t context, float frameNo, LottieLayer* layer, LottieLayer* comp… in _buildLayer() argument
307 _buildTransform(context, frameNo, layer->transform); in _buildLayer()
333 jerry_object_set_native_ptr(content, &freeCb, _expcontent(exp, frameNo, layer)); in _buildLayer()
649 … case LottieObject::Group: return _buildGroup(static_cast<LottieGroup*>(target), data->frameNo); in _content()
656 …LottieObject::Polystar: return _buildPolystar(static_cast<LottiePolyStar*>(target), data->frameNo); in _content()
657 …LottieObject::Trimpath: return _buildTrimpath(static_cast<LottieTrimpath*>(target), data->frameNo); in _content()
684 _buildLayer(obj, data->frameNo, layer, comp, data->exp); in _layer()
694 auto frameNo = exp->comp->frameAtTime(time); in _nearestKey() local
695 auto index = jerry_number(exp->property->nearest(frameNo)); in _nearestKey()
709 return _value(data->frameNo, property); in _property()
721 … jerry_object_set_native_ptr(group, &freeCb, _expcontent(data->exp, data->frameNo, data->obj)); in _propertyGroup()
736 auto frameNo = exp->comp->frameAtTime(time); in _valueAtTime() local
737 return _value(frameNo, exp->property); in _valueAtTime()
759 auto frameNo = exp->comp->frameAtTime(time); in _velocityAtTime() local
760 auto key = exp->property->nearest(frameNo); in _velocityAtTime()
761 auto pframe = exp->property->frameNo(key - 1); in _velocityAtTime()
762 auto cframe = exp->property->frameNo(key); in _velocityAtTime()
793 auto frameNo = exp->comp->frameAtTime(time); in _speedAtTime() local
794 auto key = exp->property->nearest(frameNo); in _speedAtTime()
795 auto pframe = exp->property->frameNo(key - 1); in _speedAtTime()
796 auto cframe = exp->property->frameNo(key); in _speedAtTime()
932 auto frameNo = exp->property->frameNo(key); in _key() local
933 auto time = jerry_number(exp->comp->timeAtFrame(frameNo)); in _key()
934 auto value = _value(frameNo, exp->property); in _key()
1019 static void _buildProperty(float frameNo, jerry_value_t context, LottieExpression* exp) in _buildProperty() argument
1021 auto value = _value(frameNo, exp->property); in _buildProperty()
1089 jerry_object_set_native_ptr(propertyGroup, &freeCb, _expcontent(exp, frameNo, exp->object)); in _buildProperty()
1100 jerry_object_set_native_ptr(content, &freeCb, _expcontent(exp, frameNo, exp->layer)); in _buildProperty()
1118 _buildLayer(obj, data->frameNo, layer, comp, data->exp); in _comp()
1226 void LottieExpressions::buildComp(jerry_value_t context, float frameNo, LottieLayer* comp, LottieEx… in buildComp() argument
1230 data->frameNo = frameNo; in buildComp()
1237 jerry_object_set_native_ptr(layer, &freeCb, _expcontent(exp, frameNo, comp)); in buildComp()
1246 void LottieExpressions::buildComp(LottieComposition* comp, float frameNo, LottieExpression* exp) in buildComp() argument
1248 buildComp(this->comp, frameNo, comp->root, exp); in buildComp()
1328 jerry_value_t LottieExpressions::evaluate(float frameNo, LottieExpression* exp) in evaluate() argument
1335 buildComp(exp->comp, frameNo, exp); in evaluate()
1338 buildComp(thisComp, frameNo, exp->layer->comp, exp); in evaluate()
1341 _buildProperty(frameNo, global, exp); in evaluate()
1345 _buildLayer(thisLayer, frameNo, exp->layer, exp->comp->root, exp); in evaluate()
1349 _buildProperty(frameNo, thisProperty, exp); in evaluate()
1352 …if (exp->object->type == LottieObject::Transform) _buildTransform(global, frameNo, static_cast<Lot… in evaluate()