31 #ifndef OPENSHOT_EFFECT_BASE_H 32 #define OPENSHOT_EFFECT_BASE_H 93 int constrain(
int color_value);
97 void InitEffectInfo();
106 void SetParentEffect(std::string parentEffect_id);
109 std::string ParentClipId()
const;
115 virtual std::string Json()
const;
116 virtual void SetJson(
const std::string value);
117 virtual Json::Value JsonValue()
const;
118 virtual void SetJsonValue(
const Json::Value root);
120 virtual std::string
Json(int64_t requested_frame)
const{
123 virtual void SetJson(int64_t requested_frame,
const std::string value) {
127 Json::Value JsonInfo()
const;
133 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.