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

Method SetJsonValue

src/effects/ColorMap.cpp:349–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349void ColorMap::SetJsonValue(const Json::Value root)
350{
351 EffectBase::SetJsonValue(root);
352 if (!root["lut_path"].isNull())
353 {
354 lut_path = root["lut_path"].asString();
355 needs_refresh = true;
356 }
357 if (!root["intensity"].isNull())
358 intensity.SetJsonValue(root["intensity"]);
359 if (!root["intensity_r"].isNull())
360 intensity_r.SetJsonValue(root["intensity_r"]);
361 if (!root["intensity_g"].isNull())
362 intensity_g.SetJsonValue(root["intensity_g"]);
363 if (!root["intensity_b"].isNull())
364 intensity_b.SetJsonValue(root["intensity_b"]);
365}
366
367std::string ColorMap::PropertiesJSON(int64_t requested_frame) const
368{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected