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

Method SetJson

src/effects/ColorMap.cpp:338–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338void ColorMap::SetJson(const std::string value)
339{
340 try {
341 const Json::Value root = openshot::stringToJson(value);
342 SetJsonValue(root);
343 }
344 catch (...) {
345 throw InvalidJSON("Invalid JSON for ColorMap effect");
346 }
347}
348
349void ColorMap::SetJsonValue(const Json::Value root)
350{

Callers

nothing calls this directly

Calls 1

InvalidJSONClass · 0.85

Tested by

no test coverage detected