Olive
transition.h
1 #ifndef TRANSITION_H
2 #define TRANSITION_H
3 
4 #include "effect.h"
5 
6 #define TA_NO_TRANSITION 0
7 #define TA_OPENING_TRANSITION 1
8 #define TA_CLOSING_TRANSITION 2
9 
10 #define TRANSITION_INTERNAL_CROSSDISSOLVE 0
11 #define TRANSITION_INTERNAL_LINEARFADE 1
12 #define TRANSITION_INTERNAL_EXPONENTIALFADE 2
13 #define TRANSITION_INTERNAL_LOGARITHMICFADE 3
14 #define TRANSITION_INTERNAL_CUBE 4
15 #define TRANSITION_INTERNAL_COUNT 5
16 
17 int create_transition(Clip* c, Clip* s, const EffectMeta* em, long length = -1);
18 
19 class Transition : public Effect {
20  Q_OBJECT
21 public:
22  Transition(Clip* c, Clip* s, const EffectMeta* em);
23  int copy(Clip* c, Clip* s);
24  Clip* secondary_clip;
25  void set_length(long l);
26  long get_true_length();
27  long get_length();
28 private slots:
29  void set_length_from_slider();
30 private:
31  long length; // used only for transitions
32  EffectField* length_field;
33 };
34 
35 #endif // TRANSITION_H
Definition: effect.h:146
Definition: effect.h:27
Definition: clip.h:33
Definition: effectfield.h:23
Definition: transition.h:19