28 #ifndef OPENSHOT_WIPE_EFFECT_H 29 #define OPENSHOT_WIPE_EFFECT_H 31 #include "../EffectBase.h" 40 #include "../Exceptions.h" 42 #include "../KeyFrame.h" 43 #include "../ReaderBase.h" 44 #include "../FFmpegReader.h" 45 #include "../QtImageReader.h" 46 #include "../ChunkReader.h" 47 #ifdef USE_IMAGEMAGICK 48 #include "../ImageReader.h" 67 std::shared_ptr<QImage> original_mask;
70 int constrain(
int color_value);
73 void set_grayscale_mask(std::shared_ptr<QImage> mask_frame_image,
int width,
int height,
float brightness,
float contrast);
76 void init_effect_details();
104 std::shared_ptr<Frame> GetFrame(std::shared_ptr<Frame> frame, int64_t frame_number);
108 void SetJson(
string value);
109 Json::Value JsonValue();
110 void SetJsonValue(Json::Value root);
114 string PropertiesJSON(int64_t requested_frame);
This abstract class is the base class, used by all effects in libopenshot.
bool replace_image
Replace the frame image with a grayscale image representing the mask. Great for debugging a mask...
void Reader(ReaderBase *new_reader)
Set a new reader to be used by the mask effect (grayscale image)
This abstract class is the base class, used by all readers in libopenshot.
ReaderBase * Reader()
Get the reader object of the mask grayscale image.
Keyframe contrast
Contrast keyframe to control the hardness of the wipe effect / mask.
This class uses the ImageMagick++ libraries, to apply alpha (or transparency) masks to any frame...
This namespace is the default namespace for all code in the openshot library.
Keyframe brightness
Brightness keyframe to control the wipe / mask effect. A constant value here will prevent animation...
A Keyframe is a collection of Point instances, which is used to vary a number or property over time...