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


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


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


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 46 of file af_channelsplit.c.


Definition at line 47 of file af_channelsplit.c.

Definition at line 48 of file af_channelsplit.c.

Function Documentation

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

Definition at line 57 of file af_channelsplit.c.

static int query_formats ( AVFilterContext ctx)

Definition at line 109 of file af_channelsplit.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame buf 

Definition at line 135 of file af_channelsplit.c.

Variable Documentation

const AVOption channelsplit_options[]
Initial value:
= {
{ "channel_layout", "Input channel layout.", OFFSET(channel_layout_str), AV_OPT_TYPE_STRING, { .str = "stereo" }, .flags = A|F },
{ "channels", "Channels to extract.", OFFSET(channels_str), AV_OPT_TYPE_STRING, { .str = "all" }, .flags = A|F },
{ NULL }
#define NULL
Definition: coverity.c:32
#define F
#define A
#define OFFSET(x)

Definition at line 49 of file af_channelsplit.c.

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

Definition at line 162 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,
#define NULL
Definition: coverity.c:32
The number of the filter outputs is not determined just by AVFilter.outputs.
Definition: avfilter.h:112
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:153
static const AVFilterPad avfilter_af_channelsplit_inputs[]
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
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
static av_cold int init(AVFilterContext *ctx)
#define flags(name, subs,...)
Definition: cbs_av1.c:560
static int query_formats(AVFilterContext *ctx)

Definition at line 171 of file af_channelsplit.c.