stereoplay
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/vid.h Sun Mar 06 20:31:18 2011 +0200 1.3 @@ -0,0 +1,30 @@ 1.4 +#ifndef VID_H_ 1.5 +#define VID_H_ 1.6 + 1.7 +#include <inttypes.h> 1.8 + 1.9 +struct video_file; 1.10 + 1.11 +#ifdef __cplusplus 1.12 +extern "C" { 1.13 +#endif 1.14 + 1.15 +struct video_file *vid_open(const char *fname); 1.16 +void vid_close(struct video_file *vf); 1.17 + 1.18 +float vid_fps(struct video_file *vf); 1.19 + 1.20 +/* returns the interval between frames in microseconds */ 1.21 +unsigned int vid_frame_interval(struct video_file *vf); 1.22 + 1.23 +int vid_frame_width(struct video_file *vf); 1.24 +int vid_frame_height(struct video_file *vf); 1.25 +size_t vid_frame_size(struct video_file *vf); 1.26 + 1.27 +int vid_get_frame(struct video_file *vf, uint32_t *img); 1.28 + 1.29 +#ifdef __cplusplus 1.30 +} 1.31 +#endif 1.32 + 1.33 +#endif /* VID_H_ */