Load Json::Value into this object
| 192 | |
| 193 | // Load Json::Value into this object |
| 194 | void Stabilizer::SetJsonValue(const Json::Value root) { |
| 195 | |
| 196 | // Set parent data |
| 197 | EffectBase::SetJsonValue(root); |
| 198 | |
| 199 | // Set data from Json (if key is found) |
| 200 | if (!root["protobuf_data_path"].isNull()){ |
| 201 | protobuf_data_path = (root["protobuf_data_path"].asString()); |
| 202 | |
| 203 | if(!LoadStabilizedData(protobuf_data_path)){ |
| 204 | std::cout<<"Invalid protobuf data path"; |
| 205 | protobuf_data_path = ""; |
| 206 | } |
| 207 | } |
| 208 | if(!root["zoom"].isNull()) |
| 209 | zoom.SetJsonValue(root["zoom"]); |
| 210 | } |
| 211 | |
| 212 | // Get all properties for a specific frame |
| 213 | std::string Stabilizer::PropertiesJSON(int64_t requested_frame) const { |
nothing calls this directly
no outgoing calls
no test coverage detected