28 #ifndef OPENSHOT_CLIPBASE_H 29 #define OPENSHOT_CLIPBASE_H 32 #ifndef __JUCE_UNITTEST_JUCEHEADER__ 33 #define __JUCE_UNITTEST_JUCEHEADER__ 62 Json::Value add_property_json(
string name,
float value,
string type,
string memo,
bool contains_point,
int number_of_points,
float min_value,
float max_value,
InterpolationType intepolation,
int closest_point_x,
bool readonly);
65 Json::Value add_property_choice_json(
string name,
int value,
int selected_value);
76 string Id() {
return id; }
80 float End() {
return end; }
84 void Id(
string value) {
id = value; }
85 void Position(
float value) { position = value; }
86 void Layer(
int value) { layer = value; }
87 void Start(
float value) { start = value; }
88 void End(
float value) { end = value; }
91 virtual string Json() = 0;
92 virtual void SetJson(
string value)
throw(
InvalidJSON) = 0;
93 virtual Json::Value JsonValue() = 0;
94 virtual void SetJsonValue(Json::Value root) = 0;
98 virtual string PropertiesJSON(
long int requested_frame) = 0;
void Layer(int value)
Set layer of clip on timeline (lower number is covered by higher numbers)
string previous_properties
This string contains the previous JSON properties.
void Start(float value)
Set start position (in seconds) of clip (trim start of video)
Header file for Point class.
float position
The position on the timeline where this clip should start playing.
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 layer
The layer this clip is on. Lower clips are covered up by higher clips.
Header file for all Exception classes.
string Id()
Get basic properties.
float Position()
Get position on timeline (in seconds)
Header file for JSON class.
void Position(float value)
Set the Id of this clip object
string id
ID Property for all derived Clip and Effect classes.
float start
The position in seconds to start playing (used to trim the beginning of a clip)
This abstract class is the base class, used by all clips in libopenshot.
void Id(string value)
Set basic properties.
void End(float value)
Set end position (in seconds) of clip (trim end of video)
float end
The position in seconds to end playing (used to trim the ending of a clip)
InterpolationType
This controls how a Keyframe uses this point to interpolate between two points.
This namespace is the default namespace for all code in the openshot library.
Exception for invalid JSON.
float Duration()
Get the length of this clip (in seconds)
float Start()
Get start position (in seconds) of clip (trim start of video)