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

Method SetJsonValue

src/effects/Stabilizer.cpp:194–210  ·  view source on GitHub ↗

Load Json::Value into this object

Source from the content-addressed store, hash-verified

192
193// Load Json::Value into this object
194void Stabilizer::SetJsonValue(const Json::Value root) {
195
196 // Set parent data
197 EffectBase::SetJsonValue(root);
198
199 // Set data from Json (if key is found)
200 if (!root["protobuf_data_path"].isNull()){
201 protobuf_data_path = (root["protobuf_data_path"].asString());
202
203 if(!LoadStabilizedData(protobuf_data_path)){
204 std::cout<<"Invalid protobuf data path";
205 protobuf_data_path = "";
206 }
207 }
208 if(!root["zoom"].isNull())
209 zoom.SetJsonValue(root["zoom"]);
210}
211
212// Get all properties for a specific frame
213std::string Stabilizer::PropertiesJSON(int64_t requested_frame) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected