libavfilter/af_volume.c File Reference

audio volume filter based on ffmpeg.c code More...

#include "libavutil/audioconvert.h"
#include "libavutil/eval.h"
#include "avfilter.h"

Go to the source code of this file.

Data Structures

struct  VolumeContext


static av_cold int init (AVFilterContext *ctx, const char *args, void *opaque)
static int query_formats (AVFilterContext *ctx)
static void filter_samples (AVFilterLink *inlink, AVFilterBufferRef *insamples)


AVFilter avfilter_af_volume

Detailed Description

audio volume filter based on ffmpeg.c code

Definition in file af_volume.c.

Function Documentation

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

Definition at line 113 of file af_volume.c.

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

Definition at line 36 of file af_volume.c.

static int query_formats ( AVFilterContext ctx  )  [static]

Definition at line 82 of file af_volume.c.

Variable Documentation

Initial value:

    .name           = "volume",
    .description    = NULL_IF_CONFIG_SMALL("Change input volume."),
    .query_formats  = query_formats,
    .priv_size      = sizeof(VolumeContext),
    .init           = init,

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

    .outputs = (const AVFilterPad[])  {{ .name     = "default",
                                   .type           = AVMEDIA_TYPE_AUDIO, },
                                 { .name = NULL}},

Definition at line 175 of file af_volume.c.

Generated on Fri Oct 26 02:43:50 2012 for FFmpeg by  doxygen 1.5.8