FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
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"

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
 

Function Documentation

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.

static int cache_close ( URLContext h)
static

Definition at line 124 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),
}

Definition at line 133 of file cache.c.