Home
last modified time | relevance | path

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

/external/skqp/modules/skottie/src/
DSkottieLayer.cpp241 const skjson::ObjectValue& jlayer, AnimatorScope* ascope, in attachAssetRef() argument
245 const auto refId = ParseDefault<SkString>(jlayer["refId"], SkString()); in attachAssetRef()
274 sk_sp<sksg::RenderNode> AnimationBuilder::attachSolidLayer(const skjson::ObjectValue& jlayer, in attachSolidLayer() argument
277 const auto size = SkSize::Make(ParseDefault<float>(jlayer["sw"], 0.0f), in attachSolidLayer()
278 ParseDefault<float>(jlayer["sh"], 0.0f)); in attachSolidLayer()
279 const skjson::StringValue* hex_str = jlayer["sc"]; in attachSolidLayer()
285 this->log(Logger::Level::kError, &jlayer, "Could not parse solid layer."); in attachSolidLayer()
381 sk_sp<sksg::RenderNode> AnimationBuilder::attachImageLayer(const skjson::ObjectValue& jlayer, in attachImageLayer() argument
384 return this->attachAssetRef(jlayer, ascope, in attachImageLayer()
407 sk_sp<sksg::Transform> attachLayerTransform(const skjson::ObjectValue& jlayer, in attachLayerTransform()
[all …]
DSkottiePrecompLayer.cpp21 sk_sp<sksg::RenderNode> AnimationBuilder::attachPrecompLayer(const skjson::ObjectValue& jlayer, in attachPrecompLayer() argument
24 const skjson::ObjectValue* time_remap = jlayer["tm"]; in attachPrecompLayer()
26 const auto start_time = time_remap ? 0.0f : ParseDefault<float>(jlayer["st"], 0.0f), in attachPrecompLayer()
27 stretch_time = time_remap ? 1.0f : ParseDefault<float>(jlayer["sr"], 1.0f); in attachPrecompLayer()
33 auto precomp_layer = this->attachAssetRef(jlayer, in attachPrecompLayer()
/external/skia/modules/skottie/src/layers/
DPrecompLayer.cpp84 const skjson::ObjectValue& jlayer, in attachExternalPrecompLayer() argument
91 const skjson::StringValue* id = jlayer["refId"]; in attachExternalPrecompLayer()
92 const skjson::StringValue* nm = jlayer["nm"]; in attachExternalPrecompLayer()
164 sk_sp<sksg::RenderNode> AnimationBuilder::attachPrecompLayer(const skjson::ObjectValue& jlayer, in attachPrecompLayer() argument
167 if (const skjson::ObjectValue* jtm = jlayer["tm"]) { in attachPrecompLayer()
171 const auto start_time = ParseDefault<float>(jlayer["st"], 0.0f), in attachPrecompLayer()
172 stretch_time = ParseDefault<float>(jlayer["sr"], 1.0f); in attachPrecompLayer()
178 layer_info->fSize = SkSize::Make(ParseDefault<float>(jlayer["w"], 0.0f), in attachPrecompLayer()
179 ParseDefault<float>(jlayer["h"], 0.0f)); in attachPrecompLayer()
186 auto precomp_layer = this->attachExternalPrecompLayer(jlayer, *layer_info); in attachPrecompLayer()
[all …]
DSolidLayer.cpp20 sk_sp<sksg::RenderNode> AnimationBuilder::attachSolidLayer(const skjson::ObjectValue& jlayer, in attachSolidLayer() argument
22 layer_info->fSize = SkSize::Make(ParseDefault<float>(jlayer["sw"], 0.0f), in attachSolidLayer()
23 ParseDefault<float>(jlayer["sh"], 0.0f)); in attachSolidLayer()
24 const skjson::StringValue* hex_str = jlayer["sc"]; in attachSolidLayer()
30 this->log(Logger::Level::kError, &jlayer, "Could not parse solid layer."); in attachSolidLayer()
DAudioLayer.cpp53 sk_sp<sksg::RenderNode> AnimationBuilder::attachAudioLayer(const skjson::ObjectValue& jlayer, in attachAudioLayer() argument
55 const ScopedAssetRef audio_asset(this, jlayer); in attachAudioLayer()
DTextLayer.cpp177 sk_sp<sksg::RenderNode> AnimationBuilder::attachTextLayer(const skjson::ObjectValue& jlayer, in attachTextLayer() argument
400 sk_sp<sksg::RenderNode> AnimationBuilder::attachTextLayer(const skjson::ObjectValue& jlayer, in attachTextLayer() argument
402 return this->attachDiscardableAdapter<TextAdapter>(jlayer, in attachTextLayer()
DFootageLayer.cpp157 sk_sp<sksg::RenderNode> AnimationBuilder::attachFootageLayer(const skjson::ObjectValue& jlayer, in attachFootageLayer() argument
159 const ScopedAssetRef footage_asset(this, jlayer); in attachFootageLayer()
/external/skia/modules/skottie/src/
DComposition.cpp23 const skjson::ObjectValue& jlayer) { in ScopedAssetRef() argument
24 const auto refId = ParseDefault<SkString>(jlayer["refId"], SkString()); in ScopedAssetRef()
66 for (const skjson::ObjectValue* jlayer : *jlayers) { in CompositionBuilder()
67 if (!jlayer) continue; in CompositionBuilder()
70 fLayerBuilders.emplace_back(*jlayer, fSize); in CompositionBuilder()
81 abuilder.log(Logger::Level::kWarning, jlayer, in CompositionBuilder()
DCamera.cpp54 CameraAdaper::CameraAdaper(const skjson::ObjectValue& jlayer, in CameraAdaper() argument
65 this->bind(abuilder, jlayer["pe"], fZoom); in CameraAdaper()
118 sk_sp<sksg::Transform> AnimationBuilder::attachCamera(const skjson::ObjectValue& jlayer, in attachCamera() argument
122 auto adapter = sk_make_sp<CameraAdaper>(jlayer, jtransform, *this, viewport_size); in attachCamera()
DLayer.cpp305 LayerBuilder::LayerBuilder(const skjson::ObjectValue& jlayer, const SkSize& comp_size) in LayerBuilder() argument
306 : fJlayer(jlayer) in LayerBuilder()
307 , fIndex (ParseDefault<int>(jlayer["ind" ], -1)) in LayerBuilder()
308 , fParentIndex(ParseDefault<int>(jlayer["parent"], -1)) in LayerBuilder()
309 , fType (ParseDefault<int>(jlayer["ty" ], -1)) in LayerBuilder()
310 , fAutoOrient (ParseDefault<int>(jlayer["ao" ], 0)) in LayerBuilder()
312 ParseDefault<float>(jlayer["ip"], 0.0f), in LayerBuilder()
313 ParseDefault<float>(jlayer["op"], 0.0f)} in LayerBuilder()
316 if (this->isCamera() || ParseDefault<int>(jlayer["ddd"], 0)) {
DCamera.h18 CameraAdaper(const skjson::ObjectValue& jlayer,
DLayer.h20 LayerBuilder(const skjson::ObjectValue& jlayer, const SkSize& comp_size);
DSkottiePriv.h85 sk_sp<sksg::Transform> attachCamera(const skjson::ObjectValue& jlayer,
266 ScopedAssetRef(const AnimationBuilder* abuilder, const skjson::ObjectValue& jlayer);
/external/skia/modules/skottie/src/text/
DTextAdapter.cpp27 sk_sp<TextAdapter> TextAdapter::Make(const skjson::ObjectValue& jlayer, in Make() argument
61 const skjson::ObjectValue* jt = jlayer["t"]; in Make()
65 abuilder->log(Logger::Level::kError, &jlayer, "Invalid text layer."); in Make()