FFmpeg
Data Structures | Macros | Functions | Variables
split.c File Reference
#include <stdio.h>
#include "libavutil/attributes.h"
#include "libavutil/avstring.h"
#include "libavutil/internal.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "audio.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  SplitContext
 

Macros

#define OFFSET(x)   offsetof(SplitContext, x)
 
#define FLAGS   (AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM)
 

Functions

static av_cold int split_init (AVFilterContext *ctx)
 
static int activate (AVFilterContext *ctx)
 
 AVFILTER_DEFINE_CLASS_EXT (split, "(a)split", options)
 

Variables

static const AVOption options []
 
static const AVFilterPad avfilter_vf_split_inputs []
 
const AVFilter ff_vf_split
 
static const AVFilterPad avfilter_af_asplit_inputs []
 
const AVFilter ff_af_asplit
 

Detailed Description

audio and video splitter

Definition in file split.c.

Macro Definition Documentation

◆ OFFSET

#define OFFSET (   x)    offsetof(SplitContext, x)

Definition at line 124 of file split.c.

◆ FLAGS

Definition at line 125 of file split.c.

Function Documentation

◆ split_init()

static av_cold int split_init ( AVFilterContext ctx)
static

Definition at line 46 of file split.c.

◆ activate()

static int activate ( AVFilterContext ctx)
static

Definition at line 66 of file split.c.

◆ AVFILTER_DEFINE_CLASS_EXT()

AVFILTER_DEFINE_CLASS_EXT ( split  ,
"(a)split ,
options   
)

Variable Documentation

◆ options

const AVOption options[]
static
Initial value:
= {
{ "outputs", "set number of outputs", OFFSET(nb_outputs), AV_OPT_TYPE_INT, { .i64 = 2 }, 1, INT_MAX, FLAGS },
{ NULL }
}

Definition at line 126 of file split.c.

◆ avfilter_vf_split_inputs

const AVFilterPad avfilter_vf_split_inputs[]
static
Initial value:
= {
{
.name = "default",
},
}

Definition at line 133 of file split.c.

◆ ff_vf_split

const AVFilter ff_vf_split
Initial value:
= {
.name = "split",
.description = NULL_IF_CONFIG_SMALL("Pass on the input to N video outputs."),
.priv_size = sizeof(SplitContext),
.priv_class = &split_class,
.outputs = NULL,
}

Definition at line 140 of file split.c.

◆ avfilter_af_asplit_inputs

const AVFilterPad avfilter_af_asplit_inputs[]
static
Initial value:
= {
{
.name = "default",
},
}

Definition at line 152 of file split.c.

◆ ff_af_asplit

const AVFilter ff_af_asplit
Initial value:
= {
.name = "asplit",
.description = NULL_IF_CONFIG_SMALL("Pass on the audio input to N audio outputs."),
.priv_class = &split_class,
.priv_size = sizeof(SplitContext),
.outputs = NULL,
}

Definition at line 159 of file split.c.

OFFSET
#define OFFSET(x)
Definition: split.c:124
init
static int init
Definition: av_tx.c:47
split_init
static av_cold int split_init(AVFilterContext *ctx)
Definition: split.c:46
FLAGS
#define FLAGS
Definition: split.c:125
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:190
SplitContext
Definition: split.c:41
NULL
#define NULL
Definition: coverity.c:32
AVFILTER_FLAG_DYNAMIC_OUTPUTS
#define AVFILTER_FLAG_DYNAMIC_OUTPUTS
The number of the filter outputs is not determined just by AVFilter.outputs.
Definition: avfilter.h:122
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:115
avfilter_af_asplit_inputs
static const AVFilterPad avfilter_af_asplit_inputs[]
Definition: split.c:152
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:225
AVFILTER_FLAG_METADATA_ONLY
#define AVFILTER_FLAG_METADATA_ONLY
The filter is a "metadata" filter - it does not modify the frame data in any way.
Definition: avfilter.h:143
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
avfilter_vf_split_inputs
static const AVFilterPad avfilter_vf_split_inputs[]
Definition: split.c:133
activate
static int activate(AVFilterContext *ctx)
Definition: split.c:66