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

Channel split filter. More...

#include "libavutil/attributes.h"
#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"

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
 

Functions

 AVFILTER_DEFINE_CLASS (channelsplit)
 
static av_cold 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 ff_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 OFFSET (   x)    offsetof(ChannelSplitContext, x)

Definition at line 43 of file af_channelsplit.c.

#define A   AV_OPT_FLAG_AUDIO_PARAM

Definition at line 44 of file af_channelsplit.c.

Definition at line 45 of file af_channelsplit.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( channelsplit  )
static av_cold int init ( AVFilterContext ctx)
static

Definition at line 53 of file af_channelsplit.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 81 of file af_channelsplit.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame buf 
)
static

Definition at line 104 of file af_channelsplit.c.

Variable Documentation

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 }
}

Definition at line 46 of file af_channelsplit.c.

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

Definition at line 130 of file af_channelsplit.c.

AVFilter ff_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,
.outputs = NULL,
}

Definition at line 139 of file af_channelsplit.c.