MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / PropertiesJSON

Method PropertiesJSON

src/effects/Shift.cpp:169–180  ·  view source on GitHub ↗

Get all properties for a specific frame

Source from the content-addressed store, hash-verified

167
168// Get all properties for a specific frame
169std::string Shift::PropertiesJSON(int64_t requested_frame) const {
170
171 // Generate JSON properties list
172 Json::Value root = BasePropertiesJSON(requested_frame);
173
174 // Keyframes
175 root["x"] = add_property_json("X Shift", x.GetValue(requested_frame), "float", "", &x, -1, 1, false, requested_frame);
176 root["y"] = add_property_json("Y Shift", y.GetValue(requested_frame), "float", "", &y, -1, 1, false, requested_frame);
177
178 // Return formatted string
179 return root.toStyledString();
180}

Callers

nothing calls this directly

Calls 1

GetValueMethod · 0.80

Tested by

no test coverage detected