FFmpeg
Data Structures | Functions | Variables
teeproto.c File Reference
#include <string.h>
#include "libavutil/avstring.h"
#include "libavutil/dict.h"
#include "libavutil/error.h"
#include "libavutil/mem.h"
#include "tee_common.h"
#include "url.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 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 42 of file teeproto.c.

◆ tee_close()

static int tee_close ( URLContext h)
static

Definition at line 56 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 73 of file teeproto.c.

Variable Documentation

◆ child_delim

const char* const child_delim = "|"
static

Definition at line 40 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),
.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:42
tee_close
static int tee_close(URLContext *h)
Definition: teeproto.c:56
TeeContext
Definition: tee.c:53
tee_open
static int tee_open(URLContext *h, const char *filename, int flags)
Definition: teeproto.c:73