Loading...
Searching...
No Matches
LensFlare.h
Go to the documentation of this file.
// Copyright (c) 2008-2025 OpenShot Studios, LLC
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef OPENSHOT_LENSFLARE_EFFECT_H
#define OPENSHOT_LENSFLARE_EFFECT_H
#include "../EffectBase.h"
#include "../KeyFrame.h"
#include "../Color.h"
#include <QImage>
#include <QColor>
namespace openshot
{
class LensFlare : public EffectBase
{
private:
void init_effect_details();
public:
Keyframe x;
Keyframe y;
Keyframe brightness;
Keyframe size;
Keyframe spread;
Color color;
LensFlare();
~LensFlare() override;
LensFlare(const Keyframe &xPos,
const Keyframe &yPos,
const Keyframe &intensity,
const Keyframe &scale,
const Keyframe &spreadVal,
const Keyframe &bladeCount,
const Keyframe &shapeType,
const Color &tint = Color("#ffffff"));
std::shared_ptr<openshot::Frame> GetFrame(int64_t frame_number) override;
std::shared_ptr<openshot::Frame> GetFrame(std::shared_ptr<openshot::Frame> frame,
int64_t frame_number) override;
std::string Json() const override;
Json::Value JsonValue() const override;
void SetJson(const std::string value) override;
void SetJsonValue(const Json::Value root) override;
std::string PropertiesJSON(int64_t requested_frame) const override;
};
} // namespace openshot
#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:54
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:406
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:394
openshot::LensFlare::JsonValue
Json::Value JsonValue() const override
Generate Json::Value for this object.
Definition LensFlare.cpp:373
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:361
openshot::LensFlare::Json
std::string Json() const override
Generate JSON string of this object.
Definition LensFlare.cpp:367
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:387
openshot
This namespace is the default namespace for all code in the openshot library.
Definition Compressor.h:29