OpenShot Library | libopenshot
0.2.2
|
Go to the documentation of this file.
28 #ifndef OPENSHOT_EFFECT_BASE_H
29 #define OPENSHOT_EFFECT_BASE_H
79 int constrain(
int color_value);
90 virtual std::shared_ptr<Frame> GetFrame(std::shared_ptr<Frame> frame, int64_t frame_number) = 0;
94 void InitEffectInfo();
97 virtual string Json() = 0;
98 virtual void SetJson(
string value) = 0;
99 virtual Json::Value JsonValue() = 0;
100 virtual void SetJsonValue(Json::Value root) = 0;
101 Json::Value JsonInfo();
107 void Order(
int new_order) { order = new_order; }
This abstract class is the base class, used by all effects in libopenshot.
EffectInfoStruct info
Information about the current effect.
This namespace is the default namespace for all code in the openshot library.
string class_name
The class name of the effect.
int Order()
Get the order that this effect should be executed.
This struct contains info about an effect, such as the name, video or audio effect,...
void Order(int new_order)
Set the order that this effect should be executed.
bool has_audio
Determines if this effect manipulates the audio of a frame.
string description
The description of this effect and what it does.
string name
The name of the effect.
Header file for Frame class.
bool has_video
Determines if this effect manipulates the image of a frame.
string short_name
A short name of the effect, commonly used for icon names, etc...
Header file for JSON class.
This abstract class is the base class, used by all clips in libopenshot.
Header file for ClipBase class.