-
Notifications
You must be signed in to change notification settings - Fork 0
/
vs_project.h
44 lines (40 loc) · 1.41 KB
/
vs_project.h
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
/* Public domain */
typedef enum vs_proc_op {
VS_PROC_INIT, /* Initialization */
VS_PROC_IDLE, /* Idle */
VS_PROC_LOAD_VIDEO, /* Importing video data */
VS_PROC_LOAD_AUDIO, /* Importing audio data */
VS_PROC_TERMINATE /* Exiting */
} VS_ProcOp;
typedef struct vs_project {
struct ag_object _inherit;
Uint flags;
#define VS_PROJECT_RECORDING 0x01 /* Recording mode */
#define VS_PROJECT_LEARNING 0x02 /* Learning mode */
#define VS_PROJECT_PLAYING 0x04 /* Playback in progress */
#define VS_PROJECT_SAVED 0
int thumbSz; /* Video thumbnail size (px) */
int waveSz; /* Audio waveform size (px) */
int frameRate; /* Nominal frame rate */
double bendSpeed; /* Speed bend setting */
double bendSpeedMax; /* Speed bend max */
VS_Clip *input; /* Input video streams */
VS_Clip *output; /* Rendered output stream */
VS_ProcOp procOp; /* Status of processing thread */
AG_Thread procTh; /* Processing thread */
struct {
struct {
int val; /* Progress value */
int min, max; /* Progress range */
} progress;
VS_Player *playerIn; /* Playback widget for input */
VS_Player *playerOut; /* Playback widget for output */
AG_Label *status;
} gui;
} VS_Project;
__BEGIN_DECLS
extern AG_ObjectClass vsProjectClass;
VS_Project *VS_ProjectNew(void *, const char *);
void VS_Status(void *, const char *, ...);
void VS_ProjectRunOperation(VS_Project *, VS_ProcOp);
__END_DECLS