fbff: exit only if there's no more video frames
[fbff.git] / ffs.h
blobbf3c95cd6bfb3c2d2c80451158363d3cad1ac2e2
1 void ffs_globinit(void);
3 /* ffmpeg stream */
4 struct ffs *ffs_alloc(char *path, int video);
5 void ffs_free(struct ffs *ffs);
7 long ffs_pos(struct ffs *ffs, int diff);
8 void ffs_seek(struct ffs *ffs, long pos, int perframe);
9 long ffs_seq(struct ffs *ffs, int all);
10 void ffs_wait(struct ffs *ffs);
12 /* audio */
13 void ffs_ainfo(struct ffs *ffs, int *rate, int *bps, int *ch);
14 int ffs_adec(struct ffs *ffs, char *buf, int blen);
16 /* video */
17 void ffs_vsetup(struct ffs *ffs, float zoom, int pix_fmt);
18 void ffs_vinfo(struct ffs *ffs, int *w, int *h);
19 int ffs_vdec(struct ffs *ffs, char **buf);