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

Audio panning filter (channels mixing) Original code written by Anders Johansson for MPlayer, reimplemented for FFmpeg. More...

#include <stdio.h>
#include "libavutil/avstring.h"
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "libswresample/swresample.h"
#include "audio.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  PanContext
 

Macros

#define MAX_CHANNELS   63
 

Functions

static int parse_channel_name (char **arg, int *rchannel, int *rnamed)
 
static void skip_spaces (char **arg)
 
static av_cold int init (AVFilterContext *ctx, const char *args0)
 
static int are_gains_pure (const PanContext *pan)
 
static int query_formats (AVFilterContext *ctx)
 
static int config_props (AVFilterLink *link)
 
static int filter_frame (AVFilterLink *inlink, AVFilterBufferRef *insamples)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Variables

static const AVFilterPad pan_inputs []
 
static const AVFilterPad pan_outputs []
 
AVFilter avfilter_af_pan
 

Detailed Description

Audio panning filter (channels mixing) Original code written by Anders Johansson for MPlayer, reimplemented for FFmpeg.

Definition in file af_pan.c.

Macro Definition Documentation

#define MAX_CHANNELS   63

Definition at line 40 of file af_pan.c.

Referenced by are_gains_pure(), config_props(), and parse_channel_name().

Function Documentation

static int parse_channel_name ( char **  arg,
int *  rchannel,
int *  rnamed 
)
static

Definition at line 56 of file af_pan.c.

Referenced by init().

static void skip_spaces ( char **  arg)
static

Definition at line 91 of file af_pan.c.

Referenced by init().

static av_cold int init ( AVFilterContext ctx,
const char *  args0 
)
static

Definition at line 99 of file af_pan.c.

static int are_gains_pure ( const PanContext pan)
static

Definition at line 199 of file af_pan.c.

Referenced by query_formats().

static int query_formats ( AVFilterContext ctx)
static

Definition at line 221 of file af_pan.c.

static int config_props ( AVFilterLink link)
static

Definition at line 249 of file af_pan.c.

static int filter_frame ( AVFilterLink inlink,
AVFilterBufferRef insamples 
)
static

Definition at line 356 of file af_pan.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 374 of file af_pan.c.

Variable Documentation

const AVFilterPad pan_inputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_props,
.filter_frame = filter_frame,
.min_perms = AV_PERM_READ,
},
{ NULL }
}

Definition at line 380 of file af_pan.c.

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

Definition at line 391 of file af_pan.c.

AVFilter avfilter_af_pan
Initial value:
= {
.name = "pan",
.description = NULL_IF_CONFIG_SMALL("Remix channels with coefficients (panning)."),
.priv_size = sizeof(PanContext),
.init = init,
}

Definition at line 399 of file af_pan.c.