cache.c File Reference
#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"
Include dependency graph for cache.c:

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...
 

Typedefs

typedef struct Context 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
 

Typedef Documentation

typedef struct Context Context

support non continuous caching support keeping files support filling with a background thread

Function Documentation

static int cache_close ( URLContext h)
static

Definition at line 124 of file cache.c.

static int cache_open ( URLContext h,
const char *  arg,
int  flags 
)
static

Definition at line 54 of file cache.c.

static int cache_read ( URLContext h,
unsigned char *  buf,
int  size 
)
static

Definition at line 73 of file cache.c.

static int64_t cache_seek ( URLContext h,
int64_t  pos,
int  whence 
)
static

Definition at line 95 of file cache.c.

Variable Documentation

URLProtocol ff_cache_protocol
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),
}
struct Context Context
support non continuous caching support keeping files support filling with a background thread ...
static int cache_open(URLContext *h, const char *arg, int flags)
Definition: cache.c:54
static int cache_close(URLContext *h)
Definition: cache.c:124
static int64_t cache_seek(URLContext *h, int64_t pos, int whence)
Definition: cache.c:95
static int cache_read(URLContext *h, unsigned char *buf, int size)
Definition: cache.c:73

Definition at line 133 of file cache.c.