FFmpeg
Data Structures | Macros | Functions | Variables
af_stereotools.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "audio.h"
#include "formats.h"

Go to the source code of this file.

Data Structures

struct  StereoToolsContext
 

Macros

#define OFFSET(x)   offsetof(StereoToolsContext, x)
 
#define A   AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
 

Functions

 AVFILTER_DEFINE_CLASS (stereotools)
 
static int query_formats (AVFilterContext *ctx)
 
static int config_input (AVFilterLink *inlink)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
 
static int process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Variables

static const AVOption stereotools_options []
 
static const AVFilterPad inputs []
 
static const AVFilterPad outputs []
 
const AVFilter ff_af_stereotools
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 59 of file af_stereotools.c.

◆ A

Definition at line 60 of file af_stereotools.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( stereotools  )

◆ query_formats()

static int query_formats ( AVFilterContext ctx)
static

Definition at line 102 of file af_stereotools.c.

◆ config_input()

static int config_input ( AVFilterLink inlink)
static

Definition at line 117 of file af_stereotools.c.

Referenced by process_command().

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 135 of file af_stereotools.c.

◆ process_command()

static int process_command ( AVFilterContext ctx,
const char *  cmd,
const char *  args,
char *  res,
int  res_len,
int  flags 
)
static

Definition at line 340 of file af_stereotools.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 352 of file af_stereotools.c.

Variable Documentation

◆ stereotools_options

const AVOption stereotools_options[]
static

Definition at line 62 of file af_stereotools.c.

◆ inputs

const AVFilterPad inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
.config_props = config_input,
},
}

Definition at line 359 of file af_stereotools.c.

◆ outputs

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

Definition at line 368 of file af_stereotools.c.

◆ ff_af_stereotools

const AVFilter ff_af_stereotools
Initial value:
= {
.name = "stereotools",
.description = NULL_IF_CONFIG_SMALL("Apply various stereo tools."),
.priv_size = sizeof(StereoToolsContext),
.priv_class = &stereotools_class,
.process_command = process_command,
}

Definition at line 375 of file af_stereotools.c.

query_formats
static int query_formats(AVFilterContext *ctx)
Definition: af_stereotools.c:102
inputs
static const AVFilterPad inputs[]
Definition: af_stereotools.c:359
FILTER_QUERY_FUNC
#define FILTER_QUERY_FUNC(func)
Definition: internal.h:168
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: af_stereotools.c:352
outputs
static const AVFilterPad outputs[]
Definition: af_stereotools.c:368
config_input
static int config_input(AVFilterLink *inlink)
Definition: af_stereotools.c:117
process_command
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
Definition: af_stereotools.c:340
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:191
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
StereoToolsContext
Definition: af_stereotools.c:27
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: af_stereotools.c:135
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:192
AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
#define AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
Same as AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, except that the filter will have its filter_frame() c...
Definition: avfilter.h:154