Skip to content

Commit

Permalink
Refactored KeyframeBBox
Browse files Browse the repository at this point in the history
-Moved the methods that handles protobuf data from Tracker to KeyframeBBox
-Displacement and scale keyframes are now properties of KeyframeBBox
-Changed interface that updates the KeyframeBBox properties.
  • Loading branch information
BrennoCaldato committed Dec 12, 2020
1 parent e3bd2e4 commit 60cec47
Show file tree
Hide file tree
Showing 6 changed files with 589 additions and 609 deletions.
8 changes: 8 additions & 0 deletions src/EffectBase.h
Expand Up @@ -97,6 +97,14 @@ namespace openshot
virtual void SetJson(const std::string value) = 0; ///< Load JSON string into this object
virtual Json::Value JsonValue() const = 0; ///< Generate Json::Value for this object
virtual void SetJsonValue(const Json::Value root) = 0; ///< Load Json::Value into this object

virtual std::string Json(int64_t requested_frame) const{
return {};
};
virtual void SetJson(int64_t requested_frame, const std::string value) {
return;
};

Json::Value JsonInfo() const; ///< Generate JSON object of meta data / info

/// Get the order that this effect should be executed.
Expand Down

0 comments on commit 60cec47

Please sign in to comment.