libavfilter/af_aconvert.c File Reference

sample format and channel layout conversion audio filter More...

#include "libavutil/avstring.h"
#include "libswresample/swresample.h"
#include "avfilter.h"
#include "audio.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  AConvertContext


static av_cold int init (AVFilterContext *ctx, const char *args0, void *opaque)
static av_cold void uninit (AVFilterContext *ctx)
static int query_formats (AVFilterContext *ctx)
static int config_output (AVFilterLink *outlink)
static void filter_samples (AVFilterLink *inlink, AVFilterBufferRef *insamplesref)


AVFilter avfilter_af_aconvert

Detailed Description

sample format and channel layout conversion audio filter

Definition in file af_aconvert.c.

Function Documentation

static int config_output ( AVFilterLink outlink  )  [static]

Definition at line 101 of file af_aconvert.c.

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

Definition at line 137 of file af_aconvert.c.

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

Definition at line 40 of file af_aconvert.c.

static int query_formats ( AVFilterContext ctx  )  [static]

Definition at line 70 of file af_aconvert.c.

Referenced by ff_avfilter_graph_config_formats().

static av_cold void uninit ( AVFilterContext ctx  )  [static]

Definition at line 64 of file af_aconvert.c.

Variable Documentation

Initial value:

    .name          = "aconvert",
    .description   = NULL_IF_CONFIG_SMALL("Convert the input audio to sample_fmt:channel_layout."),
    .priv_size     = sizeof(AConvertContext),
    .init          = init,
    .uninit        = uninit,
    .query_formats = query_formats,

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

Definition at line 154 of file af_aconvert.c.

Generated on Fri Oct 26 02:48:00 2012 for FFmpeg by  doxygen 1.5.8