stereoplay

view src/vid.h @ 0:265a24704ff2

stereoplay
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 06 Mar 2011 20:31:18 +0200
parents
children acf3d25f23cb
line source
1 #ifndef VID_H_
2 #define VID_H_
4 #include <inttypes.h>
6 struct video_file;
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
12 struct video_file *vid_open(const char *fname);
13 void vid_close(struct video_file *vf);
15 float vid_fps(struct video_file *vf);
17 /* returns the interval between frames in microseconds */
18 unsigned int vid_frame_interval(struct video_file *vf);
20 int vid_frame_width(struct video_file *vf);
21 int vid_frame_height(struct video_file *vf);
22 size_t vid_frame_size(struct video_file *vf);
24 int vid_get_frame(struct video_file *vf, uint32_t *img);
26 #ifdef __cplusplus
27 }
28 #endif
30 #endif /* VID_H_ */