You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
18 lines
417 B
C++
18 lines
417 B
C++
|
|
#include "../include/Timeline.h"
|
||
|
|
|
||
|
|
using namespace openshot;
|
||
|
|
|
||
|
|
// Default Constructor for the timeline (which sets the canvas width and height)
|
||
|
|
Timeline::Timeline(int width, int height)
|
||
|
|
{
|
||
|
|
// Init canvas size
|
||
|
|
canvas_width = width;
|
||
|
|
canvas_height = height;
|
||
|
|
|
||
|
|
// Init viewport size (curve based, because it can be animated)
|
||
|
|
viewport_scale = Keyframe(100.0);
|
||
|
|
viewport_x = Keyframe(0.0);
|
||
|
|
viewport_y = Keyframe(0.0);
|
||
|
|
|
||
|
|
}
|