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;
Header file for ColorMap (LUT) effect.
A unified beginner-friendly color grading effect.
AnimatedCurve curve_green
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...
Json::Value JsonValue() const override
Generate Json::Value for this object.
void SetJson(const std::string value) override
Load JSON string into this object.
std::string Json() const override
Generate JSON string of this object.
std::string PropertiesJSON(int64_t requested_frame) const override
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
ColorGradeWheelsData wheels
Applies a 1D or 3D LUT (.cube) color transform to each frame.
This class represents a color (used on the timeline and clips)
This abstract class is the base class, used by all effects in libopenshot.
A Keyframe is a collection of Point instances, which is used to vary a number or property over time.
This namespace is the default namespace for all code in the openshot library.
Wheel payload for a tonal region using native animated primitives.
QColor GetColor(int64_t frame_number) const
float GetLuma(int64_t frame_number) const
void SetJsonValue(const Json::Value &root)
float GetAmount(int64_t frame_number) const
Json::Value JsonValue() const
All wheel controls for ColorGrade.
std::string Summary(int64_t frame_number) const
ColorGradeWheelEntry highlights
ColorGradeWheelEntry global
bool IsEnabled(int64_t frame_number) const
void SetJsonValue(const Json::Value &root)
ColorGradeWheelEntry midtones
Json::Value JsonValue() const
ColorGradeWheelEntry shadows