#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/internal.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 (const 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 | enu_free (void *opaque, void *elem) | 
|  | 
| static int | cache_close (URLContext *h) | 
|  | 
◆ OFFSET
      
        
          | #define OFFSET | ( |  | x | ) | offsetof(Context, x) | 
      
 
 
◆ cmp()
◆ cache_open()
◆ add_entry()
◆ cache_read()
◆ cache_seek()
  
  | 
        
          | static int64_t cache_seek | ( | URLContext * | h, |  
          |  |  | int64_t | pos, |  
          |  |  | int | whence |  
          |  | ) |  |  |  | static | 
 
 
◆ enu_free()
◆ cache_close()
◆ options
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 310 of file cache.c.
 
 
◆ cache_context_class
Initial value:= {
    .class_name = "Cache",
}
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name. 
static const AVOption options[]
Definition at line 315 of file cache.c.
 
 
◆ ff_cache_protocol
Initial value:= {
    .name                = "cache",
}
static const AVClass cache_context_class
static int cache_open(URLContext *h, const char *arg, int flags, AVDictionary **options)
static int cache_close(URLContext *h)
static int64_t cache_seek(URLContext *h, int64_t pos, int whence)
static int cache_read(URLContext *h, unsigned char *buf, int size)
Definition at line 322 of file cache.c.