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

Method SetJsonValue

src/effects/Pixelate.cpp:173–191  ·  view source on GitHub ↗

Load Json::Value into this object

Source from the content-addressed store, hash-verified

171
172// Load Json::Value into this object
173void 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
194std::string Pixelate::PropertiesJSON(int64_t requested_frame) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected