/external/skqp/modules/skottie/src/ |
D | SkottieLayer.cpp | 112 (mask_info->fInvertGeometry != ParseDefault<bool>((*m)["inv"], false)); in AttachMask() 245 const auto refId = ParseDefault<SkString>(jlayer["refId"], SkString()); in attachAssetRef() 277 const auto size = SkSize::Make(ParseDefault<float>(jlayer["sw"], 0.0f), in attachSolidLayer() 278 ParseDefault<float>(jlayer["sh"], 0.0f)); in attachSolidLayer() 317 const auto size = SkISize::Make(ParseDefault<int>(jimage["w"], 0), in loadImageAsset() 318 ParseDefault<int>(jimage["h"], 0)); in loadImageAsset() 409 const auto layer_index = ParseDefault<int>(jlayer["ind"], -1); in attachLayerTransform() 423 const auto parent_index = ParseDefault<int>(jlayer["parent"], -1); in attachParentLayerTransform() 433 if (ParseDefault<int>((*l)["ind"], -1) == parent_index) { in attachParentLayerTransform() 452 auto transform_node = (ParseDefault<int>(jlayer["ddd"], 0) == 0) in attachLayerTransformImpl() [all …]
|
D | Skottie.cpp | 248 fAssets.set(ParseDefault<SkString>((*asset)["id"], SkString()), { asset, false }); in parseAssets() 265 const auto time = ParseDefault((*m)["tm"], -1.0f), in dispatchMarkers() 266 duration = ParseDefault((*m)["dr"], -1.0f); in dispatchMarkers() 424 const auto version = ParseDefault<SkString>(json["v"], SkString()); in make() 425 const auto size = SkSize::Make(ParseDefault<float>(json["w"], 0.0f), in make() 426 ParseDefault<float>(json["h"], 0.0f)); in make() 427 const auto fps = ParseDefault<float>(json["fr"], -1.0f), in make() 428 inPoint = ParseDefault<float>(json["ip"], 0.0f), in make() 429 outPoint = SkTMax(ParseDefault<float>(json["op"], SK_ScalarMax), inPoint), in make()
|
D | SkottieShapeLayer.cpp | 45 rect_node->setDirection(ParseDefault(jrect["d"], -1) == 3 ? SkPath::kCCW_Direction in AttachRRectGeometry() 75 rect_node->setDirection(ParseDefault(jellipse["d"], -1) == 3 ? SkPath::kCCW_Direction in AttachEllipseGeometry() 107 const auto type = ParseDefault<size_t>(jstar["sy"], 0) - 1; in AttachPolystarGeometry() 154 const auto stopCount = ParseDefault<int>((*stops)["p"], -1); in AttachGradient() 161 if (ParseDefault<int>(jgrad["t"], 1) == 1) { in AttachGradient() 218 stroke_node->setStrokeMiter(ParseDefault<SkScalar>(jstroke["ml"], 4.0f)); in AttachStroke() 225 stroke_node->setStrokeJoin(gJoins[SkTMin<size_t>(ParseDefault<size_t>(jstroke["lj"], 1) - 1, in AttachStroke() 233 stroke_node->setStrokeCap(gCaps[SkTMin<size_t>(ParseDefault<size_t>(jstroke["lc"], 1) - 1, in AttachStroke() 288 const auto mode = gModes[SkTMin<size_t>(ParseDefault<size_t>(jmerge["mm"], 1) - 1, in AttachMergeGeometryEffect() 306 const auto mode = gModes[SkTMin<size_t>(ParseDefault<size_t>(jtrim["m"], 1) - 1, in AttachTrimGeometryEffect() [all …]
|
D | SkottiePrecompLayer.cpp | 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()
|
D | SkottieAnimator.cpp | 101 const auto c0 = ParseDefault<SkPoint>((*jframe)["i"], kDefaultC0), in parseKeyFrames() 102 c1 = ParseDefault<SkPoint>((*jframe)["o"], kDefaultC1); in parseKeyFrames() 274 if (!ParseDefault<bool>(jpropA, false)) { in BindPropertyImpl() 393 return ParseDefault<bool>(jv.as<skjson::ObjectValue>()["s"], false) in bindProperty()
|
D | SkottieValue.cpp | 162 v->fClosed = ParseDefault<bool>(ov["c"], false); in FromJSON() 271 v->fAlign = gAlignMap[SkTMin<size_t>(ParseDefault<size_t>((*jtxt)["j"], 0), in FromJSON() 294 v->fStrokeWidth = ParseDefault((*jtxt)["s"], 0.0f); in FromJSON()
|
D | SkottieJson.h | 24 T ParseDefault(const skjson::Value& v, const T& defaultValue) { in ParseDefault() function
|
D | SkottieLayerEffect.cpp | 75 switch (const auto ty = ParseDefault<int>((*jeffect)["ty"], -1)) { in attachLayerEffects()
|
D | SkottieTextLayer.cpp | 155 ParseDefault((*jfont)["ascent"] , 0.0f), in parseFonts()
|
/external/skia/modules/skottie/src/ |
D | SkottieLayer.cpp | 112 (mask_info->fInvertGeometry != ParseDefault<bool>((*m)["inv"], false)); in AttachMask() 247 const auto refId = ParseDefault<SkString>(jlayer["refId"], SkString()); in attachAssetRef() 279 const auto size = SkSize::Make(ParseDefault<float>(jlayer["sw"], 0.0f), in attachSolidLayer() 280 ParseDefault<float>(jlayer["sh"], 0.0f)); in attachSolidLayer() 319 const auto size = SkISize::Make(ParseDefault<int>(jimage["w"], 0), in loadImageAsset() 320 ParseDefault<int>(jimage["h"], 0)); in loadImageAsset() 411 const auto layer_index = ParseDefault<int>(jlayer["ind"], -1); in attachLayerTransform() 425 const auto parent_index = ParseDefault<int>(jlayer["parent"], -1); in attachParentLayerTransform() 435 if (ParseDefault<int>((*l)["ind"], -1) == parent_index) { in attachParentLayerTransform() 454 auto transform_node = (ParseDefault<int>(jlayer["ddd"], 0) == 0) in attachLayerTransformImpl() [all …]
|
D | Skottie.cpp | 214 const auto bm_index = ParseDefault<size_t>(jobject["bm"], 0); in GetBlendMode() 301 fAssets.set(ParseDefault<SkString>((*asset)["id"], SkString()), { asset, false }); in parseAssets() 318 const auto time = ParseDefault((*m)["tm"], -1.0f), in dispatchMarkers() 319 duration = ParseDefault((*m)["dr"], -1.0f); in dispatchMarkers() 477 const auto version = ParseDefault<SkString>(json["v"], SkString()); in make() 478 const auto size = SkSize::Make(ParseDefault<float>(json["w"], 0.0f), in make() 479 ParseDefault<float>(json["h"], 0.0f)); in make() 480 const auto fps = ParseDefault<float>(json["fr"], -1.0f), in make() 481 inPoint = ParseDefault<float>(json["ip"], 0.0f), in make() 482 outPoint = SkTMax(ParseDefault<float>(json["op"], SK_ScalarMax), inPoint), in make()
|
D | SkottieShapeLayer.cpp | 45 rect_node->setDirection(ParseDefault(jrect["d"], -1) == 3 ? SkPath::kCCW_Direction in AttachRRectGeometry() 75 rect_node->setDirection(ParseDefault(jellipse["d"], -1) == 3 ? SkPath::kCCW_Direction in AttachEllipseGeometry() 107 const auto type = ParseDefault<size_t>(jstar["sy"], 0) - 1; in AttachPolystarGeometry() 154 const auto stopCount = ParseDefault<int>((*stops)["p"], -1); in AttachGradient() 161 if (ParseDefault<int>(jgrad["t"], 1) == 1) { in AttachGradient() 218 stroke_node->setStrokeMiter(ParseDefault<SkScalar>(jstroke["ml"], 4.0f)); in AttachStroke() 225 stroke_node->setStrokeJoin(gJoins[SkTMin<size_t>(ParseDefault<size_t>(jstroke["lj"], 1) - 1, in AttachStroke() 233 stroke_node->setStrokeCap(gCaps[SkTMin<size_t>(ParseDefault<size_t>(jstroke["lc"], 1) - 1, in AttachStroke() 288 const auto mode = gModes[SkTMin<size_t>(ParseDefault<size_t>(jmerge["mm"], 1) - 1, in AttachMergeGeometryEffect() 306 const auto mode = gModes[SkTMin<size_t>(ParseDefault<size_t>(jtrim["m"], 1) - 1, in AttachTrimGeometryEffect() [all …]
|
D | SkottiePrecompLayer.cpp | 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()
|
D | SkottieAnimator.cpp | 101 const auto c0 = ParseDefault<SkPoint>((*jframe)["i"], kDefaultC0), in parseKeyFrames() 102 c1 = ParseDefault<SkPoint>((*jframe)["o"], kDefaultC1); in parseKeyFrames() 272 if (!ParseDefault<bool>(jpropA, false)) { in BindPropertyImpl() 391 return ParseDefault<bool>(jv.as<skjson::ObjectValue>()["s"], false) in bindProperty()
|
D | SkottieValue.cpp | 162 v->fClosed = ParseDefault<bool>(ov["c"], false); in FromJSON() 271 v->fAlign = gAlignMap[SkTMin<size_t>(ParseDefault<size_t>((*jtxt)["j"], 0), in FromJSON() 294 v->fStrokeWidth = ParseDefault((*jtxt)["s"], 0.0f); in FromJSON()
|
D | SkottieJson.h | 24 T ParseDefault(const skjson::Value& v, const T& defaultValue) { in ParseDefault() function
|
D | SkottieTextLayer.cpp | 155 ParseDefault((*jfont)["ascent"] , 0.0f), in parseFonts()
|
D | SkottieLayerEffect.cpp | 286 switch (const auto ty = ParseDefault<int>((*jeffect)["ty"], -1)) { in attachLayerEffects()
|