|
OpenShot Library | libopenshot
0.7.0
|
Go to the documentation of this file.
13 #ifndef OPENSHOT_COLOR_GRADE_EFFECT_H
14 #define OPENSHOT_COLOR_GRADE_EFFECT_H
16 #include "../AnimatedCurve.h"
17 #include "../EffectBase.h"
21 #include "../KeyFrame.h"
44 QColor
GetColor(int64_t frame_number)
const;
45 float GetAmount(int64_t frame_number)
const;
46 float GetLuma(int64_t frame_number)
const;
62 std::string
Summary(int64_t frame_number)
const;
63 bool IsEnabled(int64_t frame_number)
const;
80 void init_effect_details();
81 void sync_lut_effect();
83 static float Clamp01(
float value);
105 std::shared_ptr<openshot::Frame>
GetFrame(int64_t frame_number)
override {
106 return GetFrame(std::make_shared<openshot::Frame>(), frame_number);
108 std::shared_ptr<openshot::Frame>
GetFrame(std::shared_ptr<openshot::Frame> frame, int64_t frame_number)
override;
110 std::string
Json()
const override;
112 void SetJson(
const std::string value)
override;
114 std::string
PropertiesJSON(int64_t requested_frame)
const override;
float GetAmount(int64_t frame_number) const
ColorGradeWheelsData wheels
ColorGradeWheelEntry midtones
void SetJsonValue(const Json::Value &root)
std::string Summary(int64_t frame_number) const
This abstract class is the base class, used by all effects in libopenshot.
ColorGradeWheelEntry global
This namespace is the default namespace for all code in the openshot library.
All wheel controls for ColorGrade.
void SetJson(const std::string value) override
Load JSON string into this object.
std::string Json() const override
Generate JSON string of this object.
This class represents a color (used on the timeline and clips)
A Keyframe is a collection of Point instances, which is used to vary a number or property over time.
Applies a 1D or 3D LUT (.cube) color transform to each frame.
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
Json::Value JsonValue() const override
Generate Json::Value for this object.
std::string PropertiesJSON(int64_t requested_frame) const override
AnimatedCurve curve_green
Wheel payload for a tonal region using native animated primitives.
Json::Value JsonValue() const
bool IsEnabled(int64_t frame_number) const
A unified beginner-friendly color grading effect.
QColor GetColor(int64_t frame_number) const
void SetJsonValue(const Json::Value &root)
float GetLuma(int64_t frame_number) const
Json::Value JsonValue() const
ColorGradeWheelEntry shadows
Header file for ColorMap (LUT) effect.
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...
ColorGradeWheelEntry highlights