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

Method SetJsonValue

src/effects/Bars.cpp:141–157  ·  view source on GitHub ↗

Load Json::Value into this object

Source from the content-addressed store, hash-verified

139
140// Load Json::Value into this object
141void Bars::SetJsonValue(const Json::Value root) {
142
143 // Set parent data
144 EffectBase::SetJsonValue(root);
145
146 // Set data from Json (if key is found)
147 if (!root["color"].isNull())
148 color.SetJsonValue(root["color"]);
149 if (!root["left"].isNull())
150 left.SetJsonValue(root["left"]);
151 if (!root["top"].isNull())
152 top.SetJsonValue(root["top"]);
153 if (!root["right"].isNull())
154 right.SetJsonValue(root["right"]);
155 if (!root["bottom"].isNull())
156 bottom.SetJsonValue(root["bottom"]);
157}
158
159// Get all properties for a specific frame
160std::string Bars::PropertiesJSON(int64_t requested_frame) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected