began timeline rewrite
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,6 @@
|
||||
#include "timelinefunctions.h"
|
||||
|
||||
TimelineFunctions::TimelineFunctions()
|
||||
{
|
||||
|
||||
}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user