1 /***************************************************************************
2 * Copyright (C) 2007 by Jean-Baptiste Mardelle (jb@kdenlive.org) *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
18 ***************************************************************************/
29 #define MAXCLIPDURATION 15000
31 enum OPERATIONTYPE { NONE = 0, MOVE = 1, RESIZESTART = 2, RESIZEEND = 3, FADEIN = 4, FADEOUT = 5, TRANSITIONSTART = 6, TRANSITIONEND = 7, MOVEGUIDE = 8, KEYFRAME = 9};
32 enum CLIPTYPE { UNKNOWN = 0, AUDIO = 1, VIDEO = 2, AV = 3, COLOR = 4, IMAGE = 5, TEXT = 6, SLIDESHOW = 7, VIRTUAL = 8, PLAYLIST = 9, FOLDER = 10};
33 enum GRAPHICSRECTITEM { AVWIDGET = 70000 , LABELWIDGET , TRANSITIONWIDGET };
35 enum PROJECTTOOL { SELECTTOOL = 0 , RAZORTOOL = 1 };
38 /** TRANSITIONTYPE: between 0-99: video trans, 100-199: video+audio trans, 200-299: audio trans */
40 COMPOSITE_TRANSITION = 1,
42 LUMAFILE_TRANSITION = 3,
48 OperationCompletedMessage,
53 enum TRACKTYPE { AUDIOTRACK = 0, VIDEOTRACK = 1 };
68 struct MltVideoProfile {
76 int sample_aspect_num;
77 int sample_aspect_den;
78 int display_aspect_num;
79 int display_aspect_den;
84 CommentedTime(): t(GenTime(0)) {}
85 CommentedTime(const GenTime time, QString comment)
86 : t(time), c(comment) { }
88 QString comment() const {
89 return (c.isEmpty() ? i18n("Marker") : c);
91 GenTime time() const {
94 void setComment(QString comm) {
98 /* Implementation of > operator; Works identically as with basic types. */
99 bool operator>(CommentedTime op) const {
100 return t > op.time();
102 /* Implementation of < operator; Works identically as with basic types. */
103 bool operator<(CommentedTime op) const {
104 return t < op.time();
106 /* Implementation of >= operator; Works identically as with basic types. */
107 bool operator>=(CommentedTime op) const {
108 return t >= op.time();
110 /* Implementation of <= operator; Works identically as with basic types. */
111 bool operator<=(CommentedTime op) const {
112 return t <= op.time();
114 /* Implementation of == operator; Works identically as with basic types. */
115 bool operator==(CommentedTime op) const {
116 return t == op.time();
118 /* Implementation of != operator; Works identically as with basic types. */
119 bool operator!=(CommentedTime op) const {
120 return t != op.time();