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

Method PropertiesJSON

src/effects/AnalogTape.cpp:426–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426std::string AnalogTape::PropertiesJSON(int64_t requested_frame) const {
427 Json::Value root = BasePropertiesJSON(requested_frame);
428 root["tracking"] =
429 add_property_json("Tracking", tracking.GetValue(requested_frame), "float",
430 "", &tracking, 0, 1, false, requested_frame);
431 root["bleed"] =
432 add_property_json("Bleed", bleed.GetValue(requested_frame), "float", "",
433 &bleed, 0, 1, false, requested_frame);
434 root["softness"] =
435 add_property_json("Softness", softness.GetValue(requested_frame), "float",
436 "", &softness, 0, 1, false, requested_frame);
437 root["noise"] =
438 add_property_json("Noise", noise.GetValue(requested_frame), "float", "",
439 &noise, 0, 1, false, requested_frame);
440 root["stripe"] =
441 add_property_json("Stripe", stripe.GetValue(requested_frame), "float",
442 "Bottom tracking stripe brightness and noise.",
443 &stripe, 0, 1, false, requested_frame);
444 root["static_bands"] =
445 add_property_json("Static Bands", staticBands.GetValue(requested_frame),
446 "float",
447 "Short bright static bands and extra dropouts.",
448 &staticBands, 0, 1, false, requested_frame);
449 root["seed_offset"] =
450 add_property_json("Seed Offset", seed_offset, "int", "", NULL, 0, 1000,
451 false, requested_frame);
452 return root.toStyledString();
453}

Callers

nothing calls this directly

Calls 1

GetValueMethod · 0.80

Tested by

no test coverage detected