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

Method SetJsonValue

src/effects/Sharpen.cpp:401–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401void Sharpen::SetJsonValue(Json::Value root)
402{
403 EffectBase::SetJsonValue(root);
404 if (!root["amount"].isNull())
405 amount.SetJsonValue(root["amount"]);
406 if (!root["radius"].isNull())
407 radius.SetJsonValue(root["radius"]);
408 if (!root["threshold"].isNull())
409 threshold.SetJsonValue(root["threshold"]);
410 if (!root["mode"].isNull())
411 mode = root["mode"].asInt();
412 if (!root["channel"].isNull())
413 channel = root["channel"].asInt();
414 if (!root["mask_mode"].isNull())
415 mask_mode = root["mask_mode"].asInt();
416}
417
418// UI property definitions
419std::string Sharpen::PropertiesJSON(int64_t t) const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected