libavfilter/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/opt.h"
#include "libswresample/swresample.h"
#include "avfilter.h"

Go to the source code of this file.

Data Structures

struct  PanContext

Defines

#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, void *opaque)
static int are_gains_pure (const PanContext *pan)
static int config_props (AVFilterLink *link)
static void filter_samples_channel_mapping (PanContext *pan, AVFilterBufferRef *outsamples, AVFilterBufferRef *insamples, int n)
static void filter_samples_panning (PanContext *pan, AVFilterBufferRef *outsamples, AVFilterBufferRef *insamples, int n)
static void filter_samples (AVFilterLink *inlink, AVFilterBufferRef *insamples)
static int query_formats (AVFilterContext *ctx)
static av_cold void uninit (AVFilterContext *ctx)

Variables

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.


Define Documentation

#define MAX_CHANNELS   63

Definition at line 36 of file af_pan.c.


Function Documentation

static int are_gains_pure ( const PanContext pan  )  [static]

Definition at line 192 of file af_pan.c.

Referenced by query_formats().

static int config_props ( AVFilterLink link  )  [static]

Definition at line 214 of file af_pan.c.

static void filter_samples ( AVFilterLink inlink,
AVFilterBufferRef insamples 
) [static]

Definition at line 354 of file af_pan.c.

static void filter_samples_channel_mapping ( PanContext pan,
AVFilterBufferRef outsamples,
AVFilterBufferRef insamples,
int  n 
) [static]

Definition at line 322 of file af_pan.c.

Referenced by query_formats().

static void filter_samples_panning ( PanContext pan,
AVFilterBufferRef outsamples,
AVFilterBufferRef insamples,
int  n 
) [static]

Definition at line 330 of file af_pan.c.

Referenced by query_formats().

static av_cold int init ( AVFilterContext ctx,
const char *  args0,
void *  opaque 
) [static]

Definition at line 100 of file af_pan.c.

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

Definition at line 61 of file af_pan.c.

Referenced by init().

static int query_formats ( AVFilterContext ctx  )  [static]

Definition at line 367 of file af_pan.c.

static void skip_spaces ( char **  arg  )  [static]

Definition at line 92 of file af_pan.c.

static av_cold void uninit ( AVFilterContext ctx  )  [static]

Definition at line 401 of file af_pan.c.


Variable Documentation

Initial value:

 {
    .name          = "pan",
    .description   = NULL_IF_CONFIG_SMALL("Remix channels with coefficients (panning)."),
    .priv_size     = sizeof(PanContext),
    .init          = init,
    .uninit        = uninit,
    .query_formats = query_formats,

    .inputs    = (const AVFilterPad[]) {
        { .name             = "default",
          .type             = AVMEDIA_TYPE_AUDIO,
          .config_props     = config_props,
          .filter_samples   = filter_samples,
          .min_perms        = AV_PERM_READ, },
        { .name = NULL}
    },
    .outputs   = (const AVFilterPad[]) {
        { .name             = "default",
          .type             = AVMEDIA_TYPE_AUDIO, },
        { .name = NULL}
    },
}

Definition at line 407 of file af_pan.c.


Generated on Fri Oct 26 02:46:11 2012 for FFmpeg by  doxygen 1.5.8