OpenShot Library | libopenshot
1.1.1
Toggle main menu visibility
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
22
namespace
openshot
23
{
24
class
LensFlare
:
public
EffectBase
25
{
26
private
:
27
void
init_effect_details();
28
29
public
:
30
Keyframe
x
;
31
Keyframe
y
;
32
Keyframe
brightness
;
33
Keyframe
size
;
34
Keyframe
spread
;
35
Color
color
;
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
Color.h
Header file for Color class.
EffectBase.h
Header file for EffectBase class.
KeyFrame.h
Header file for the Keyframe class.
openshot::Color
This class represents a color (used on the timeline and clips).
Definition
Color.h:27
openshot::EffectBase
This abstract class is the base class, used by all effects in libopenshot.
Definition
EffectBase.h:57
openshot::Keyframe
A Keyframe is a collection of Point instances, which is used to vary a number or property over time.
Definition
KeyFrame.h:53
openshot::LensFlare::PropertiesJSON
std::string PropertiesJSON(int64_t requested_frame) const override
Definition
LensFlare.cpp:411
openshot::LensFlare::LensFlare
LensFlare()
Definition
LensFlare.cpp:47
openshot::LensFlare::size
Keyframe size
Definition
LensFlare.h:33
openshot::LensFlare::y
Keyframe y
Definition
LensFlare.h:31
openshot::LensFlare::SetJsonValue
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
Definition
LensFlare.cpp:399
openshot::LensFlare::JsonValue
Json::Value JsonValue() const override
Generate Json::Value for this object.
Definition
LensFlare.cpp:378
openshot::LensFlare::~LensFlare
~LensFlare() override
openshot::LensFlare::brightness
Keyframe brightness
Definition
LensFlare.h:32
openshot::LensFlare::x
Keyframe x
Definition
LensFlare.h:30
openshot::LensFlare::color
Color color
Definition
LensFlare.h:35
openshot::LensFlare::GetFrame
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...
Definition
LensFlare.cpp:366
openshot::LensFlare::Json
std::string Json() const override
Generate JSON string of this object.
Definition
LensFlare.cpp:372
openshot::LensFlare::spread
Keyframe spread
Definition
LensFlare.h:34
openshot::LensFlare::SetJson
void SetJson(const std::string value) override
Load JSON string into this object.
Definition
LensFlare.cpp:392
openshot
This namespace is the default namespace for all code in the openshot library.
Definition
AnimatedCurve.h:24
effects
LensFlare.h
Generated by
1.17.0