File: sequence.h

package info (click to toggle)
olive-editor 20181223-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 2,844 kB
  • sloc: cpp: 20,147; xml: 315; ansic: 16; makefile: 11
file content (45 lines) | stat: -rw-r--r-- 872 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef SEQUENCE_H
#define SEQUENCE_H

#include <QVector>

#include "project/marker.h"
#include "project/selection.h"

struct Clip;
class Transition;

struct Sequence {
	Sequence();
	~Sequence();
    Sequence* copy();
    QString name;
    void getTrackLimits(int* video_tracks, int* audio_tracks);
	long getEndFrame();
    void hard_delete_transition(Clip *c, int type);
	int width;
	int height;
    double frame_rate;
	int audio_frequency;
    int audio_layout;

	QVector<Selection> selections;
	long playhead;

    bool using_workarea;
    long workarea_in;
    long workarea_out;

    bool wrapper_sequence;

    int save_id;

    QVector<Marker> markers;
	QVector<Clip*> clips;
    QVector<Transition*> transitions;
};

// static variable for the currently active sequence
extern Sequence* sequence;

#endif // SEQUENCE_H