summaryrefslogtreecommitdiffstats
path: root/edl.h
blob: 1bc8e58159bdc12e7adf1ded7402f058ca4e9dce (plain)
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
// EDL version 0.6

#ifndef EDLH
#define EDLH

#define EDL_SKIP 0
#define EDL_MUTE 1
#define EDL_ERROR -1
#define EDL_MUTE_START 1
#define EDL_MUTE_END 0

struct edl_record {
  float start_sec;
  long start_frame;
  float stop_sec;
  long stop_frame;
  float length_sec;
  long length_frame;
  short action;
  short mute_state;
  struct edl_record* next;
};

typedef struct edl_record* edl_record_ptr;

char *edl_filename; // file to extract edl entries from (-edl)
char *edl_output_filename; // file to put edl entries in (-edlout)

int edl_check_mode(void); // we cannot do -edl and -edlout at the same time
int edl_count_entries(void); // returns total No of entries needed
int edl_parse_file(edl_record_ptr edl_records); // fills edl stack

#endif