#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/file_open.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/tree.h"
#include "avio.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
◆ cmp()
static int cmp |
( |
const void * |
key, |
|
|
const void * |
node |
|
) |
| |
|
static |
◆ cache_open()
◆ add_entry()
static int add_entry |
( |
URLContext * |
h, |
|
|
const unsigned char * |
buf, |
|
|
int |
size |
|
) |
| |
|
static |
◆ cache_read()
static int cache_read |
( |
URLContext * |
h, |
|
|
unsigned char * |
buf, |
|
|
int |
size |
|
) |
| |
|
static |
◆ cache_seek()
◆ 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 324 of file cache.c.
◆ cache_context_class
Initial value:= {
.class_name = "cache",
}
Definition at line 329 of file cache.c.
◆ ff_cache_protocol
Initial value:
Definition at line 336 of file cache.c.