Files
libopenshot/include/Timeline.h

46 lines
1.1 KiB
C++

#ifndef OPENSHOT_TIMELINE_H
#define OPENSHOT_TIMELINE_H
/**
* \file
* \brief Header file for Timeline class
* \author Copyright (c) 2011 Jonathan Thomas
*/
#include "KeyFrame.h"
using namespace std;
using namespace openshot;
namespace openshot {
/**
* \brief This class represents a timeline
*
* The timeline is one of the most important features of a video editor, and controls all
* aspects of how video, image, and audio clips are combined together, and how the final
* video output will be rendered. It has a collection of layers and clips, that arrange,
* sequence, and generate the final video output.
*/
class Timeline {
private:
int canvas_width; ///<Width of the canvas
int canvas_height; ///<Height of the canvas
Keyframe viewport_scale; ///<Curve representing the scale of the viewport (0 to 100)
Keyframe viewport_x; ///<Curve representing the x coordinate for the viewport
Keyframe viewport_y; ///<Curve representing the y coordinate for the viewport
public:
/// Default Constructor for the timeline (which sets the canvas width and height)
Timeline(int width, int height);
};
}
#endif