OpenShot Library | libopenshot
0.2.2
|
Go to the documentation of this file.
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;
67 else if (color_value > 255)
91 root[
"order"] =
Order();
103 bool success = reader.parse( value, root );
106 throw InvalidJSON(
"JSON could not be parsed (or is invalid)",
"");
116 throw InvalidJSON(
"JSON is invalid (missing keys or invalid data types)",
"");
127 if (!root[
"order"].isNull())
128 Order(root[
"order"].asInt());
EffectInfoStruct info
Information about the current effect.
Json::Value JsonInfo()
Generate JSON object of meta data / info.
This namespace is the default namespace for all code in the openshot library.
float Start()
Get start position (in seconds) of clip (trim start of video)
virtual string Json()=0
Get and Set JSON methods.
string class_name
The class name of the effect.
int Order()
Get the order that this effect should be executed.
void DisplayInfo()
Display effect information in the standard output stream (stdout)
virtual Json::Value JsonValue()=0
Generate Json::JsonValue for this object.
virtual void SetJson(string value)=0
Load JSON string into this object.
Exception for invalid JSON.
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.
virtual void SetJsonValue(Json::Value root)=0
Load Json::JsonValue into this object.
bool has_video
Determines if this effect manipulates the image of a frame.
virtual void SetJsonValue(Json::Value root)=0
Load Json::JsonValue 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)
int constrain(int color_value)
Constrain a color value from 0 to 255.
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.
float Position()
Get position on timeline (in seconds)