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

Method JsonValue

src/effects/Saturation.cpp:242–255  ·  view source on GitHub ↗

Generate Json::Value for this object

Source from the content-addressed store, hash-verified

240
241// Generate Json::Value for this object
242Json::Value Saturation::JsonValue() const {
243
244 // Create root json object
245 Json::Value root = EffectBase::JsonValue(); // get parent properties
246 root["type"] = info.class_name;
247 root["saturation"] = saturation.JsonValue();
248 root["saturation_R"] = saturation_R.JsonValue();
249 root["saturation_G"] = saturation_G.JsonValue();
250 root["saturation_B"] = saturation_B.JsonValue();
251 root["mask_mode"] = mask_mode;
252
253 // return JsonValue
254 return root;
255}
256
257// Load JSON string into this object
258void Saturation::SetJson(const std::string value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected