#include "libavutil/avassert.h"#include "libavutil/avstring.h"#include "libavutil/file.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.
Data Structures | |
| struct | Context |
| support non continuous caching support keeping files support filling with a background thread More... | |
Functions | |
| static int | cache_open (URLContext *h, const char *arg, int flags) |
| 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) |
Variables | |
| URLProtocol | ff_cache_protocol |
| static int cache_close | ( | URLContext * | h | ) | [static] |
| static int cache_open | ( | URLContext * | h, | |
| const char * | arg, | |||
| int | flags | |||
| ) | [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:
{
.name = "cache",
.url_open = cache_open,
.url_read = cache_read,
.url_seek = cache_seek,
.url_close = cache_close,
.priv_data_size = sizeof(Context),
}
1.5.8