nuclear@4: /* nuclear@4: Stereoplay - an OpenGL stereoscopic video player. nuclear@4: Copyright (C) 2011 John Tsiombikas nuclear@4: nuclear@4: This program is free software: you can redistribute it and/or modify nuclear@4: it under the terms of the GNU General Public License as published by nuclear@4: the Free Software Foundation, either version 3 of the License, or nuclear@4: (at your option) any later version. nuclear@4: nuclear@4: This program is distributed in the hope that it will be useful, nuclear@4: but WITHOUT ANY WARRANTY; without even the implied warranty of nuclear@4: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the nuclear@4: GNU General Public License for more details. nuclear@4: nuclear@4: You should have received a copy of the GNU General Public License nuclear@4: along with this program. If not, see . nuclear@4: */ nuclear@4: nuclear@0: #ifndef VID_H_ nuclear@0: #define VID_H_ nuclear@0: nuclear@0: #include nuclear@0: nuclear@0: struct video_file; nuclear@0: nuclear@0: #ifdef __cplusplus nuclear@0: extern "C" { nuclear@0: #endif nuclear@0: nuclear@0: struct video_file *vid_open(const char *fname); nuclear@0: void vid_close(struct video_file *vf); nuclear@0: nuclear@0: float vid_fps(struct video_file *vf); nuclear@0: nuclear@0: /* returns the interval between frames in microseconds */ nuclear@0: unsigned int vid_frame_interval(struct video_file *vf); nuclear@0: nuclear@0: int vid_frame_width(struct video_file *vf); nuclear@0: int vid_frame_height(struct video_file *vf); nuclear@0: size_t vid_frame_size(struct video_file *vf); nuclear@0: nuclear@0: int vid_get_frame(struct video_file *vf, uint32_t *img); nuclear@0: nuclear@0: #ifdef __cplusplus nuclear@0: } nuclear@0: #endif nuclear@0: nuclear@0: #endif /* VID_H_ */