summaryrefslogtreecommitdiffstats
path: root/demux/demux.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-07-10 21:38:37 +0200
committerwm4 <wm4@nowhere>2019-09-19 20:37:05 +0200
commit82f2613adee9d18ad9baba6da42ba94c5dbbccbb (patch)
treecfef428ed4b040c85a0ff99d53964112bcd1ec69 /demux/demux.h
parent1dd0b2fe3468f690d23049343aa03c15abb8672f (diff)
downloadmpv-82f2613adee9d18ad9baba6da42ba94c5dbbccbb.tar.bz2
mpv-82f2613adee9d18ad9baba6da42ba94c5dbbccbb.tar.xz
command, demux: add AB-loop keyframe cache align command
Helper for the ab-loop-dump-cache command, see manpage additions. This is kind of shit. Not only is this a very "special" feature, but it also vomits more messy code into the big and already bloated demux.c, and the implementation is sort of duplicated with the dump-cache code. (Except it's different.) In addition, the results sort of depend what a video player would do with the dump-cache output, or what the user wants (for example, a user might be more interested in the range of output audio, instead of the video). But hey, I don't actually need to justify it. I'm only justifying it for fun.
Diffstat (limited to 'demux/demux.h')
-rw-r--r--demux/demux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/demux/demux.h b/demux/demux.h
index 3716f28b87..ebebd0853f 100644
--- a/demux/demux.h
+++ b/demux/demux.h
@@ -296,6 +296,9 @@ bool demux_cache_dump_set(struct demuxer *demuxer, double start, double end,
char *file);
int demux_cache_dump_get_status(struct demuxer *demuxer);
+double demux_probe_cache_dump_target(struct demuxer *demuxer, double pts,
+ bool for_end);
+
bool demux_is_network_cached(demuxer_t *demuxer);
void demux_report_unbuffered_read_bytes(struct demuxer *demuxer, int64_t new);