-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideo_queue.h
52 lines (40 loc) · 1.02 KB
/
video_queue.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
45
46
47
48
49
50
51
52
#ifndef VIDEOQ22_H_
#define VIDEOQ22_H_
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavutil/opt.h>
#include <libavutil/pixdesc.h>
#include <libavutil/avutil.h>
#include "file.h"
#include "filters/filter.h"
#include "debug_tools.h"
enum video_queue_status
{
VIDEO_QUEUE_STATUS_UNDEFINED = 0,
VIDEO_QUEUE_STATUS_WAITING,
VIDEO_QUEUE_STATUS_TRANSCODING,
VIDEO_QUEUE_STATUS_DONE,
VIDEO_QUEUE_STATUS_FREE,
VIDEO_QUEUE_STATUS_END
};
typedef struct video_queue
{
file *video;
struct video_queue *next;
enum video_queue_status status;
} video_queue;
typedef struct vq_run
{
video_queue **vq;
filters_path **extra_filters;
} vq_run;
video_queue *video_queue_create();
void video_queue_print(video_queue *queue);
// free video_queue
void video_queue_free(video_queue *vq);
// append new to end of root
video_queue *video_queue_append(video_queue *root, video_queue *new);
void *video_queue_run(void *_vq);
// TESTS
void _video_queue_append_test();
#endif /*VIDEOQ_H_*/