tee.c File Reference
#include "libavutil/avutil.h"
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "avformat.h"
Include dependency graph for tee.c:

Go to the source code of this file.

Data Structures

struct  TeeContext
 

Macros

#define MAX_SLAVES   16
 

Typedefs

typedef struct TeeContext TeeContext
 

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().

Typedef Documentation

typedef struct TeeContext TeeContext

Function Documentation

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 open_slave ( AVFormatContext avf,
char *  slave,
AVFormatContext **  ravf 
)
static

Definition at line 85 of file tee.c.

Referenced by tee_write_header().

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 tee_write_header ( AVFormatContext avf)
static

Definition at line 172 of file tee.c.

static int tee_write_packet ( AVFormatContext avf,
AVPacket pkt 
)
static

Definition at line 234 of file tee.c.

static int tee_write_trailer ( AVFormatContext avf)
static

Definition at line 211 of file tee.c.

Variable Documentation

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,
}
static int tee_write_packet(AVFormatContext *avf, AVPacket *pkt)
Definition: tee.c:234
struct TeeContext TeeContext
static int write_packet(AVFormatContext *s, AVPacket *pkt)
static int tee_write_trailer(AVFormatContext *avf)
Definition: tee.c:211
static int write_trailer(AVFormatContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static const AVClass tee_muxer_class
Definition: tee.c:41
static int flags
Definition: cpu.c:23
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:345
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:470
static int tee_write_header(AVFormatContext *avf)
Definition: tee.c:172

Definition at line 269 of file tee.c.

const char* const slave_delim = "|"
static

Definition at line 36 of file tee.c.

Referenced by tee_write_header().

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 char* const slave_opt_open = "["
static

Definition at line 37 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,
}
av_default_item_name
LIBAVUTIL_VERSION_INT
Definition: eval.c:55

Definition at line 41 of file tee.c.