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

Method SetJsonValue

src/effects/Brightness.cpp:224–236  ·  view source on GitHub ↗

Load Json::Value into this object

Source from the content-addressed store, hash-verified

222
223// Load Json::Value into this object
224void Brightness::SetJsonValue(const Json::Value root) {
225
226 // Set parent data
227 EffectBase::SetJsonValue(root);
228
229 // Set data from Json (if key is found)
230 if (!root["brightness"].isNull())
231 brightness.SetJsonValue(root["brightness"]);
232 if (!root["contrast"].isNull())
233 contrast.SetJsonValue(root["contrast"]);
234 if (!root["mask_mode"].isNull())
235 mask_mode = root["mask_mode"].asInt();
236}
237
238// Get all properties for a specific frame
239std::string Brightness::PropertiesJSON(int64_t requested_frame) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected