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

Method SetJsonValue

src/effects/Hue.cpp:171–181  ·  view source on GitHub ↗

Load Json::Value into this object

Source from the content-addressed store, hash-verified

169
170// Load Json::Value into this object
171void Hue::SetJsonValue(const Json::Value root) {
172
173 // Set parent data
174 EffectBase::SetJsonValue(root);
175
176 // Set data from Json (if key is found)
177 if (!root["hue"].isNull())
178 hue.SetJsonValue(root["hue"]);
179 if (!root["mask_mode"].isNull())
180 mask_mode = root["mask_mode"].asInt();
181}
182
183// Get all properties for a specific frame
184std::string Hue::PropertiesJSON(int64_t requested_frame) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected