28 #include "../include/EffectBase.h" 50 cout << fixed << setprecision(2) << boolalpha;
51 cout <<
"----------------------------" << endl;
52 cout <<
"----- Effect Information -----" << endl;
53 cout <<
"----------------------------" << endl;
54 cout <<
"--> Name: " <<
info.
name << endl;
58 cout <<
"----------------------------" << endl;
79 root[
"order"] =
Order();
91 bool success = reader.parse( value, root );
94 throw InvalidJSON(
"JSON could not be parsed (or is invalid)",
"");
104 throw InvalidJSON(
"JSON is invalid (missing keys or invalid data types)",
"");
115 if (!root[
"order"].isNull())
116 Order(root[
"order"].asInt());
void DisplayInfo()
Display effect information in the standard output stream (stdout)
virtual void SetJson(string value)=0
Load JSON string into this object.
float End()
Get end position (in seconds) of clip (trim end of video)
int Layer()
Get layer of clip on timeline (lower number is covered by higher numbers)
string class_name
The class name of the effect.
Json::Value JsonInfo()
Generate JSON object of meta data / info.
virtual Json::Value JsonValue()=0
Generate Json::JsonValue for this object.
bool has_audio
Determines if this effect manipulates the audio of a frame.
virtual void SetJsonValue(Json::Value root)=0
Load Json::JsonValue into this object.
float Position()
Get position on timeline (in seconds)
string name
The name of the effect.
string description
The description of this effect and what it does.
virtual void SetJsonValue(Json::Value root)=0
Load Json::JsonValue into this object.
This namespace is the default namespace for all code in the openshot library.
bool has_video
Determines if this effect manipulates the image of a frame.
Exception for invalid JSON.
string short_name
A short name of the effect, commonly used for icon names, etc...
virtual Json::Value JsonValue()=0
Generate Json::JsonValue for this object.
int Order()
Get the order that this effect should be executed.
virtual string Json()=0
Get and Set JSON methods.
float Start()
Get start position (in seconds) of clip (trim start of video)
EffectInfoStruct info
Information about the current effect.