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

Functions

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)

Variables

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 111 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 80 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 173 of file af_volume.c.


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