| OpenShot Library | libopenshot
    0.4.0
    | 
 
 
 
Go to the documentation of this file.
   13 #ifndef OPENSHOT_SPHERICAL_PROJECTION_EFFECT_H 
   14 #define OPENSHOT_SPHERICAL_PROJECTION_EFFECT_H 
   16 #include "../EffectBase.h" 
   19 #include "../KeyFrame.h" 
   35     void init_effect_details();
 
   57     std::shared_ptr<Frame> 
GetFrame(int64_t frame_number)
 override 
   58     { 
return GetFrame(std::make_shared<Frame>(), frame_number); }
 
   61     std::shared_ptr<Frame> 
GetFrame(std::shared_ptr<Frame> frame,
 
   62                                     int64_t frame_number) 
override;
 
   65     std::string 
Json() 
const override;
 
   66     void SetJson(std::string value) 
override;
 
   69     std::string 
PropertiesJSON(int64_t requested_frame) 
const override;
 
   74 #endif // OPENSHOT_SPHERICAL_PROJECTION_EFFECT_H 
  
int invert
0=Normal, 1=Invert (back lens / +180°)
This abstract class is the base class, used by all effects in libopenshot.
int interpolation
0=Nearest, 1=Bilinear
Keyframe pitch
Pitch around right-axis (degrees)
This namespace is the default namespace for all code in the openshot library.
void SetJsonValue(Json::Value root) override
Load Json::Value into this object.
Keyframe yaw
Yaw around up-axis (degrees)
std::string PropertiesJSON(int64_t requested_frame) const override
A Keyframe is a collection of Point instances, which is used to vary a number or property over time.
std::shared_ptr< Frame > GetFrame(int64_t frame_number) override
ClipBase override: create a fresh Frame then call the main GetFrame.
int projection_mode
0=Sphere, 1=Hemisphere, 2=Fisheye
SphericalProjection()
Blank ctor (for JSON deserialization)
std::string Json() const override
Generate JSON string of this object.
Projects 360° or fisheye video through a virtual camera. Supports yaw, pitch, roll,...
void SetJson(std::string value) override
Load JSON string into this object.
Json::Value JsonValue() const override
Generate Json::Value for this object.
Keyframe fov
Field-of-view (horizontal, degrees)
Keyframe roll
Roll around forward-axis (degrees)