OpenShot Library | libopenshot 0.5.0
Loading...
Searching...
No Matches
LensFlare.h
Go to the documentation of this file.
1
8
9// Copyright (c) 2008-2025 OpenShot Studios, LLC
10//
11// SPDX-License-Identifier: LGPL-3.0-or-later
12
13#ifndef OPENSHOT_LENSFLARE_EFFECT_H
14#define OPENSHOT_LENSFLARE_EFFECT_H
15
16#include "../EffectBase.h"
17#include "../KeyFrame.h"
18#include "../Color.h"
19#include <QImage>
20#include <QColor>
21
22namespace openshot
23{
24 class LensFlare : public EffectBase
25 {
26 private:
27 void init_effect_details();
28
29 public:
36
37 LensFlare();
38 ~LensFlare() override;
39 LensFlare(const Keyframe &xPos,
40 const Keyframe &yPos,
41 const Keyframe &intensity,
42 const Keyframe &scale,
43 const Keyframe &spreadVal,
44 const Keyframe &bladeCount,
45 const Keyframe &shapeType,
46 const Color &tint = Color("#ffffff"));
47
48 std::shared_ptr<openshot::Frame> GetFrame(int64_t frame_number) override;
49 std::shared_ptr<openshot::Frame> GetFrame(std::shared_ptr<openshot::Frame> frame,
50 int64_t frame_number) override;
51
52 std::string Json() const override;
53 Json::Value JsonValue() const override;
54 void SetJson(const std::string value) override;
55 void SetJsonValue(const Json::Value root) override;
56
57 std::string PropertiesJSON(int64_t requested_frame) const override;
58 };
59
60} // namespace openshot
61
62#endif // OPENSHOT_LENSFLARE_EFFECT_H
Header file for Color class.
Header file for EffectBase class.
Header file for the Keyframe class.
This class represents a color (used on the timeline and clips).
Definition Color.h:27
This abstract class is the base class, used by all effects in libopenshot.
Definition EffectBase.h:54
A Keyframe is a collection of Point instances, which is used to vary a number or property over time.
Definition KeyFrame.h:53
std::string PropertiesJSON(int64_t requested_frame) const override
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
Json::Value JsonValue() const override
Generate Json::Value for this object.
~LensFlare() override
Keyframe brightness
Definition LensFlare.h:32
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...
std::string Json() const override
Generate JSON string of this object.
void SetJson(const std::string value) override
Load JSON string into this object.
This namespace is the default namespace for all code in the openshot library.
Definition Compressor.h:29