af_channelsplit.c File Reference

Channel split filter. More...

#include "libavutil/channel_layout.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "audio.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
Include dependency graph for af_channelsplit.c:

Go to the source code of this file.

Data Structures

struct  ChannelSplitContext
 

Macros

#define OFFSET(x)   offsetof(ChannelSplitContext, x)
 
#define A   AV_OPT_FLAG_AUDIO_PARAM
 
#define F   AV_OPT_FLAG_FILTERING_PARAM
 

Typedefs

typedef struct ChannelSplitContext ChannelSplitContext
 

Functions

 AVFILTER_DEFINE_CLASS (channelsplit)
 
static int init (AVFilterContext *ctx)
 
static int query_formats (AVFilterContext *ctx)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *buf)
 

Variables

static const AVOption channelsplit_options []
 
static const AVFilterPad avfilter_af_channelsplit_inputs []
 
AVFilter avfilter_af_channelsplit
 

Detailed Description

Channel split filter.

Split an audio stream into per-channel streams.

Definition in file af_channelsplit.c.

Macro Definition Documentation

#define A   AV_OPT_FLAG_AUDIO_PARAM

Definition at line 43 of file af_channelsplit.c.

Definition at line 44 of file af_channelsplit.c.

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

Definition at line 42 of file af_channelsplit.c.

Typedef Documentation

Function Documentation

AVFILTER_DEFINE_CLASS ( channelsplit  )
static int filter_frame ( AVFilterLink inlink,
AVFrame buf 
)
static

Definition at line 103 of file af_channelsplit.c.

static int init ( AVFilterContext ctx)
static

Definition at line 52 of file af_channelsplit.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 80 of file af_channelsplit.c.

Variable Documentation

AVFilter avfilter_af_channelsplit
Initial value:
= {
.name = "channelsplit",
.description = NULL_IF_CONFIG_SMALL("Split audio into per-channel streams."),
.priv_size = sizeof(ChannelSplitContext),
.priv_class = &channelsplit_class,
.init = init,
}
static const AVFilterPad outputs[]
Definition: af_ashowinfo.c:117
#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_channelsplit_inputs[]
struct ChannelSplitContext ChannelSplitContext
NULL
Definition: eval.c:55
static int flags
Definition: cpu.c:23
static int init(AVFilterContext *ctx)
static int query_formats(AVFilterContext *ctx)
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 138 of file af_channelsplit.c.

const AVFilterPad avfilter_af_channelsplit_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
{ NULL }
}
static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
NULL
Definition: eval.c:55

Definition at line 129 of file af_channelsplit.c.

const AVOption channelsplit_options[]
static
Initial value:
= {
{ "channel_layout", "Input channel layout.", OFFSET(channel_layout_str), AV_OPT_TYPE_STRING, { .str = "stereo" }, .flags = A|F },
{ NULL },
}
#define F
#define A
#define OFFSET(x)
NULL
Definition: eval.c:55

Definition at line 45 of file af_channelsplit.c.