Home
last modified time | relevance | path

Searched refs:skjson (Results 1 – 25 of 96) sorted by relevance

1234

/external/skia/modules/skottie/src/effects/
DEffects.h28 sk_sp<sksg::RenderNode> attachEffects(const skjson::ArrayValue&,
31 sk_sp<sksg::RenderNode> attachStyles(const skjson::ArrayValue&,
34 static const skjson::Value& GetPropValue(const skjson::ArrayValue& jprops, size_t prop_index);
41 using EffectBuilderT = sk_sp<sksg::RenderNode>(EffectBuilder::*)(const skjson::ArrayValue&,
44 sk_sp<sksg::RenderNode> attachBlackAndWhiteEffect (const skjson::ArrayValue&,
46 sk_sp<sksg::RenderNode> attachBrightnessContrastEffect(const skjson::ArrayValue&,
48 sk_sp<sksg::RenderNode> attachBulgeEffect (const skjson::ArrayValue&,
50 sk_sp<sksg::RenderNode> attachCornerPinEffect (const skjson::ArrayValue&,
52 sk_sp<sksg::RenderNode> attachCCTonerEffect (const skjson::ArrayValue&,
54 sk_sp<sksg::RenderNode> attachDirectionalBlurEffect (const skjson::ArrayValue&,
[all …]
DEffects.cpp29 EffectBuilder::EffectBuilderT EffectBuilder::findBuilder(const skjson::ObjectValue& jeffect) const { in findBuilder()
66 const skjson::StringValue* mn = jeffect["mn"]; in findBuilder()
107 sk_sp<sksg::RenderNode> EffectBuilder::attachEffects(const skjson::ArrayValue& jeffects, in attachEffects()
113 for (const skjson::ObjectValue* jeffect : jeffects) { in attachEffects()
119 const skjson::ArrayValue* jprops = (*jeffect)["ef"]; in attachEffects()
136 sk_sp<sksg::RenderNode> EffectBuilder::attachStyles(const skjson::ArrayValue& jstyles, in attachStyles()
144 sk_sp<sksg::RenderNode> (EffectBuilder::*)(const skjson::ObjectValue&, in attachStyles()
154 for (const skjson::ObjectValue* jstyle : jstyles) { in attachStyles()
176 const skjson::Value& EffectBuilder::GetPropValue(const skjson::ArrayValue& jprops, in GetPropValue()
178 static skjson::NullValue kNull; in GetPropValue()
[all …]
DSkSLEffect.cpp58 SkSLEffectBase(const skjson::ArrayValue& jprops, in SkSLEffectBase()
64 const skjson::ObjectValue* jSkSL = jprops[kSkSL_index]; in SkSLEffectBase()
68 const skjson::StringValue* jShader = (*jSkSL)["sh"]; in SkSLEffectBase()
87 void bindUniforms(const skjson::ArrayValue& jprops, in bindUniforms()
92 const skjson::ObjectValue* jprop = jprops[i]; in bindUniforms()
94 const skjson::StringValue* uniformName = (*jprop)["nm"]; in bindUniforms()
129 SkSLShaderAdapter(const skjson::ArrayValue& jprops, in SkSLShaderAdapter()
153 SkSLColorFilterAdapter(const skjson::ArrayValue& jprops, in SkSLColorFilterAdapter()
176 sk_sp<sksg::RenderNode> EffectBuilder::attachSkSLShader(const skjson::ArrayValue& jprops, in attachSkSLShader()
187 sk_sp<sksg::RenderNode> EffectBuilder::attachSkSLColorFilter(const skjson::ArrayValue& jprops, in attachSkSLColorFilter()
DTransformEffect.cpp24 const skjson::ObjectValue* jopacity, in TransformEffectAdapter()
25 const skjson::ObjectValue* jscale_uniform, in TransformEffectAdapter()
26 const skjson::ObjectValue* jscale_width, in TransformEffectAdapter()
27 const skjson::ObjectValue* jscale_height, in TransformEffectAdapter()
65 sk_sp<sksg::RenderNode> EffectBuilder::attachTransformEffect(const skjson::ArrayValue& jprops, in attachTransformEffect()
/external/skia/modules/skottie/src/
DSkottiePriv.h27 namespace skjson {
65 AnimationInfo parse(const skjson::ObjectValue&);
79 void log(Logger::Level, const skjson::Value*, const char fmt[], ...) const SK_PRINTF_LIKE(4, 5);
81 sk_sp<sksg::Transform> attachMatrix2D(const skjson::ObjectValue&, sk_sp<sksg::Transform>,
83 sk_sp<sksg::Transform> attachMatrix3D(const skjson::ObjectValue&, sk_sp<sksg::Transform>,
86 sk_sp<sksg::Transform> attachCamera(const skjson::ObjectValue& jlayer,
87 const skjson::ObjectValue& jtransform,
91 sk_sp<sksg::RenderNode> attachOpacity(const skjson::ObjectValue&,
93 sk_sp<sksg::Path> attachPath(const skjson::Value&) const;
150 …AutoPropertyTracker(const AnimationBuilder* builder, const skjson::ObjectValue& obj, const Propert… in AutoPropertyTracker()
[all …]
DTransform.h18 namespace skjson {
31 const skjson::ObjectValue* janchor_point,
32 const skjson::ObjectValue* jposition,
33 const skjson::ObjectValue* jscale,
34 const skjson::ObjectValue* jrotation,
35 const skjson::ObjectValue* jskew,
36 const skjson::ObjectValue* jskew_axis,
78 TransformAdapter3D(const skjson::ObjectValue&, const AnimationBuilder&);
DTransform.cpp18 const skjson::ObjectValue* janchor_point, in TransformAdapter2D()
19 const skjson::ObjectValue* jposition, in TransformAdapter2D()
20 const skjson::ObjectValue* jscale, in TransformAdapter2D()
21 const skjson::ObjectValue* jrotation, in TransformAdapter2D()
22 const skjson::ObjectValue* jskew, in TransformAdapter2D()
23 const skjson::ObjectValue* jskew_axis, in TransformAdapter2D()
108 sk_sp<sksg::Transform> AnimationBuilder::attachMatrix2D(const skjson::ObjectValue& jtransform, in attachMatrix2D()
112 if (jrotation->is<skjson::NullValue>()) { in attachMatrix2D()
142 TransformAdapter3D::TransformAdapter3D(const skjson::ObjectValue& jtransform, in TransformAdapter3D()
191 sk_sp<sksg::Transform> AnimationBuilder::attachMatrix3D(const skjson::ObjectValue& jtransform, in attachMatrix3D()
DSkottie.cpp47 void AnimationBuilder::log(Logger::Level lvl, const skjson::Value* json, in log()
78 OpacityAdapter(const skjson::ObjectValue& jobject, in OpacityAdapter()
97 sk_sp<sksg::RenderNode> AnimationBuilder::attachOpacity(const skjson::ObjectValue& jobject, in attachOpacity()
139 AnimationBuilder::AnimationInfo AnimationBuilder::parse(const skjson::ObjectValue& jroot) { in parse()
156 void AnimationBuilder::parseAssets(const skjson::ArrayValue* jassets) { in parseAssets()
161 for (const skjson::ObjectValue* asset : *jassets) { in parseAssets()
168 void AnimationBuilder::dispatchMarkers(const skjson::ArrayValue* jmarkers) const { in dispatchMarkers()
176 for (const skjson::ObjectValue* m : *jmarkers) { in dispatchMarkers()
179 const skjson::StringValue* name = (*m)["cm"]; in dispatchMarkers()
258 const skjson::ObjectValue& obj) { in updateContext()
[all …]
DSkottieJson.cpp22 using namespace skjson;
27 if (const skjson::ArrayValue* array = v) { in Parse()
33 if (const skjson::NumberValue* num = v) { in Parse()
59 if (const skjson::NumberValue* num = v) { in ParseIntegral()
85 if (const skjson::StringValue* sv = v) { in Parse()
DComposition.cpp23 const skjson::ObjectValue& jlayer) { in ScopedAssetRef()
49 const skjson::ObjectValue& jcomp) in CompositionBuilder()
53 if (const skjson::ObjectValue* jmb = jcomp["mb"]) { in CompositionBuilder()
64 if (const skjson::ArrayValue* jlayers = jcomp["layers"]) { in CompositionBuilder()
66 for (const skjson::ObjectValue* jlayer : *jlayers) { in CompositionBuilder()
/external/skia/modules/skottie/src/layers/shapelayer/
DShapeLayer.h17 namespace skjson {
42 static sk_sp<sksg::GeometryNode> AttachPathGeometry(const skjson::ObjectValue&,
44 static sk_sp<sksg::GeometryNode> AttachRRectGeometry(const skjson::ObjectValue&,
46 static sk_sp<sksg::GeometryNode> AttachEllipseGeometry(const skjson::ObjectValue&,
48 static sk_sp<sksg::GeometryNode> AttachPolystarGeometry(const skjson::ObjectValue&,
51 static sk_sp<sksg::PaintNode> AttachColorFill(const skjson::ObjectValue&,
53 static sk_sp<sksg::PaintNode> AttachColorStroke(const skjson::ObjectValue&,
55 static sk_sp<sksg::PaintNode> AttachGradientFill(const skjson::ObjectValue&,
57 static sk_sp<sksg::PaintNode> AttachGradientStroke(const skjson::ObjectValue&,
61 const skjson::ObjectValue&, const AnimationBuilder*,
[all …]
DFillStroke.cpp25 FillStrokeAdapter(const skjson::ObjectValue& jpaint, in FillStrokeAdapter()
93 DashAdapter(const skjson::ArrayValue& jdash, in DashAdapter()
105 if (const skjson::ObjectValue* jint = jdash[i]) { in DashAdapter()
128 sk_sp<sksg::PaintNode> ShapeBuilder::AttachFill(const skjson::ObjectValue& jpaint, in AttachFill()
140 sk_sp<sksg::PaintNode> ShapeBuilder::AttachStroke(const skjson::ObjectValue& jpaint, in AttachStroke()
152 sk_sp<sksg::PaintNode> ShapeBuilder::AttachColorFill(const skjson::ObjectValue& jpaint, in AttachColorFill()
160 sk_sp<sksg::PaintNode> ShapeBuilder::AttachColorStroke(const skjson::ObjectValue& jpaint, in AttachColorStroke()
169 const skjson::ObjectValue& jstroke, in AdjustStrokeGeometry()
173 const skjson::ArrayValue* jdash = jstroke["d"]; in AdjustStrokeGeometry()
DShapeLayer.cpp33 using GeometryAttacherT = sk_sp<sksg::GeometryNode> (*)(const skjson::ObjectValue&,
43 std::vector<sk_sp<sksg::GeometryNode>> (*)(const skjson::ObjectValue&,
54 using PaintAttacherT = sk_sp<sksg::PaintNode> (*)(const skjson::ObjectValue&,
73 std::vector<sk_sp<sksg::RenderNode>> (*)(const skjson::ObjectValue&,
102 const ShapeInfo* FindShapeInfo(const skjson::ObjectValue& jshape) { in FindShapeInfo()
122 const skjson::StringValue* type = jshape["ty"]; in FindShapeInfo()
140 const skjson::ObjectValue& fJson;
146 sk_sp<sksg::GeometryNode> ShapeBuilder::AttachPathGeometry(const skjson::ObjectValue& jpath, in AttachPathGeometry()
164 sk_sp<sksg::RenderNode> AnimationBuilder::attachShape(const skjson::ArrayValue* jshape, in attachShape()
172 const skjson::ObjectValue* jtransform = nullptr; in attachShape()
[all …]
/external/skia/modules/skottie/src/animator/
DShapeKeyframeAnimator.cpp42 static const skjson::ObjectValue* shape_root(const skjson::Value& jv) { in shape_root()
43 if (const skjson::ArrayValue* av = jv) { in shape_root()
52 static bool parse_encoding_len(const skjson::Value& jv, size_t* len) { in parse_encoding_len()
54 if (const skjson::ArrayValue* jvs = (*jshape)["v"]) { in parse_encoding_len()
62 static bool parse_encoding_data(const skjson::Value& jv, size_t data_len, float data[]) { in parse_encoding_data()
69 const skjson::ArrayValue* jvs = (*jshape)["v"]; // vertex points in parse_encoding_data()
70 const skjson::ArrayValue* jis = (*jshape)["i"]; // in-tangent points in parse_encoding_data()
71 const skjson::ArrayValue* jos = (*jshape)["o"]; // out-tangent points in parse_encoding_data()
77 auto parse_point = [](const skjson::ArrayValue* ja, size_t i, float* x, float* y) { in parse_encoding_data()
79 const skjson::ArrayValue* jpt = (*ja)[i]; in parse_encoding_data()
[all …]
DVectorKeyframeAnimator.h19 using VectorLenParser = bool(*)(const skjson::Value&, size_t*);
20 using VectorDataParser = bool(*)(const skjson::Value&, size_t, float*);
25 const skjson::ArrayValue&) override;
30 bool parseValue(const AnimationBuilder&, const skjson::Value&) const override;
33 const skjson::ObjectValue&,
34 const skjson::Value&,
DKeyframeAnimator.h19 namespace skjson {
116 const skjson::ArrayValue&) = 0;
120 virtual bool parseValue(const AnimationBuilder&, const skjson::Value&) const = 0;
127 const skjson::ObjectValue&,
128 const skjson::Value&,
131 bool parseKeyframes(const AnimationBuilder&, const skjson::ArrayValue&);
137 uint32_t parseMapping(const skjson::ObjectValue&);
DAnimator.h17 namespace skjson {
50 bool bind(const AnimationBuilder&, const skjson::ObjectValue*, T*);
53 bool bind(const AnimationBuilder& abuilder, const skjson::ObjectValue* jobject, T& v) { in bind()
60 const skjson::ObjectValue* jobject,
75 bool bindImpl(const AnimationBuilder&, const skjson::ObjectValue*, AnimatorBuilder&);
DVectorKeyframeAnimator.cpp24 static bool parse_array(const skjson::ArrayValue* ja, float* a, size_t count) { in parse_array()
185 const skjson::ArrayValue& jkfs) { in makeFromKeyframes()
189 const skjson::ObjectValue* jkf0 = jkfs[0]; in makeFromKeyframes()
228 const skjson::Value& jv) const { in parseValue()
239 const skjson::ObjectValue&, in parseKFValue()
240 const skjson::Value& jv, in parseKFValue()
269 const skjson::ObjectValue* jprop, in bind()
280 [](const skjson::Value& jv, size_t* len) -> bool { in bind()
281 if (const skjson::ArrayValue* ja = jv) { in bind()
288 [](const skjson::Value& jv, size_t len, float* data) { in bind()
DScalarKeyframeAnimator.cpp71 const skjson::ArrayValue& jkfs) override { in makeFromKeyframes()
88 bool parseValue(const AnimationBuilder&, const skjson::Value& jv) const override { in parseValue()
94 const skjson::ObjectValue&, in parseKFValue()
95 const skjson::Value& jv, in parseKFValue()
109 const skjson::ObjectValue* jprop, in bind()
/external/skia/modules/skottie/src/layers/
DTextLayer.cpp109 void AnimationBuilder::parseFonts(const skjson::ObjectValue* jfonts, in parseFonts()
110 const skjson::ArrayValue* jchars) { in parseFonts()
127 const skjson::ArrayValue* jlist = jfonts in parseFonts()
128 ? static_cast<const skjson::ArrayValue*>((*jfonts)["list"]) in parseFonts()
135 for (const skjson::ObjectValue* jfont : *jlist) { in parseFonts()
140 const skjson::StringValue* jname = (*jfont)["fName"]; in parseFonts()
141 const skjson::StringValue* jfamily = (*jfont)["fFamily"]; in parseFonts()
142 const skjson::StringValue* jstyle = (*jfont)["fStyle"]; in parseFonts()
143 const skjson::StringValue* jpath = (*jfont)["fPath"]; in parseFonts()
163 const auto has_comp_glyphs = [](const skjson::ArrayValue* jchars) { in parseFonts()
[all …]
DAudioLayer.cpp53 sk_sp<sksg::RenderNode> AnimationBuilder::attachAudioLayer(const skjson::ObjectValue& jlayer, in attachAudioLayer()
59 const skjson::StringValue* name = jaudio["p"]; in attachAudioLayer()
60 const skjson::StringValue* path = jaudio["u"]; in attachAudioLayer()
61 const skjson::StringValue* id = jaudio["id"]; in attachAudioLayer()
/external/skia/src/sksl/tracing/
DSkVMDebugTrace.cpp275 skjson::DOM json(reinterpret_cast<const char*>(data->bytes()), data->size()); in readTrace()
276 const skjson::ObjectValue* root = json.root(); in readTrace()
281 const skjson::StringValue* version = (*root)["version"]; in readTrace()
286 const skjson::ArrayValue* source = (*root)["source"]; in readTrace()
292 for (const skjson::StringValue* line : *source) { in readTrace()
299 const skjson::ArrayValue* slots = (*root)["slots"]; in readTrace()
305 for (const skjson::ObjectValue* element : *slots) { in readTrace()
315 const skjson::StringValue* name = (*element)["name"]; in readTrace()
316 const skjson::NumberValue* columns = (*element)["columns"]; in readTrace()
317 const skjson::NumberValue* rows = (*element)["rows"]; in readTrace()
[all …]
/external/skia/modules/skottie/src/text/
DFont.cpp19 const skjson::ObjectValue& jchar) { in parseGlyph()
28 const skjson::StringValue* jch = jchar["ch"]; in parseGlyph()
29 const skjson::ObjectValue* jdata = jchar["data"]; in parseGlyph()
79 const skjson::ObjectValue& jdata, in ParseGlyphPath()
99 const skjson::ArrayValue* jshapes = jdata["shapes"]; in ParseGlyphPath()
105 for (const skjson::ObjectValue* jgrp : *jshapes) { in ParseGlyphPath()
110 const skjson::ArrayValue* jit = (*jgrp)["it"]; in ParseGlyphPath()
115 for (const skjson::ObjectValue* jshape : *jit) { in ParseGlyphPath()
139 const skjson::ObjectValue& jdata) { in ParseGlyphComp()
172 if (const skjson::ObjectValue* jtransform = jdata["ks"]) { in ParseGlyphComp()
DTextValue.cpp16 bool Parse(const skjson::Value& jv, const internal::AnimationBuilder& abuilder, TextValue* v) { in Parse()
17 const skjson::ObjectValue* jtxt = jv; in Parse()
22 const skjson::StringValue* font_name = (*jtxt)["f"]; in Parse()
23 const skjson::StringValue* text = (*jtxt)["t"]; in Parse()
24 const skjson::NumberValue* text_size = (*jtxt)["s"]; in Parse()
25 const skjson::NumberValue* line_height = (*jtxt)["lh"]; in Parse()
52 if (const skjson::ArrayValue* jsz = (*jtxt)["sz"]) { in Parse()
60 if (const skjson::ArrayValue* jps = (*jtxt)["ps"]) { in Parse()
151 const auto& parse_color = [] (const skjson::ArrayValue* jcolor, in Parse()
DFont.h22 namespace skjson { class ObjectValue; }
37 bool parseGlyph(const AnimationBuilder*, const skjson::ObjectValue&);
41 static bool ParseGlyphPath(const AnimationBuilder*, const skjson::ObjectValue&, SkPath*);
43 const skjson::ObjectValue&);

1234