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

Method SetJsonValue

src/effects/ChromaKey.cpp:674–688  ·  view source on GitHub ↗

Load Json::Value into this object

Source from the content-addressed store, hash-verified

672
673// Load Json::Value into this object
674void ChromaKey::SetJsonValue(const Json::Value root) {
675
676 // Set parent data
677 EffectBase::SetJsonValue(root);
678
679 // Set data from Json (if key is found)
680 if (!root["color"].isNull())
681 color.SetJsonValue(root["color"]);
682 if (!root["fuzz"].isNull())
683 fuzz.SetJsonValue(root["fuzz"]);
684 if (!root["halo"].isNull())
685 halo.SetJsonValue(root["halo"]);
686 if (!root["keymethod"].isNull())
687 method = (ChromaKeyMethod) root["keymethod"].asInt();
688}
689
690// Get all properties for a specific frame
691std::string ChromaKey::PropertiesJSON(int64_t requested_frame) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected