FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
split.c File Reference

audio and video splitter More...

#include <stdio.h>
#include "libavutil/attributes.h"
#include "libavutil/internal.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "audio.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)
 
#define split_options   options
 
#define asplit_options   options
 

Functions

static av_cold int split_init (AVFilterContext *ctx)
 
static av_cold void split_uninit (AVFilterContext *ctx)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *frame)
 
 AVFILTER_DEFINE_CLASS (split)
 
 AVFILTER_DEFINE_CLASS (asplit)
 

Variables

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

Detailed Description

audio and video splitter

Definition in file split.c.

Macro Definition Documentation

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

Definition at line 97 of file split.c.

Definition at line 98 of file split.c.

#define split_options   options

Definition at line 104 of file split.c.

#define asplit_options   options

Definition at line 107 of file split.c.

Function Documentation

static av_cold int split_init ( AVFilterContext ctx)
static

Definition at line 44 of file split.c.

static av_cold void split_uninit ( AVFilterContext ctx)
static

Definition at line 65 of file split.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 73 of file split.c.

AVFILTER_DEFINE_CLASS ( split  )
AVFILTER_DEFINE_CLASS ( asplit  )

Variable Documentation

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 }
}
#define NULL
Definition: coverity.c:32
#define FLAGS
Definition: split.c:98
#define OFFSET(x)
Definition: split.c:97

Definition at line 99 of file split.c.

const AVFilterPad avfilter_vf_split_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: split.c:73

Definition at line 110 of file split.c.

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,
}
#define NULL
Definition: coverity.c:32
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold void split_uninit(AVFilterContext *ctx)
Definition: split.c:65
static av_cold int split_init(AVFilterContext *ctx)
Definition: split.c:44
static av_cold int uninit(AVCodecContext *avctx)
Definition: crystalhd.c:337
#define AVFILTER_FLAG_DYNAMIC_OUTPUTS
The number of the filter outputs is not determined just by AVFilter.outputs.
Definition: avfilter.h:111
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static const AVFilterPad outputs[]
Definition: af_afftfilt.c:386
static const AVFilterPad avfilter_vf_split_inputs[]
Definition: split.c:110
static const AVFilterPad inputs[]
Definition: af_afftfilt.c:376
static int flags
Definition: cpu.c:47

Definition at line 119 of file split.c.

const AVFilterPad avfilter_af_asplit_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: split.c:73

Definition at line 131 of file split.c.

AVFilter ff_af_asplit
Initial value:
= {
.name = "asplit",
.description = NULL_IF_CONFIG_SMALL("Pass on the audio input to N audio outputs."),
.priv_size = sizeof(SplitContext),
.priv_class = &asplit_class,
}
#define NULL
Definition: coverity.c:32
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold void split_uninit(AVFilterContext *ctx)
Definition: split.c:65
static av_cold int split_init(AVFilterContext *ctx)
Definition: split.c:44
static av_cold int uninit(AVCodecContext *avctx)
Definition: crystalhd.c:337
#define AVFILTER_FLAG_DYNAMIC_OUTPUTS
The number of the filter outputs is not determined just by AVFilter.outputs.
Definition: avfilter.h:111
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static const AVFilterPad avfilter_af_asplit_inputs[]
Definition: split.c:131
static const AVFilterPad outputs[]
Definition: af_afftfilt.c:386
static const AVFilterPad inputs[]
Definition: af_afftfilt.c:376
int ff_query_formats_all(AVFilterContext *ctx)
Set the formats list to all existing formats.
Definition: formats.c:602
static int flags
Definition: cpu.c:47
static int query_formats(AVFilterContext *ctx)
Definition: aeval.c:244

Definition at line 140 of file split.c.