FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
data_uri.c File Reference
#include <string.h>
#include "libavutil/avstring.h"
#include "libavutil/base64.h"
#include "url.h"

Go to the source code of this file.

Data Structures

struct  DataContext
 

Functions

static av_cold int data_open (URLContext *h, const char *uri, int flags)
 
static av_cold int data_close (URLContext *h)
 
static int data_read (URLContext *h, unsigned char *buf, int size)
 

Variables

URLProtocol ff_data_protocol
 

Function Documentation

static av_cold int data_open ( URLContext h,
const char *  uri,
int  flags 
)
static

Definition at line 33 of file data_uri.c.

static av_cold int data_close ( URLContext h)
static

Definition at line 92 of file data_uri.c.

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

Definition at line 100 of file data_uri.c.

Variable Documentation

URLProtocol ff_data_protocol
Initial value:
= {
.name = "data",
.url_open = data_open,
.url_close = data_close,
.url_read = data_read,
.priv_data_size = sizeof(DataContext),
}

Definition at line 112 of file data_uri.c.