32 #ifndef OPENSHOT_STABILIZER_EFFECT_H
33 #define OPENSHOT_STABILIZER_EFFECT_H
35 #include "../EffectBase.h"
42 #include "../KeyFrame.h"
43 #include "protobuf_messages/stabilizedata.pb.h"
89 void init_effect_details();
90 std::string protobuf_data_path;
111 std::shared_ptr<Frame>
GetFrame(std::shared_ptr<Frame> frame, int64_t frame_number)
override;
113 std::shared_ptr<openshot::Frame>
GetFrame(int64_t frame_number)
override {
114 return GetFrame(std::make_shared<openshot::Frame>(), frame_number);
121 std::string
Json()
const override;
122 void SetJson(
const std::string value)
override;
128 std::string
PropertiesJSON(int64_t requested_frame)
const override;
This abstract class is the base class, used by all effects in libopenshot.
A Keyframe is a collection of Point instances, which is used to vary a number or property over time.
This class stabilizes a video clip to remove undesired shaking and jitter.
Json::Value JsonValue() const override
Generate Json::Value for this object.
std::shared_ptr< Frame > GetFrame(std::shared_ptr< Frame > frame, int64_t frame_number) override
This method is required for all derived classes of EffectBase, and returns a modified openshot::Frame...
std::map< size_t, EffectTransformParam > transformationData
std::string PropertiesJSON(int64_t requested_frame) const override
void SetJson(const std::string value) override
Load JSON string into this object.
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
std::map< size_t, EffectCamTrajectory > trajectoryData
bool LoadStabilizedData(std::string inputFilePath)
Load protobuf data file.
std::shared_ptr< openshot::Frame > GetFrame(int64_t frame_number) override
This method is required for all derived classes of ClipBase, and returns a new openshot::Frame object...
std::string Json() const override
Generate JSON string of this object.
This namespace is the default namespace for all code in the openshot library.
EffectCamTrajectory(double _x, double _y, double _a)