FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
af_aconvert.c File Reference

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

#include "libavutil/avstring.h"
#include "libavutil/channel_layout.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
 

Functions

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

Variables

static const AVFilterPad aconvert_inputs []
 
static const AVFilterPad aconvert_outputs []
 
AVFilter avfilter_af_aconvert
 

Detailed Description

sample format and channel layout conversion audio filter

Definition in file af_aconvert.c.

Function Documentation

static av_cold int init ( AVFilterContext ctx,
const char *  args0 
)
static

Definition at line 41 of file af_aconvert.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 65 of file af_aconvert.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 71 of file af_aconvert.c.

static int config_output ( AVFilterLink outlink)
static

Definition at line 102 of file af_aconvert.c.

static int filter_frame ( AVFilterLink inlink,
AVFilterBufferRef insamplesref 
)
static

Definition at line 138 of file af_aconvert.c.

Referenced by ff_filter_frame(), and ff_filter_frame_framed().

Variable Documentation

const AVFilterPad aconvert_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
.min_perms = AV_PERM_READ,
},
{ NULL }
}

Definition at line 158 of file af_aconvert.c.

const AVFilterPad aconvert_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_output,
},
{ NULL }
}

Definition at line 168 of file af_aconvert.c.

AVFilter avfilter_af_aconvert
Initial value:
= {
.name = "aconvert",
.description = NULL_IF_CONFIG_SMALL("Convert the input audio to sample_fmt:channel_layout."),
.priv_size = sizeof(AConvertContext),
.init = init,
}

Definition at line 177 of file af_aconvert.c.