This class shifts the pixels of an image up, down, left, or right, and can be animated with openshot::Keyframe curves over time.
More...
|
Json::Value | add_property_choice_json (string name, int value, int selected_value) |
| Generate JSON choice for a property (dropdown properties) More...
|
|
Json::Value | add_property_json (string name, float value, string type, string memo, Keyframe *keyframe, float min_value, float max_value, bool readonly, int64_t requested_frame) |
| Generate JSON for a property. More...
|
|
float | end |
| The position in seconds to end playing (used to trim the ending of a clip) More...
|
|
string | id |
| ID Property for all derived Clip and Effect classes. More...
|
|
int | layer |
| The layer this clip is on. Lower clips are covered up by higher clips. More...
|
|
int | max_height |
| The maximium image height needed by this clip (used for optimizations) More...
|
|
int | max_width |
| The maximum image width needed by this clip (used for optimizations) More...
|
|
float | position |
| The position on the timeline where this clip should start playing. More...
|
|
string | previous_properties |
| This string contains the previous JSON properties. More...
|
|
float | start |
| The position in seconds to start playing (used to trim the beginning of a clip) More...
|
|
This class shifts the pixels of an image up, down, left, or right, and can be animated with openshot::Keyframe curves over time.
Shifting pixels can be used in many interesting ways, especially when animating the movement of the pixels. The pixels wrap around the image (the pixels drop off one side and appear on the other side of the image).
Definition at line 52 of file Shift.h.
std::shared_ptr< Frame > Shift::GetFrame |
( |
std::shared_ptr< Frame > |
frame, |
|
|
int64_t |
frame_number |
|
) |
| |
|
virtual |
This method is required for all derived classes of EffectBase, and returns a modified openshot::Frame object.
The frame object is passed into this method, and a frame_number is passed in which tells the effect which settings to use from it's keyframes (starting at 1).
- Returns
- The modified openshot::Frame object
- Parameters
-
frame | The frame object that needs the effect applied to it |
frame_number | The frame number (starting at 1) of the effect on the timeline. |
Implements openshot::EffectBase.
Definition at line 61 of file Shift.cpp.