You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
34 lines
555 B
C++
34 lines
555 B
C++
#include "../include/Clip.h"
|
|
|
|
using namespace openshot;
|
|
|
|
// Default Constructor for a clip
|
|
Clip::Clip()
|
|
{
|
|
// Init clip settings
|
|
position = 0.0;
|
|
layer = 0;
|
|
start = 0.0;
|
|
end = 0.0;
|
|
gravity = CENTER;
|
|
scale = FIT;
|
|
anchor = CANVAS;
|
|
|
|
// Init scale curves
|
|
scale_x = Keyframe(100.0);
|
|
scale_y = Keyframe(100.0);
|
|
|
|
// Init location curves
|
|
location_x = Keyframe(0.0);
|
|
location_y = Keyframe(0.0);
|
|
|
|
// Init alpha & rotation
|
|
alpha = Keyframe(100.0);
|
|
rotation = Keyframe(0.0);
|
|
|
|
// Init time & volume
|
|
time = Keyframe(0.0);
|
|
volume = Keyframe(100.0);
|
|
|
|
}
|