split.c File Reference

audio and video splitter More...

#include <stdio.h>
#include "libavutil/internal.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "audio.h"
#include "internal.h"
#include "video.h"
Include dependency graph for split.c:

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
 
#define split_options   options
 
#define asplit_options   options
 

Typedefs

typedef struct SplitContext SplitContext
 

Functions

static int split_init (AVFilterContext *ctx)
 
static 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 avfilter_vf_split
 
static const AVFilterPad avfilter_af_asplit_inputs []
 
AVFilter avfilter_af_asplit
 

Detailed Description

audio and video splitter

Definition in file split.c.

Macro Definition Documentation

#define asplit_options   options

Definition at line 103 of file split.c.

Definition at line 94 of file split.c.

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

Definition at line 93 of file split.c.

#define split_options   options

Definition at line 100 of file split.c.

Typedef Documentation

typedef struct SplitContext SplitContext

Function Documentation

AVFILTER_DEFINE_CLASS ( split  )
AVFILTER_DEFINE_CLASS ( asplit  )
static int filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 69 of file split.c.

static int split_init ( AVFilterContext ctx)
static

Definition at line 42 of file split.c.

static void split_uninit ( AVFilterContext ctx)
static

Definition at line 61 of file split.c.

Variable Documentation

AVFilter avfilter_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,
}
static int split_init(AVFilterContext *ctx)
Definition: split.c:42
static const AVFilterPad outputs[]
Definition: af_ashowinfo.c:117
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int uninit(AVCodecContext *avctx)
Definition: crystalhd.c:334
struct SplitContext SplitContext
#define AVFILTER_FLAG_DYNAMIC_OUTPUTS
The number of the filter outputs is not determined just by AVFilter.outputs.
Definition: avfilter.h:430
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static const AVFilterPad avfilter_af_asplit_inputs[]
Definition: split.c:132
NULL
Definition: eval.c:55
static void split_uninit(AVFilterContext *ctx)
Definition: split.c:61
static int flags
Definition: cpu.c:23
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs

Definition at line 142 of file split.c.

const AVFilterPad avfilter_af_asplit_inputs[]
static
Initial value:
= {
{
.name = "default",
.get_audio_buffer = ff_null_get_audio_buffer,
.filter_frame = filter_frame,
},
{ NULL }
}
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: split.c:69
AVFrame * ff_null_get_audio_buffer(AVFilterLink *link, int nb_samples)
get_audio_buffer() handler for filters which simply pass audio along
Definition: audio.c:36
NULL
Definition: eval.c:55

Definition at line 132 of file split.c.

AVFilter avfilter_vf_split
Initial value:
= {
.name = "split",
.description = NULL_IF_CONFIG_SMALL("Pass on the input video to N outputs."),
.priv_size = sizeof(SplitContext),
.priv_class = &split_class,
}
static int split_init(AVFilterContext *ctx)
Definition: split.c:42
static const AVFilterPad outputs[]
Definition: af_ashowinfo.c:117
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int uninit(AVCodecContext *avctx)
Definition: crystalhd.c:334
struct SplitContext SplitContext
#define AVFILTER_FLAG_DYNAMIC_OUTPUTS
The number of the filter outputs is not determined just by AVFilter.outputs.
Definition: avfilter.h:430
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static const AVFilterPad avfilter_vf_split_inputs[]
Definition: split.c:106
NULL
Definition: eval.c:55
static void split_uninit(AVFilterContext *ctx)
Definition: split.c:61
static int flags
Definition: cpu.c:23
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs

Definition at line 116 of file split.c.

const AVFilterPad avfilter_vf_split_inputs[]
static
Initial value:
= {
{
.name = "default",
.get_video_buffer = ff_null_get_video_buffer,
.filter_frame = filter_frame,
},
{ NULL }
}
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: split.c:69
AVFrame * ff_null_get_video_buffer(AVFilterLink *link, int w, int h)
Definition: video.c:35
NULL
Definition: eval.c:55

Definition at line 106 of file split.c.

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: split.c:94
#define OFFSET(x)
Definition: split.c:93
NULL
Definition: eval.c:55

Definition at line 95 of file split.c.