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

Method SetJsonValue

src/effects/Shift.cpp:156–166  ·  view source on GitHub ↗

Load Json::Value into this object

Source from the content-addressed store, hash-verified

154
155// Load Json::Value into this object
156void Shift::SetJsonValue(const Json::Value root) {
157
158 // Set parent data
159 EffectBase::SetJsonValue(root);
160
161 // Set data from Json (if key is found)
162 if (!root["x"].isNull())
163 x.SetJsonValue(root["x"]);
164 if (!root["y"].isNull())
165 y.SetJsonValue(root["y"]);
166}
167
168// Get all properties for a specific frame
169std::string Shift::PropertiesJSON(int64_t requested_frame) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected