stereoplay

view src/vid.h @ 4:acf3d25f23cb

added license headings
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 03 Nov 2011 21:57:12 +0200
parents 265a24704ff2
children
line source
1 /*
2 Stereoplay - an OpenGL stereoscopic video player.
3 Copyright (C) 2011 John Tsiombikas <nuclear@member.fsf.org>
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
19 #ifndef VID_H_
20 #define VID_H_
22 #include <inttypes.h>
24 struct video_file;
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
30 struct video_file *vid_open(const char *fname);
31 void vid_close(struct video_file *vf);
33 float vid_fps(struct video_file *vf);
35 /* returns the interval between frames in microseconds */
36 unsigned int vid_frame_interval(struct video_file *vf);
38 int vid_frame_width(struct video_file *vf);
39 int vid_frame_height(struct video_file *vf);
40 size_t vid_frame_size(struct video_file *vf);
42 int vid_get_frame(struct video_file *vf, uint32_t *img);
44 #ifdef __cplusplus
45 }
46 #endif
48 #endif /* VID_H_ */