fbff: make terminal state local
[fbff.git] / ffs.h
blob141f8d1b7c08503869ae51f2ec57f2af27de6dfd
1 #define FFS_AUDIO 0x1000
2 #define FFS_VIDEO 0x2000
3 #define FFS_STRIDX 0x0fff
5 void ffs_globinit(void);
7 /* ffmpeg stream */
8 struct ffs *ffs_alloc(char *path, int flags);
9 void ffs_free(struct ffs *ffs);
11 long ffs_pos(struct ffs *ffs);
12 long ffs_duration(struct ffs *ffs);
13 void ffs_seek(struct ffs *ffs, struct ffs *vffs, long pos);
14 void ffs_wait(struct ffs *ffs);
15 int ffs_avdiff(struct ffs *ffs, struct ffs *affs);
17 /* audio */
18 void ffs_aconf(struct ffs *ffs);
19 void ffs_ainfo(struct ffs *ffs, int *rate, int *bps, int *ch);
20 int ffs_adec(struct ffs *ffs, void *buf, int blen);
22 /* video */
23 void ffs_vconf(struct ffs *ffs, float zoom, int fbm);
24 void ffs_vinfo(struct ffs *ffs, int *w, int *h);
25 int ffs_vdec(struct ffs *ffs, void **buf);