OpenShot Library | libopenshot
0.2.5
|
Go to the documentation of this file.
31 #ifndef OPENSHOT_EFFECT_BASE_H
32 #define OPENSHOT_EFFECT_BASE_H
90 virtual std::shared_ptr<openshot::Frame>
GetFrame(std::shared_ptr<openshot::Frame> frame, int64_t frame_number) = 0;
97 virtual std::string
Json()
const = 0;
98 virtual void SetJson(
const std::string value) = 0;
99 virtual Json::Value
JsonValue()
const = 0;
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.
virtual std::shared_ptr< openshot::Frame > GetFrame(std::shared_ptr< openshot::Frame > frame, int64_t frame_number)=0
This method is required for all derived classes of EffectBase, and returns a modified openshot::Frame...
Json::Value JsonInfo() const
Generate JSON object of meta data / info.
This namespace is the default namespace for all code in the openshot library.
void DisplayInfo()
Display effect information in the standard output stream (stdout)
This struct contains info about an effect, such as the name, video or audio effect,...
virtual void SetJsonValue(const Json::Value root)=0
Load Json::Value into this object.
virtual Json::Value JsonValue() const =0
Generate Json::Value for this object.
virtual ~EffectBase()=default
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.
Header file for Frame class.
virtual void SetJson(const std::string value)=0
Load JSON string into this object.
int Order() const
Get the order that this effect should be executed.
std::string class_name
The class name of the effect.
std::string description
The description of this effect and what it does.
bool has_video
Determines if this effect manipulates the image of a frame.
int constrain(int color_value)
Constrain a color value from 0 to 255.
std::string name
The name of the effect.
virtual std::string Json() const =0
Get and Set JSON methods.
Header file for JSON class.
This abstract class is the base class, used by all clips in libopenshot.
Header file for ClipBase class.