#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/file.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 (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 | cache_close (URLContext *h) |
|
#define OFFSET |
( |
|
x | ) |
offsetof(Context, x) |
static int cmp |
( |
void * |
key, |
|
|
const void * |
node |
|
) |
| |
|
static |
static int add_entry |
( |
URLContext * |
h, |
|
|
const unsigned char * |
buf, |
|
|
int |
size |
|
) |
| |
|
static |
static int cache_read |
( |
URLContext * |
h, |
|
|
unsigned char * |
buf, |
|
|
int |
size |
|
) |
| |
|
static |
static int64_t cache_seek |
( |
URLContext * |
h, |
|
|
int64_t |
pos, |
|
|
int |
whence |
|
) |
| |
|
static |
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 302 of file cache.c.
Initial value:= {
.class_name = "Cache",
}
Definition at line 307 of file cache.c.
Initial value:
Definition at line 314 of file cache.c.