File: cache.h

package info (click to toggle)
mpv 0.41.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,404 kB
  • sloc: ansic: 155,875; python: 1,235; sh: 643; javascript: 612; cpp: 468; objc: 302; pascal: 49; xml: 29; makefile: 18
file content (16 lines) | stat: -rw-r--r-- 457 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);