Load Json::Value into this object
| 171 | |
| 172 | // Load Json::Value into this object |
| 173 | void Pixelate::SetJsonValue(const Json::Value root) { |
| 174 | |
| 175 | // Set parent data |
| 176 | EffectBase::SetJsonValue(root); |
| 177 | |
| 178 | // Set data from Json (if key is found) |
| 179 | if (!root["pixelization"].isNull()) |
| 180 | pixelization.SetJsonValue(root["pixelization"]); |
| 181 | if (!root["left"].isNull()) |
| 182 | left.SetJsonValue(root["left"]); |
| 183 | if (!root["top"].isNull()) |
| 184 | top.SetJsonValue(root["top"]); |
| 185 | if (!root["right"].isNull()) |
| 186 | right.SetJsonValue(root["right"]); |
| 187 | if (!root["bottom"].isNull()) |
| 188 | bottom.SetJsonValue(root["bottom"]); |
| 189 | if (!root["mask_mode"].isNull()) |
| 190 | mask_mode = root["mask_mode"].asInt(); |
| 191 | } |
| 192 | |
| 193 | // Get all properties for a specific frame |
| 194 | std::string Pixelate::PropertiesJSON(int64_t requested_frame) const { |
nothing calls this directly
no outgoing calls
no test coverage detected