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

Method SetJsonValue

src/effects/Saturation.cpp:275–291  ·  view source on GitHub ↗

Load Json::Value into this object

Source from the content-addressed store, hash-verified

273
274// Load Json::Value into this object
275void Saturation::SetJsonValue(const Json::Value root) {
276
277 // Set parent data
278 EffectBase::SetJsonValue(root);
279
280 // Set data from Json (if key is found)
281 if (!root["saturation"].isNull())
282 saturation.SetJsonValue(root["saturation"]);
283 if (!root["saturation_R"].isNull())
284 saturation_R.SetJsonValue(root["saturation_R"]);
285 if (!root["saturation_G"].isNull())
286 saturation_G.SetJsonValue(root["saturation_G"]);
287 if (!root["saturation_B"].isNull())
288 saturation_B.SetJsonValue(root["saturation_B"]);
289 if (!root["mask_mode"].isNull())
290 mask_mode = root["mask_mode"].asInt();
291}
292
293// Get all properties for a specific frame
294std::string Saturation::PropertiesJSON(int64_t requested_frame) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected