Lines Matching refs:comp

251 static void _buildLayer(jerry_value_t context, float frameNo, LottieLayer* layer, LottieLayer* comp  in _buildLayer()  argument
283 auto startTime = jerry_number(exp->comp->timeAtFrame(layer->startFrame)); in _buildLayer()
327 jerry_object_set_native_ptr(toComp, nullptr, comp); in _buildLayer()
667 auto comp = static_cast<LottieLayer*>(data->obj); in _layer() local
673 layer = comp->layerByIdx(idx); in _layer()
677 layer = comp->layerById(_idByName(args[0])); in _layer()
684 _buildLayer(obj, data->frameNo, layer, comp, data->exp); in _layer()
694 auto frameNo = exp->comp->frameAtTime(time); in _nearestKey()
736 auto frameNo = exp->comp->frameAtTime(time); in _valueAtTime()
759 auto frameNo = exp->comp->frameAtTime(time); in _velocityAtTime()
763 auto elapsed = (cframe - pframe) / (exp->comp->frameRate); in _velocityAtTime()
793 auto frameNo = exp->comp->frameAtTime(time); in _speedAtTime()
797 auto elapsed = (cframe - pframe) / (exp->comp->frameRate); in _speedAtTime()
868 exp->loop.in = exp->comp->frameAtTime((float)jerry_value_as_int32(args[1])); in _loopOutDuration()
917 exp->loop.in = exp->comp->frameAtTime((float)jerry_value_as_int32(args[1])); in _loopInDuration()
933 auto time = jerry_number(exp->comp->timeAtFrame(frameNo)); in _key()
1111 auto comp = static_cast<LottieLayer*>(data->obj); in _comp() local
1112 auto layer = comp->layerById(_idByName(args[0])); in _comp()
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
1231 data->obj = comp; in buildComp()
1237 jerry_object_set_native_ptr(layer, &freeCb, _expcontent(exp, frameNo, comp)); in buildComp()
1240 auto numLayers = jerry_number(comp->children.count); 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()
1258 auto width = jerry_number(comp->w); in buildComp()
1262 auto height = jerry_number(comp->h); in buildComp()
1266 auto duration = jerry_number(comp->duration()); in buildComp()
1273 auto frameDuration = jerry_number(1.0f / comp->frameRate); in buildComp()
1282 auto name = jerry_string((jerry_char_t*)comp->name, strlen(comp->name), JERRY_ENCODING_UTF8); in buildComp()
1293 comp = jerry_function_external(_comp); in buildGlobal()
1294 jerry_object_set_native_ptr(comp, &freeCb, _expcontent(nullptr, 0.0f, nullptr)); in buildGlobal()
1295 jerry_object_set_sz(global, "comp", comp); in buildGlobal()
1335 buildComp(exp->comp, frameNo, exp); in evaluate()
1338 buildComp(thisComp, frameNo, exp->layer->comp, exp); in evaluate()
1345 _buildLayer(thisLayer, frameNo, exp->layer, exp->comp->root, exp); in evaluate()
1378 jerry_value_free(comp); in ~LottieExpressions()