Load Json::Value into this object
| 273 | |
| 274 | // Load Json::Value into this object |
| 275 | void Saturation::SetJsonValue(const Json::Value root) { |
| 276 | |
| 277 | // Set parent data |
| 278 | EffectBase::SetJsonValue(root); |
| 279 | |
| 280 | // Set data from Json (if key is found) |
| 281 | if (!root["saturation"].isNull()) |
| 282 | saturation.SetJsonValue(root["saturation"]); |
| 283 | if (!root["saturation_R"].isNull()) |
| 284 | saturation_R.SetJsonValue(root["saturation_R"]); |
| 285 | if (!root["saturation_G"].isNull()) |
| 286 | saturation_G.SetJsonValue(root["saturation_G"]); |
| 287 | if (!root["saturation_B"].isNull()) |
| 288 | saturation_B.SetJsonValue(root["saturation_B"]); |
| 289 | if (!root["mask_mode"].isNull()) |
| 290 | mask_mode = root["mask_mode"].asInt(); |
| 291 | } |
| 292 | |
| 293 | // Get all properties for a specific frame |
| 294 | std::string Saturation::PropertiesJSON(int64_t requested_frame) const { |
nothing calls this directly
no outgoing calls
no test coverage detected