FFmpeg
Loading...
Searching...
No Matches
split.c File Reference

audio and video splitter More...

#include <stdio.h>
#include "libavutil/attributes.h"
#include "libavutil/avstring.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "audio.h"
#include "filters.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  SplitContext
 

Macros

#define OFFSET(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 []
 
const FFFilter ff_vf_split
 
const FFFilter ff_af_asplit
 

Detailed Description

audio and video splitter

Definition in file split.c.

Macro Definition Documentation

◆ OFFSET

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

Definition at line 118 of file split.c.

◆ FLAGS

Definition at line 119 of file split.c.

Function Documentation

◆ split_init()

static av_cold int split_init ( AVFilterContext * ctx)
static

Definition at line 43 of file split.c.

◆ activate()

static int activate ( AVFilterContext * ctx)
static

Definition at line 63 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 }
}
#define FLAGS
Definition cmdutils.c:598
#define NULL
Definition coverity.c:32
#define OFFSET(x)
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition opt.h:258

Definition at line 120 of file split.c.

◆ ff_vf_split

const FFFilter ff_vf_split
Initial value:
= {
.p.name = "split",
.p.description = NULL_IF_CONFIG_SMALL("Pass on the input to N video outputs."),
.p.priv_class = &split_class,
.priv_size = sizeof(SplitContext),
}
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
#define AVFILTER_FLAG_DYNAMIC_OUTPUTS
The number of the filter outputs is not determined just by AVFilter.outputs.
Definition avfilter.h:161
#define AVFILTER_FLAG_METADATA_ONLY
The filter is a "metadata" filter - it does not modify the frame data in any way.
Definition avfilter.h:182
static int activate(AVBitStreamFilterContext *ctx)
#define FILTER_INPUTS(array)
Definition filters.h:264
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static av_cold int split_init(AVFilterContext *ctx)
Definition split.c:43
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
Definition video.c:37

Definition at line 127 of file split.c.

◆ ff_af_asplit

const FFFilter ff_af_asplit
Initial value:
= {
.p.name = "asplit",
.p.description = NULL_IF_CONFIG_SMALL("Pass on the audio input to N audio outputs."),
.p.priv_class = &split_class,
.priv_size = sizeof(SplitContext),
}
const AVFilterPad ff_audio_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_AUDIO.
Definition audio.c:34

Definition at line 138 of file split.c.