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

Method PropertiesJSON

src/effects/ColorMap.cpp:367–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367std::string ColorMap::PropertiesJSON(int64_t requested_frame) const
368{
369 Json::Value root = BasePropertiesJSON(requested_frame);
370
371 root["lut_path"] = add_property_json(
372 "LUT File", 0.0, "string", lut_path, nullptr, 0, 0, false, requested_frame);
373
374 root["intensity"] = add_property_json(
375 "Overall Intensity",
376 intensity.GetValue(requested_frame),
377 "float", "", &intensity, 0.0, 1.0, false, requested_frame);
378
379 root["intensity_r"] = add_property_json(
380 "Red Intensity",
381 intensity_r.GetValue(requested_frame),
382 "float", "", &intensity_r, 0.0, 1.0, false, requested_frame);
383
384 root["intensity_g"] = add_property_json(
385 "Green Intensity",
386 intensity_g.GetValue(requested_frame),
387 "float", "", &intensity_g, 0.0, 1.0, false, requested_frame);
388
389 root["intensity_b"] = add_property_json(
390 "Blue Intensity",
391 intensity_b.GetValue(requested_frame),
392 "float", "", &intensity_b, 0.0, 1.0, false, requested_frame);
393
394 return root.toStyledString();
395}

Callers

nothing calls this directly

Calls 1

GetValueMethod · 0.80

Tested by

no test coverage detected