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

Method JsonValue

src/effects/ChromaKey.cpp:642–654  ·  view source on GitHub ↗

Generate Json::Value for this object

Source from the content-addressed store, hash-verified

640
641// Generate Json::Value for this object
642Json::Value ChromaKey::JsonValue() const {
643
644 // Create root json object
645 Json::Value root = EffectBase::JsonValue(); // get parent properties
646 root["type"] = info.class_name;
647 root["color"] = color.JsonValue();
648 root["fuzz"] = fuzz.JsonValue();
649 root["halo"] = halo.JsonValue();
650 root["keymethod"] = method;
651
652 // return JsonValue
653 return root;
654}
655
656// Load JSON string into this object
657void ChromaKey::SetJson(const std::string value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected