Mercurial > mplayer.hg
comparison libmpdemux/demuxer.h @ 8208:ae5a2ae1c349
demuxer_control(), percent position and time length query implemented in
asf, avi, mpeg demuxers.
patch by Balatoni Denes <pnis@coder.hu>
author | arpi |
---|---|
date | Sat, 16 Nov 2002 03:42:14 +0000 |
parents | 2b39ff3860b7 |
children | 9d143176d95f |
comparison
equal
deleted
inserted
replaced
8207:467ffae428b0 | 8208:ae5a2ae1c349 |
---|---|
47 #define DEMUXER_TIME_NONE 0 | 47 #define DEMUXER_TIME_NONE 0 |
48 #define DEMUXER_TIME_PTS 1 | 48 #define DEMUXER_TIME_PTS 1 |
49 #define DEMUXER_TIME_FILE 2 | 49 #define DEMUXER_TIME_FILE 2 |
50 #define DEMUXER_TIME_BPS 3 | 50 #define DEMUXER_TIME_BPS 3 |
51 | 51 |
52 | |
53 // DEMUXER control commands/answers | |
54 #define DEMUXER_CTRL_NOTIMPL -1 | |
55 #define DEMUXER_CTRL_DONTKNOW 0 | |
56 #define DEMUXER_CTRL_OK 1 | |
57 #define DEMUXER_CTRL_GUESS 2 | |
58 #define DEMUXER_CTRL_GET_TIME_LENGTH 10 | |
59 #define DEMUXER_CTRL_GET_PERCENT_POS 11 | |
52 | 60 |
53 // Holds one packet/frame/whatever | 61 // Holds one packet/frame/whatever |
54 typedef struct demux_packet_st { | 62 typedef struct demux_packet_st { |
55 int len; | 63 int len; |
56 float pts; | 64 float pts; |
232 extern int pts_from_bps; | 240 extern int pts_from_bps; |
233 | 241 |
234 int demux_info_add(demuxer_t *demuxer, char *opt, char *param); | 242 int demux_info_add(demuxer_t *demuxer, char *opt, char *param); |
235 char* demux_info_get(demuxer_t *demuxer, char *opt); | 243 char* demux_info_get(demuxer_t *demuxer, char *opt); |
236 int demux_info_print(demuxer_t *demuxer); | 244 int demux_info_print(demuxer_t *demuxer); |
237 | 245 int demux_control(demuxer_t *demuxer, int cmd, void *arg); |
238 #endif | 246 |
247 #endif | |
248 | |
249 extern unsigned long demuxer_get_time_length(demuxer_t *demuxer); | |
250 extern int demuxer_get_percent_pos(demuxer_t *demuxer); |