FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
tee.c File Reference
#include "libavutil/avutil.h"
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "avformat.h"

Go to the source code of this file.

Data Structures

struct  TeeContext
 

Macros

#define MAX_SLAVES   16
 

Functions

static int parse_slave_options (void *log, char *slave, AVDictionary **options, char **filename)
 
static int open_slave (AVFormatContext *avf, char *slave, AVFormatContext **ravf)
 
static void close_slaves (AVFormatContext *avf)
 
static int tee_write_header (AVFormatContext *avf)
 
static int tee_write_trailer (AVFormatContext *avf)
 
static int tee_write_packet (AVFormatContext *avf, AVPacket *pkt)
 

Variables

static const char *const slave_delim = "|"
 
static const char *const slave_opt_open = "["
 
static const char *const slave_opt_close = "]"
 
static const char *const slave_opt_delim = ":]"
 
static const AVClass tee_muxer_class
 
AVOutputFormat ff_tee_muxer
 

Macro Definition Documentation

#define MAX_SLAVES   16

Definition at line 28 of file tee.c.

Referenced by tee_write_header().

Function Documentation

static int parse_slave_options ( void log,
char *  slave,
AVDictionary **  options,
char **  filename 
)
static

Definition at line 47 of file tee.c.

Referenced by open_slave().

static int open_slave ( AVFormatContext avf,
char *  slave,
AVFormatContext **  ravf 
)
static

Definition at line 85 of file tee.c.

Referenced by tee_write_header().

static void close_slaves ( AVFormatContext avf)
static

Definition at line 157 of file tee.c.

Referenced by tee_write_header(), and tee_write_trailer().

static int tee_write_header ( AVFormatContext avf)
static

Definition at line 172 of file tee.c.

static int tee_write_trailer ( AVFormatContext avf)
static

Definition at line 211 of file tee.c.

static int tee_write_packet ( AVFormatContext avf,
AVPacket pkt 
)
static

Definition at line 234 of file tee.c.

Variable Documentation

const char* const slave_delim = "|"
static

Definition at line 36 of file tee.c.

Referenced by tee_write_header().

const char* const slave_opt_open = "["
static

Definition at line 37 of file tee.c.

Referenced by parse_slave_options().

const char* const slave_opt_close = "]"
static

Definition at line 38 of file tee.c.

Referenced by parse_slave_options().

const char* const slave_opt_delim = ":]"
static

Definition at line 39 of file tee.c.

Referenced by parse_slave_options().

const AVClass tee_muxer_class
static
Initial value:
= {
.class_name = "Tee muxer",
.item_name = av_default_item_name,
}

Definition at line 41 of file tee.c.

AVOutputFormat ff_tee_muxer
Initial value:
= {
.name = "tee",
.long_name = NULL_IF_CONFIG_SMALL("Multiple muxer tee"),
.priv_data_size = sizeof(TeeContext),
.priv_class = &tee_muxer_class,
}

Definition at line 269 of file tee.c.