You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Key "objects" in Json hold a dict of tracked objects
This commit is contained in:
@@ -382,25 +382,19 @@ void TrackedObjectBBox::SetJsonValue(const Json::Value root)
|
||||
if (!root["BaseFPS"]["den"].isNull())
|
||||
BaseFps.den = (int)root["BaseFPS"]["den"].asInt();
|
||||
}
|
||||
|
||||
// Set the TimeScale by the given JSON object
|
||||
if (!root["TimeScale"].isNull())
|
||||
{
|
||||
double scale = (double)root["TimeScale"].asDouble();
|
||||
this->ScalePoints(scale);
|
||||
}
|
||||
|
||||
// Set the protobuf data path by the given JSON object
|
||||
if (!root["protobuf_data_path"].isNull())
|
||||
protobufDataPath = root["protobuf_data_path"].asString();
|
||||
|
||||
// Set the id of the child clip
|
||||
if (!root["child_clip_id"].isNull() && root["child_clip_id"].asString() != ""){
|
||||
Clip* parentClip = (Clip *) ParentClip();
|
||||
|
||||
if(parentClip && (root["child_clip_id"].asString() != parentClip->Id())){
|
||||
ChildClipId(root["child_clip_id"].asString());
|
||||
}
|
||||
ChildClipId(root["child_clip_id"].asString());
|
||||
}
|
||||
|
||||
// Set the Keyframes by the given JSON object
|
||||
|
||||
Reference in New Issue
Block a user