Load Json::Value into this object
| 672 | |
| 673 | // Load Json::Value into this object |
| 674 | void 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 |
| 691 | std::string ChromaKey::PropertiesJSON(int64_t requested_frame) const { |
nothing calls this directly
no outgoing calls
no test coverage detected