13 #ifndef OPENSHOT_EFFECT_BASE_H 14 #define OPENSHOT_EFFECT_BASE_H 72 void DisplayInfo(std::ostream* out=&std::cout);
75 int constrain(
int color_value);
79 void InitEffectInfo();
88 void SetParentEffect(std::string parentEffect_id);
91 std::string ParentClipId()
const;
97 virtual std::string Json()
const;
98 virtual void SetJson(
const std::string value);
99 virtual Json::Value JsonValue()
const;
100 virtual void SetJsonValue(
const Json::Value root);
102 virtual std::string
Json(int64_t requested_frame)
const{
105 virtual void SetJson(int64_t requested_frame,
const std::string value) {
109 Json::Value JsonInfo()
const;
115 void Order(
int new_order) { order = new_order; }
Header file for ClipBase class.
This abstract class is the base class, used by all effects in libopenshot.
virtual std::string Json(int64_t requested_frame) const
std::map< int, std::shared_ptr< openshot::TrackedObjectBase > > trackedObjects
Map of Tracked Object's by their indices (used by Effects that track objects on clips) ...
openshot::ClipBase * clip
Pointer to the parent clip instance (if any)
EffectBase * parentEffect
Parent effect (which properties will set this effect properties)
bool has_audio
Determines if this effect manipulates the audio of a frame.
void Order(int new_order)
Set the order that this effect should be executed.
Header file for JSON class.
virtual std::string GetVisibleObjects(int64_t frame_number) const
Get the indexes and IDs of all visible objects in the given frame.
This abstract class is the base class, used by all clips in libopenshot.
bool has_tracked_object
Determines if this effect track objects through the clip.
std::string class_name
The class name of the effect.
std::string name
The name of the effect.
int Order() const
Get the order that this effect should be executed.
This struct contains info about an effect, such as the name, video or audio effect, etc...
This namespace is the default namespace for all code in the openshot library.
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.
virtual void SetJson(int64_t requested_frame, const std::string value)
std::string parent_effect_id
Id of the parent effect (if there is one)
Header file for the TrackedObjectBase class.
EffectInfoStruct info
Information about the current effect.