FFmpeg
Loading...
Searching...
No Matches
data_uri.c File Reference
#include <string.h>
#include "libavutil/avstring.h"
#include "libavutil/avutil.h"
#include "libavutil/base64.h"
#include "libavutil/mem.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 35 of file data_uri.c.

◆ data_close()

static av_cold int data_close ( URLContext * h)
static

Definition at line 94 of file data_uri.c.

◆ data_read()

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

Definition at line 102 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 av_cold int data_open(URLContext *h, const char *uri, int flags)
Definition data_uri.c:35
static int data_read(URLContext *h, unsigned char *buf, int size)
Definition data_uri.c:102
static av_cold int data_close(URLContext *h)
Definition data_uri.c:94

Definition at line 114 of file data_uri.c.