summaryrefslogtreecommitdiffstats
path: root/demux/demux.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-06-21 21:18:03 +0200
committerwm4 <wm4@nowhere>2013-06-25 00:11:55 +0200
commitb37147744e34c0f23acb391de6bd04a0a1dc8cca (patch)
treed638cecfaf2abc2100ee38bda681809dc77b7162 /demux/demux.h
parent813591cb119ee7939e465208883852982bae8914 (diff)
downloadmpv-b37147744e34c0f23acb391de6bd04a0a1dc8cca.tar.bz2
mpv-b37147744e34c0f23acb391de6bd04a0a1dc8cca.tar.xz
demux: add utility functions for preloading demuxers
These will be needed by subtitle demuxers, which read all data on initialization.
Diffstat (limited to 'demux/demux.h')
-rw-r--r--demux/demux.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/demux/demux.h b/demux/demux.h
index a82fbea91a..bf16001c0f 100644
--- a/demux/demux.h
+++ b/demux/demux.h
@@ -311,8 +311,8 @@ demuxer_t *new_sub_pseudo_demuxer(struct MPOpts *opts);
void free_demuxer(struct demuxer *demuxer);
-void demuxer_add_packet(demuxer_t *demuxer, struct sh_stream *stream,
- demux_packet_t *dp);
+int demuxer_add_packet(demuxer_t *demuxer, struct sh_stream *stream,
+ demux_packet_t *dp);
void ds_add_packet(struct demux_stream *ds, struct demux_packet *dp);
void ds_read_packet(struct demux_stream *ds, struct stream *stream, int len,
double pts, int64_t pos, bool keyframe);
@@ -426,4 +426,11 @@ struct sh_stream *demuxer_stream_by_demuxer_id(struct demuxer *d,
bool demuxer_stream_is_selected(struct demuxer *d, struct sh_stream *stream);
+void demux_packet_list_sort(struct demux_packet **pkts, int num_pkts);
+void demux_packet_list_seek(struct demux_packet **pkts, int num_pkts,
+ int *current, float rel_seek_secs, int flags);
+double demux_packet_list_duration(struct demux_packet **pkts, int num_pkts);
+struct demux_packet *demux_packet_list_fill(struct demux_packet **pkts,
+ int num_pkts, int *current);
+
#endif /* MPLAYER_DEMUXER_H */