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);
118 bool LoadStabilizedData(std::string inputFilePath);
121 std::string Json()
const override;
122 void SetJson(
const std::string value)
override;
123 Json::Value JsonValue()
const override;
124 void SetJsonValue(
const Json::Value root)
override;
128 std::string PropertiesJSON(int64_t requested_frame)
const override;
This abstract class is the base class, used by all effects in libopenshot.
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::map< size_t, EffectTransformParam > transformationData
std::map< size_t, EffectCamTrajectory > trajectoryData
EffectCamTrajectory(double _x, double _y, double _a)
This namespace is the default namespace for all code in the openshot library.
This class stabilizes a video clip to remove undesired shaking and jitter.
A Keyframe is a collection of Point instances, which is used to vary a number or property over time...