#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/tree.h"
#include "avformat.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <stdlib.h>
#include "os_support.h"
#include "url.h"
Go to the source code of this file.
|
static int | cmp (const void *key, const void *node) |
|
static int | cache_open (URLContext *h, const char *arg, int flags, AVDictionary **options) |
|
static int | add_entry (URLContext *h, const unsigned char *buf, int size) |
|
static int | cache_read (URLContext *h, unsigned char *buf, int size) |
|
static int64_t | cache_seek (URLContext *h, int64_t pos, int whence) |
|
static int | enu_free (void *opaque, void *elem) |
|
static int | cache_close (URLContext *h) |
|
◆ OFFSET
#define OFFSET |
( |
|
x | ) |
offsetof(Context, x) |
◆ cmp()
static int cmp |
( |
const void * |
key, |
|
|
const void * |
node |
|
) |
| |
|
static |
◆ cache_open()
◆ add_entry()
◆ cache_read()
◆ cache_seek()
static int64_t cache_seek |
( |
URLContext * |
h, |
|
|
int64_t |
pos, |
|
|
int |
whence |
|
) |
| |
|
static |
◆ enu_free()
static int enu_free |
( |
void * |
opaque, |
|
|
void * |
elem |
|
) |
| |
|
static |
◆ cache_close()
◆ options
Initial value:= {
{
"read_ahead_limit",
"Amount in bytes that may be read ahead when seeking isn't supported, -1 for unlimited",
OFFSET(read_ahead_limit),
AV_OPT_TYPE_INT, { .i64 = 65536 }, -1, INT_MAX,
D },
}
Definition at line 323 of file cache.c.
Referenced by cache_open().
◆ cache_context_class
Initial value:= {
.class_name = "cache",
}
Definition at line 328 of file cache.c.
◆ ff_cache_protocol
Initial value:
Definition at line 335 of file cache.c.