FFmpeg  4.0
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

const URLProtocol ff_data_protocol
 

Function Documentation

◆ data_open()

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

Definition at line 33 of file data_uri.c.

◆ data_close()

static av_cold int data_close ( URLContext h)
static

Definition at line 92 of file data_uri.c.

◆ data_read()

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

Definition at line 100 of file data_uri.c.

Variable Documentation

◆ ff_data_protocol

const 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),
}
static int data_read(URLContext *h, unsigned char *buf, int size)
Definition: data_uri.c:100
static av_cold int data_open(URLContext *h, const char *uri, int flags)
Definition: data_uri.c:33
static av_cold int data_close(URLContext *h)
Definition: data_uri.c:92

Definition at line 112 of file data_uri.c.