libavformat/cache.c File Reference

#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/file.h"
#include "avformat.h"
#include <fcntl.h>
#include <unistd.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_close ( URLContext h  )  [static]

Definition at line 121 of file cache.c.

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

Definition at line 52 of file cache.c.

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

Definition at line 72 of file cache.c.

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

Definition at line 94 of file cache.c.


Variable Documentation

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 130 of file cache.c.


Generated on Fri Oct 26 02:43:52 2012 for FFmpeg by  doxygen 1.5.8