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

Method SetJsonValue

src/CVStabilization.cpp:356–365  ·  view source on GitHub ↗

Load Json::Value into this object

Source from the content-addressed store, hash-verified

354
355// Load Json::Value into this object
356void CVStabilization::SetJsonValue(const Json::Value root) {
357
358 // Set data from Json (if key is found)
359 if (!root["protobuf_data_path"].isNull()){
360 protobuf_data_path = (root["protobuf_data_path"].asString());
361 }
362 if (!root["smoothing-window"].isNull()){
363 smoothingWindow = (root["smoothing-window"].asInt());
364 }
365}
366
367/*
368||||||||||||||||||||||||||||||||||||||||||||||||||

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected