| OpenShot Library | libopenshot
    0.4.0
    | 
 
 
 
Go to the documentation of this file.
   13 #ifndef OPENSHOT_COLORMAP_EFFECT_H 
   14 #define OPENSHOT_COLORMAP_EFFECT_H 
   16 #include "../EffectBase.h" 
   18 #include "../KeyFrame.h" 
   21 #include <QTextStream> 
   39         std::vector<float> lut_data;      
 
   43         void init_effect_details();
 
   46         void load_cube_file();
 
   73         std::shared_ptr<openshot::Frame>
 
   75         { 
return GetFrame(std::make_shared<openshot::Frame>(), frame_number); }
 
   78         std::shared_ptr<openshot::Frame>
 
   79         GetFrame(std::shared_ptr<openshot::Frame> frame,
 
   80                  int64_t frame_number) 
override;
 
   83         std::string 
Json() 
const override;
 
   85         void SetJson(
const std::string value) 
override;
 
   89         std::string 
PropertiesJSON(int64_t requested_frame) 
const override;
 
   94 #endif // OPENSHOT_COLORMAP_EFFECT_H 
  
This abstract class is the base class, used by all effects in libopenshot.
This namespace is the default namespace for all code in the openshot library.
std::shared_ptr< openshot::Frame > GetFrame(int64_t frame_number) override
Apply effect to a new frame.
ColorMap()
Blank constructor (used by JSON loader)
Json::Value JsonValue() const override
Generate Json::Value for this object.
Keyframe intensity
Overall intensity 0–1 (affects all channels)
Keyframe intensity_g
Blend 0–1 for green channel.
A Keyframe is a collection of Point instances, which is used to vary a number or property over time.
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
void SetJson(const std::string value) override
Load JSON string into this object.
Applies a 3D LUT (.cube) color transform to each frame.
std::string Json() const override
Generate JSON string of this object.
std::string PropertiesJSON(int64_t requested_frame) const override
Expose properties (for UI)
Keyframe intensity_b
Blend 0–1 for blue channel.
Keyframe intensity_r
Blend 0–1 for red channel.