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_ */