OpenShot Library | libopenshot
0.4.0
|
Go to the documentation of this file.
14 #ifndef OPENSHOT_SHARPEN_EFFECT_H
15 #define OPENSHOT_SHARPEN_EFFECT_H
34 void init_effect_details();
67 std::shared_ptr<Frame>
GetFrame(std::shared_ptr<Frame> frame, int64_t frame_number)
override;
68 std::shared_ptr<Frame>
GetFrame(int64_t n)
override
69 {
return GetFrame(std::make_shared<Frame>(), n); }
72 std::string
Json()
const override;
74 void SetJson(
const std::string value)
override;
79 std::string
PropertiesJSON(int64_t requested_frame)
const override;
84 #endif // OPENSHOT_SHARPEN_EFFECT_H
void SetJson(const std::string value) override
Load JSON string into this object.
int mode
Sharpening mode (0 = UnsharpMask, 1 = HighPassBlend)
This abstract class is the base class, used by all effects in libopenshot.
std::shared_ptr< Frame > GetFrame(int64_t n) override
This method is required for all derived classes of ClipBase, and returns a new openshot::Frame object...
This namespace is the default namespace for all code in the openshot library.
std::string PropertiesJSON(int64_t requested_frame) const override
std::string Json() const override
Get and Set JSON methods.
Keyframe radius
Radius of the blur used in sharpening (0 to 10 pixels for 1080p)
std::shared_ptr< Frame > GetFrame(std::shared_ptr< Frame > frame, int64_t frame_number) override
This method is required for all derived classes of EffectBase, and returns a modified openshot::Frame...
int channel
Channel to apply sharpening to (0 = All, 1 = Luma, 2 = Chroma)
Header file for EffectBase class.
This class provides a sharpen effect for video frames.
Header file for the Keyframe class.
A Keyframe is a collection of Point instances, which is used to vary a number or property over time.
Json::Value JsonValue() const override
Generate Json::Value for this object.
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
Sharpen()
Default constructor.
Keyframe threshold
Threshold for applying sharpening (0 to 1)
Header file for JSON class.
Keyframe amount
Amount of sharpening to apply (0 to 2)