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

◆ tee_write()

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

Definition at line 51 of file teeproto.c.

◆ tee_close()

static int tee_close ( URLContext h)
static

Definition at line 65 of file teeproto.c.

Referenced by tee_open().

◆ tee_open()

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

Definition at line 82 of file teeproto.c.

Variable Documentation

◆ tee_options

const AVOption tee_options[]
static
Initial value:
= {
{ NULL }
}

Definition at line 38 of file teeproto.c.

◆ tee_class

const AVClass tee_class
static
Initial value:
= {
.class_name = "tee",
.item_name = av_default_item_name,
.option = tee_options,
}

Definition at line 42 of file teeproto.c.

◆ child_delim

const char* const child_delim = "|"
static

Definition at line 49 of file teeproto.c.

Referenced by tee_open().

◆ ff_tee_protocol

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"
}

Definition at line 139 of file teeproto.c.

tee_write
static int tee_write(URLContext *h, const unsigned char *buf, int size)
Definition: teeproto.c:51
tee_close
static int tee_close(URLContext *h)
Definition: teeproto.c:65
tee_options
static const AVOption tee_options[]
Definition: teeproto.c:38
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191
TeeContext
Definition: tee.c:52
tee_open
static int tee_open(URLContext *h, const char *filename, int flags)
Definition: teeproto.c:82
tee_class
static const AVClass tee_class
Definition: teeproto.c:42