1 #define FFS_AUDIO 0x1000
2 #define FFS_VIDEO 0x2000
3 #define FFS_SUBTS 0x4000
4 #define FFS_STRIDX 0x0fff
6 void ffs_globinit(void);
9 struct ffs
*ffs_alloc(char *path
, int flags
);
10 void ffs_free(struct ffs
*ffs
);
12 long ffs_pos(struct ffs
*ffs
);
13 long ffs_duration(struct ffs
*ffs
);
14 void ffs_seek(struct ffs
*ffs
, struct ffs
*vffs
, long pos
);
15 void ffs_wait(struct ffs
*ffs
);
16 int ffs_avdiff(struct ffs
*ffs
, struct ffs
*affs
);
19 void ffs_aconf(struct ffs
*ffs
);
20 void ffs_ainfo(struct ffs
*ffs
, int *rate
, int *bps
, int *ch
);
21 int ffs_adec(struct ffs
*ffs
, void *buf
, int blen
);
24 void ffs_vconf(struct ffs
*ffs
, float zoom
, int fbm
);
25 void ffs_vinfo(struct ffs
*ffs
, int *w
, int *h
);
26 int ffs_vdec(struct ffs
*ffs
, void **buf
);
29 int ffs_sdec(struct ffs
*ffs
, char *buf
, int blen
, long *beg
, long *end
);