|
OpenShot Library | libopenshot
0.7.0
|
Go to the documentation of this file.
13 #ifndef OPENSHOT_TIMER_EFFECT_H
14 #define OPENSHOT_TIMER_EFFECT_H
17 #include "../EffectBase.h"
21 #include "../KeyFrame.h"
52 void init_effect_details();
53 double ResolveFps()
const;
54 int64_t EffectiveFrameNumber(int64_t frame_number)
const;
55 double CountdownDuration(int64_t frame_number)
const;
56 std::string FormatSeconds(
double seconds,
double fps,
bool duration_style)
const;
57 std::string FormatTimecode(
double seconds,
double fps)
const;
58 std::string TimerLayoutText(int64_t frame_number)
const;
86 std::shared_ptr<openshot::Frame>
GetFrame(int64_t frame_number)
override {
return GetFrame(std::make_shared<openshot::Frame>(), frame_number); }
87 std::shared_ptr<openshot::Frame>
GetFrame(std::shared_ptr<openshot::Frame> frame, int64_t frame_number)
override;
90 std::string
TimerText(int64_t frame_number)
const;
92 std::string
Json()
const override;
93 void SetJson(
const std::string value)
override;
96 std::string
PropertiesJSON(int64_t requested_frame)
const override;
Keyframe background_alpha
Keyframe background_padding
@ TIMER_FORMAT_HH_MM_SS_MILLISECONDS
double TimerSeconds(int64_t frame_number) const
This abstract class is the base class, used by all effects in libopenshot.
std::string PropertiesJSON(int64_t requested_frame) const override
This namespace is the default namespace for all code in the openshot library.
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...
Keyframe background_corner
void SetJson(const std::string value) override
Load JSON string into this object.
std::string TimerText(int64_t frame_number) const
This class represents a color (used on the timeline and clips)
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
A Keyframe is a collection of Point instances, which is used to vary a number or property over time.
@ TIMER_MODE_FRAME_NUMBER
std::string Json() const override
Generate JSON string of this object.
Json::Value JsonValue() const override
Generate Json::Value for this object.