libavfilter/af_volume.c File Reference

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

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

Go to the source code of this file.

Data Structures

struct  VolumeContext

Functions

static av_cold int init (AVFilterContext *ctx, const char *args)
static int query_formats (AVFilterContext *ctx)
static int 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 int 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 
) [static]

Definition at line 38 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:50:09 2012 for FFmpeg by  doxygen 1.5.8