FFmpeg
 All Data Structures Namespaces 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)
 
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, AVFrame *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)
static

Definition at line 41 of file af_aconvert.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 67 of file af_aconvert.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 73 of file af_aconvert.c.

static int config_output ( AVFilterLink outlink)
static

Definition at line 104 of file af_aconvert.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame insamplesref 
)
static

Definition at line 140 of file af_aconvert.c.

Referenced by ff_filter_frame(), ff_filter_frame_framed(), and ffmpeg_cleanup().

Variable Documentation

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

Definition at line 162 of file af_aconvert.c.

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

Definition at line 171 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 180 of file af_aconvert.c.