-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvideo.h
More file actions
38 lines (29 loc) · 742 Bytes
/
video.h
File metadata and controls
38 lines (29 loc) · 742 Bytes
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
/*
* File: video.h
* Author: lorddoskias
*
* Created on June 16, 2013, 5:09 PM
*/
#ifndef VIDEO_H
#define VIDEO_H
#include "omx.h"
#ifdef __cplusplus
extern "C" {
#endif
struct decode_ctx_t {
char *output_filename; //output files will be written here
struct packet_queue_t *video_queue;
struct packet_queue_t *audio_queue;
struct omx_pipeline_t pipeline;
int first_packet;
//FIXME: used to synchronise the encoded component
//move it to per-component
pthread_mutex_t is_running_mutex;
pthread_cond_t is_running_cv;
};
void * video_thread(void *ctx);
void *writer_thread(void *thread_ctx);
#ifdef __cplusplus
}
#endif
#endif /* VIDEO_H */