Load Json::Value into this object
| 234 | |
| 235 | // Load Json::Value into this object |
| 236 | void 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 |
| 255 | std::string Blur::PropertiesJSON(int64_t requested_frame) const { |
nothing calls this directly
no outgoing calls
no test coverage detected