|
OpenShot Library | libopenshot
0.5.0
|
Go to the documentation of this file.
13 #ifndef OPENSHOT_PIXELATE_EFFECT_H
14 #define OPENSHOT_PIXELATE_EFFECT_H
16 #include "../EffectBase.h"
20 #include "../KeyFrame.h"
42 void init_effect_details();
46 void ApplyCustomMaskBlend(std::shared_ptr<QImage> original_image, std::shared_ptr<QImage> effected_image,
47 std::shared_ptr<QImage> mask_image, int64_t frame_number)
const override;
75 std::shared_ptr<openshot::Frame>
77 return GetFrame(std::make_shared<openshot::Frame>(),
90 std::shared_ptr<openshot::Frame>
91 GetFrame(std::shared_ptr<openshot::Frame> frame, int64_t frame_number)
override;
94 std::string
Json()
const override;
95 void SetJson(
const std::string value)
override;
101 std::string
PropertiesJSON(int64_t requested_frame)
const override;
std::shared_ptr< openshot::Frame > GetFrame(int64_t frame_number) override
This method is required for all derived classes of ClipBase, and returns a new openshot::Frame object...
This abstract class is the base class, used by all effects in libopenshot.
std::string PropertiesJSON(int64_t requested_frame) const override
This namespace is the default namespace for all code in the openshot library.
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
Keyframe pixelization
Amount of pixelization.
@ PIXELATE_MASK_LIMIT_TO_AREA
This class pixelates an image, and can be animated with openshot::Keyframe curves over time.
bool UseCustomMaskBlend(int64_t frame_number) const override
Optional override for effects that need custom mask behavior.
std::string Json() const override
Generate JSON string of this object.
Keyframe bottom
Size of bottom margin.
A Keyframe is a collection of Point instances, which is used to vary a number or property over time.
Keyframe right
Size of right margin.
void ApplyCustomMaskBlend(std::shared_ptr< QImage > original_image, std::shared_ptr< QImage > effected_image, std::shared_ptr< QImage > mask_image, int64_t frame_number) const override
Optional override for effects with custom mask implementation.
Keyframe left
Size of left margin.
Pixelate()
Default constructor, useful when using Json to load the effect properties.
Json::Value JsonValue() const override
Generate Json::Value for this object.
Keyframe top
Size of top margin.
@ PIXELATE_MASK_VARY_STRENGTH
void SetJson(const std::string value) override
Load JSON string into this object.
int mask_mode
Mask behavior mode for this effect.