Load Json::Value into this object
| 222 | |
| 223 | // Load Json::Value into this object |
| 224 | void Brightness::SetJsonValue(const Json::Value root) { |
| 225 | |
| 226 | // Set parent data |
| 227 | EffectBase::SetJsonValue(root); |
| 228 | |
| 229 | // Set data from Json (if key is found) |
| 230 | if (!root["brightness"].isNull()) |
| 231 | brightness.SetJsonValue(root["brightness"]); |
| 232 | if (!root["contrast"].isNull()) |
| 233 | contrast.SetJsonValue(root["contrast"]); |
| 234 | if (!root["mask_mode"].isNull()) |
| 235 | mask_mode = root["mask_mode"].asInt(); |
| 236 | } |
| 237 | |
| 238 | // Get all properties for a specific frame |
| 239 | std::string Brightness::PropertiesJSON(int64_t requested_frame) const { |
nothing calls this directly
no outgoing calls
no test coverage detected