FFmpeg
Data Structures | Functions | Variables
teeproto.c File Reference
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include "avio_internal.h"
#include "tee_common.h"

Go to the source code of this file.

Data Structures

struct  ChildContext
 
struct  TeeContext
 

Functions

static int tee_write (URLContext *h, const unsigned char *buf, int size)
 
static int tee_close (URLContext *h)
 
static int tee_open (URLContext *h, const char *filename, int flags)
 

Variables

static const AVOption tee_options []
 
static const AVClass tee_class
 
static const char *const child_delim = "|"
 
const URLProtocol ff_tee_protocol
 

Function Documentation

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

Definition at line 51 of file teeproto.c.

static int tee_close ( URLContext h)
static

Definition at line 65 of file teeproto.c.

Referenced by tee_open().

static int tee_open ( URLContext h,
const char *  filename,
int  flags 
)
static

Definition at line 82 of file teeproto.c.

Variable Documentation

const AVOption tee_options[]
static
Initial value:
= {
{ NULL }
}
#define NULL
Definition: coverity.c:32

Definition at line 38 of file teeproto.c.

const AVClass tee_class
static
Initial value:
= {
.class_name = "tee",
.item_name = av_default_item_name,
.option = tee_options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191
static const AVOption tee_options[]
Definition: teeproto.c:38

Definition at line 42 of file teeproto.c.

const char* const child_delim = "|"
static

Definition at line 49 of file teeproto.c.

Referenced by tee_open().

const URLProtocol ff_tee_protocol
Initial value:
= {
.name = "tee",
.url_open = tee_open,
.url_write = tee_write,
.url_close = tee_close,
.priv_data_size = sizeof(TeeContext),
.priv_data_class = &tee_class,
.default_whitelist = "crypto,file,http,https,httpproxy,rtmp,tcp,tls"
}
static const AVClass tee_class
Definition: teeproto.c:42
static int tee_write(URLContext *h, const unsigned char *buf, int size)
Definition: teeproto.c:51
static int tee_close(URLContext *h)
Definition: teeproto.c:65
Definition: tee.c:52
static int tee_open(URLContext *h, const char *filename, int flags)
Definition: teeproto.c:82

Definition at line 139 of file teeproto.c.