MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / JsonValue

Method JsonValue

src/effects/ColorShift.cpp:185–201  ·  view source on GitHub ↗

Generate Json::Value for this object

Source from the content-addressed store, hash-verified

183
184// Generate Json::Value for this object
185Json::Value ColorShift::JsonValue() const {
186
187 // Create root json object
188 Json::Value root = EffectBase::JsonValue(); // get parent properties
189 root["type"] = info.class_name;
190 root["red_x"] = red_x.JsonValue();
191 root["red_y"] = red_y.JsonValue();
192 root["green_x"] = green_x.JsonValue();
193 root["green_y"] = green_y.JsonValue();
194 root["blue_x"] = blue_x.JsonValue();
195 root["blue_y"] = blue_y.JsonValue();
196 root["alpha_x"] = alpha_x.JsonValue();
197 root["alpha_y"] = alpha_y.JsonValue();
198
199 // return JsonValue
200 return root;
201}
202
203// Load JSON string into this object
204void ColorShift::SetJson(const std::string value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected