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"
Include dependency graph for af_aconvert.c:

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 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 exit_program(), ff_filter_frame(), and ff_filter_frame_framed().

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 41 of file af_aconvert.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 73 of file af_aconvert.c.

Referenced by movie_request_frame(), and request_frame().

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 67 of file af_aconvert.c.

Variable Documentation

const AVFilterPad aconvert_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
{ NULL }
}
NULL
Definition: eval.c:55
static int filter_frame(AVFilterLink *inlink, AVFrame *insamplesref)
Definition: af_aconvert.c:140

Definition at line 162 of file af_aconvert.c.

const AVFilterPad aconvert_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_output,
},
{ NULL }
}
NULL
Definition: eval.c:55
static int config_output(AVFilterLink *outlink)
Definition: af_aconvert.c:104

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,
}
static const AVFilterPad outputs[]
Definition: af_ashowinfo.c:117
static av_cold int init(AVFilterContext *ctx)
Definition: af_aconvert.c:41
static const AVFilterPad aconvert_inputs[]
Definition: af_aconvert.c:162
static int query_formats(AVFilterContext *ctx)
Definition: af_aconvert.c:73
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static av_cold void uninit(AVFilterContext *ctx)
Definition: af_aconvert.c:67
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
static const AVFilterPad aconvert_outputs[]
Definition: af_aconvert.c:171

Definition at line 180 of file af_aconvert.c.