began timeline rewrite

This commit is contained in:
itsmattkc
2019-03-29 23:47:15 +11:00
parent a223b47909
commit 1fdac776d4
9 changed files with 565 additions and 533 deletions
+32
View File
@@ -0,0 +1,32 @@
#ifndef GHOST_H
#define GHOST_H
#include "effects/transition.h"
#include "timelinefunctions.h"
struct Ghost {
int clip;
long in;
long out;
int track;
long clip_in;
long old_in;
long old_out;
int old_track;
long old_clip_in;
// importing variables
Media* media;
int media_stream;
// other variables
long ghost_length;
long media_length;
olive::timeline::TrimType trim_type;
// transition trimming
TransitionPtr transition;
};
#endif // GHOST_H
+6
View File
@@ -0,0 +1,6 @@
#include "timelinefunctions.h"
TimelineFunctions::TimelineFunctions()
{
}
+31
View File
@@ -0,0 +1,31 @@
#ifndef TIMELINEFUNCTIONS_H
#define TIMELINEFUNCTIONS_H
namespace olive {
namespace timeline {
enum CreateObjects {
ADD_OBJ_TITLE,
ADD_OBJ_SOLID,
ADD_OBJ_BARS,
ADD_OBJ_TONE,
ADD_OBJ_NOISE,
ADD_OBJ_AUDIO
};
enum TrimType {
TRIM_NONE,
TRIM_IN,
TRIM_OUT
};
}
}
class TimelineFunctions
{
public:
TimelineFunctions();
};
#endif // TIMELINEFUNCTIONS_H