diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:36:56 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:36:56 +0000 |
commit | 51de1d8436100f725f3576aefa24a2bd2057bc28 (patch) | |
tree | c6d1d5264b6d40a8d7ca34129f36b7d61e188af3 /demux/cache.h | |
parent | Initial commit. (diff) | |
download | mpv-51de1d8436100f725f3576aefa24a2bd2057bc28.tar.xz mpv-51de1d8436100f725f3576aefa24a2bd2057bc28.zip |
Adding upstream version 0.37.0.upstream/0.37.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'demux/cache.h')
-rw-r--r-- | demux/cache.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/demux/cache.h b/demux/cache.h new file mode 100644 index 0000000..95ea964 --- /dev/null +++ b/demux/cache.h @@ -0,0 +1,16 @@ +#pragma once + +#include <stdint.h> + +struct demux_packet; +struct mp_log; +struct mpv_global; + +struct demux_cache; + +struct demux_cache *demux_cache_create(struct mpv_global *global, + struct mp_log *log); + +int64_t demux_cache_write(struct demux_cache *cache, struct demux_packet *pkt); +struct demux_packet *demux_cache_read(struct demux_cache *cache, uint64_t pos); +uint64_t demux_cache_get_size(struct demux_cache *cache); |