1 #ifndef CAPTURE_H
2 #define CAPTURE_H
3
4 #define FIFO_MAX 64
5
6 struct FIFO {
7 char *name;
8 unsigned char *data[FIFO_MAX];
9 int slots,read,write,eof,max,writers;
10 pthread_mutex_t lock;
11 pthread_cond_t hasdata;
12 };
13
14 void fifo_init(struct FIFO *fifo, char *name, int slots, int writers);
15 int fifo_put(struct FIFO *fifo, void *data);
16 void* fifo_get(struct FIFO *fifo);
17
18 void* ng_convert_thread(void *arg);
19
20 int ng_grabber_setformat(struct ng_video_fmt *fmt, int fix_ratio);
21 struct ng_video_conv* ng_grabber_findconv(struct ng_video_fmt *fmt,
22 int fix_ratio);
23 struct ng_video_buf* ng_grabber_grab_image(int single);
24 struct ng_video_buf* ng_grabber_get_image(struct ng_video_fmt *fmt);
25
26
27 struct movie_handle*
28 movie_writer_init(char *moviename, char *audioname,
29 const struct ng_writer *writer,
30 struct ng_video_fmt *video,const void *priv_video,int fps,
31 struct ng_audio_fmt *audio,const void *priv_audio,char *dsp,
32 int slots, int threads);
33 int movie_writer_start(struct movie_handle*);
34 int movie_writer_stop(struct movie_handle*);
35
36 int movie_grab_put_video(struct movie_handle*, struct ng_video_buf **ret);
37 int movie_grab_put_audio(struct movie_handle*);
38
39 #endif /* CAPTURE_H */
40
|
This page was automatically generated by the
LXR engine.
|