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

Method SetJsonValue

src/effects/Blur.cpp:236–252  ·  view source on GitHub ↗

Load Json::Value into this object

Source from the content-addressed store, hash-verified

234
235// Load Json::Value into this object
236void Blur::SetJsonValue(const Json::Value root) {
237
238 // Set parent data
239 EffectBase::SetJsonValue(root);
240
241 // Set data from Json (if key is found)
242 if (!root["horizontal_radius"].isNull())
243 horizontal_radius.SetJsonValue(root["horizontal_radius"]);
244 if (!root["vertical_radius"].isNull())
245 vertical_radius.SetJsonValue(root["vertical_radius"]);
246 if (!root["sigma"].isNull())
247 sigma.SetJsonValue(root["sigma"]);
248 if (!root["iterations"].isNull())
249 iterations.SetJsonValue(root["iterations"]);
250 if (!root["mask_mode"].isNull())
251 mask_mode = root["mask_mode"].asInt();
252}
253
254// Get all properties for a specific frame
255std::string Blur::PropertiesJSON(int64_t requested_frame) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected